RingJavafor Ring

java.applet

4 classes of the module java.desktop.

Load them with:

using {
	"java.applet"
}

All packages

Applet#

class · extends Panel · java.applet.Applet

Constructors

new Applet()

Ring: new Applet(args) uses the constructor with the fewest parameters (at least one); new Applet makes the object with the constructor without parameters; the others: (new Applet).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@init@init()void init()
destroydestroy()void destroy()
getAppletContextgetAppletContext()AppletContext getAppletContext()
getAppletInfogetAppletInfo()String getAppletInfo()
getAudioClipgetAudioClip(url)
getAudioClip([url,name])
getAudioClip([ :url = v, :name = v ])
AudioClip getAudioClip(URL url)
AudioClip getAudioClip(URL url, String name)
getCodeBasegetCodeBase()URL getCodeBase()
getDocumentBasegetDocumentBase()URL getDocumentBase()
getImagegetImage(url)
getImage([url,name])
getImage([ :url = v, :name = v ])
Image getImage(URL url)
Image getImage(URL url, String name)
getParametergetParameter(name)String getParameter(String name)
getParameterInfogetParameterInfo()String[][] getParameterInfo()
isActiveisActive()boolean isActive()
newAudioClipnewAudioClip(url)static AudioClip newAudioClip(URL url)
playplay(url)
play([url,name])
play([ :url = v, :name = v ])
void play(URL url)
void play(URL url, String name)
setStubsetStub(stub)void setStub(AppletStub stub)
showStatusshowStatus(msg)void showStatus(String msg)
startstart()void start()
stopstop()void stop()

The methods and fields of Panel are inherited.

AppletContext#

interface · java.applet.AppletContext

Methods

MethodRing callJava overloads
getAppletgetApplet(name)Applet getApplet(String name)
getAppletsgetApplets()Enumeration getApplets()
getAudioClipgetAudioClip(url)AudioClip getAudioClip(URL url)
getImagegetImage(url)Image getImage(URL url)
getStreamgetStream(key)InputStream getStream(String key)
getStreamKeysgetStreamKeys()Iterator getStreamKeys()
setStreamsetStream(key,stream)void setStream(String key, InputStream stream)
showDocumentshowDocument(url)
showDocument([url,target])
showDocument([ :url = v, :target = v ])
void showDocument(URL url)
void showDocument(URL url, String target)
showStatusshowStatus(status)void showStatus(String status)

AppletStub#

interface · java.applet.AppletStub

Methods

MethodRing callJava overloads
appletResizeappletResize(width,height)void appletResize(int width, int height)
getAppletContextgetAppletContext()AppletContext getAppletContext()
getCodeBasegetCodeBase()URL getCodeBase()
getDocumentBasegetDocumentBase()URL getDocumentBase()
getParametergetParameter(name)String getParameter(String name)
isActiveisActive()boolean isActive()

AudioClip#

interface · java.applet.AudioClip

Methods

MethodRing callJava overloads
@loop@loop()void loop()
playplay()void play()
stopstop()void stop()
RingJava - use Java classes and methods from Ring programs.