Class PALplate.lib.URLLoaderButton
All Packages Class Hierarchy This Package Previous Next Index
Class PALplate.lib.URLLoaderButton
java.lang.Object
|
+----sub_arctic.lib.min_interactor
|
+----sub_arctic.lib.base_interactor
|
+----sub_arctic.lib.multi_button
|
+----sub_arctic.lib.button
|
+----PALplate.interactors.SelfCallbackButton
|
+----PALplate.lib.URLLoaderButton
- public class URLLoaderButton
- extends SelfCallbackButton
This MudObject will load a URL in the current frame, or
if frame is initialized to something other than null.
This button is represented on screen as an
image which can be clicked on. Many mud objects are just URLLoaderButtons.
Currently this only works in the applet version, hopfully soon it will also
work fine in the application version.
-
URLLoaderButton(URL, loaded_image)
- initializes myCode.
-
URLLoaderButton(URL, String, loaded_image)
- initialized myCode and load it into frame.
-
callback(interactor, event, int, Object)
- the code for loading the URL
-
getCode()
-
-
getFrame()
-
-
init(String, Object)
-
This function is called immediately after the object is dynamically
loaded and created.
-
mudDescription()
-
-
setCode(URL)
-
-
setCode(URL, String)
-
-
setFrame(String)
-
URLLoaderButton
public URLLoaderButton(URL whatToLoad,
loaded_image i)
- initializes myCode. Just load in the default frame
- Parameters:
- whatToLoad - The URL to load when the button is pressed
- i - The icon to display on the screen (that you click on to load the image)
URLLoaderButton
public URLLoaderButton(URL whatToLoad,
String whereToLoad,
loaded_image i)
- initialized myCode and load it into frame.
- Parameters:
- whatToLoad - The URL to load when the button is pressed
- i - The icon to display on the screen (that you click on to load the image)
- whereToLoad - The frame in which to load the URL specified with whatToLoad
getCode
public URL getCode()
- Returns:
- The URL to be loaded when the button is pressed
setCode
public void setCode(URL whatToLoad)
- Parameters:
- whatToLoad - The URL to be loaded when the button is pressed
setCode
public void setCode(URL whatToLoad,
String whereToLoad)
- Parameters:
- whatToLoad - The URL to be loaded when the button is pressed
- whereToLoad - The frame in which to load it
getFrame
public String getFrame()
- Returns:
- The frame in which the button will load it's URL when pressed
setFrame
public void setFrame(String whereToLoad)
- Parameters:
- whereToLoad - The frame in which to load the URL when the button is pressed
callback
public void callback(interactor from_obj,
event evt,
int callback_num,
Object callback_info)
- the code for loading the URL
- Overrides:
- callback in class SelfCallbackButton
init
public void init(String mudobjnum,
Object args)
- This function is called immediately after the object is dynamically
loaded and created.
- Overrides:
- init in class SelfCallbackButton
mudDescription
public String mudDescription()
- Returns:
- The name of the corresponding mud object which needs to be moved when this widget is dragged into a new frame.
- Overrides:
- mudDescription in class SelfCallbackButton
- See Also:
- mudDescription, init
All Packages Class Hierarchy This Package Previous Next Index