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.


Constructor Index

 o URLLoaderButton(URL, loaded_image)
initializes myCode.
 o URLLoaderButton(URL, String, loaded_image)
initialized myCode and load it into frame.

Method Index

 o callback(interactor, event, int, Object)
the code for loading the URL
 o getCode()
 o getFrame()
 o init(String, Object)
This function is called immediately after the object is dynamically loaded and created.
 o mudDescription()
 o setCode(URL)
 o setCode(URL, String)
 o setFrame(String)

Constructors

 o 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)
 o 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

Methods

 o getCode
  public URL getCode()
Returns:
The URL to be loaded when the button is pressed
 o setCode
  public void setCode(URL whatToLoad)
Parameters:
whatToLoad - The URL to be loaded when the button is pressed
 o 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
 o getFrame
  public String getFrame()
Returns:
The frame in which the button will load it's URL when pressed
 o setFrame
  public void setFrame(String whereToLoad)
Parameters:
whereToLoad - The frame in which to load the URL when the button is pressed
 o 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
 o 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
 o 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