All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.ImageHTMLLink

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----symantec.itools.awt.ButtonBase
                           |
                           +----symantec.itools.awt.ImageButton
                                   |
                                   +----symantec.itools.awt.ImageHTMLLink

public class ImageHTMLLink
extends ImageButton
Creates a rectangular button with an image on the button's face. It displays the document with a given URL when clicked.

Specifically, use ImageHTMLLink to:


Variable Index

 o context
Applet context that shows the document.
 o frame
Frame specifier for showing a URL document in a browser or applet viewer.
 o url
The URL of the document to show when the button is clicked.

Constructor Index

 o ImageHTMLLink()
Constructs a default ImageHTMLLink.

Method Index

 o action(Event, Object)
Handles internal actions for this component.
 o getFrame()
Gets the frame specifier for showing a URL document in a browser or applet viewer.
 o getURL()
Returns the URL of the document to show when the button is clicked.
 o setAppletContext(AppletContext)
Sets the applet context used to view documents.
 o setFrame(String)
Sets the frame specifier for showing a URL document in a browser or applet viewer.
 o setURL(URL)
Sets the URL of the document to show when the button is clicked.
 o validate()
Ensures that this component is laid out properly, as needed.

Variables

 o url
  protected URL url
The URL of the document to show when the button is clicked.

 o context
  protected AppletContext context
Applet context that shows the document.

 o frame
  protected String frame
Frame specifier for showing a URL document in a browser or applet viewer. It is interpreted as follows:

Constructors

 o ImageHTMLLink
  public ImageHTMLLink()
Constructs a default ImageHTMLLink.

Methods

 o getURL
  public URL getURL()
Returns the URL of the document to show when the button is clicked.

See Also:
setURL
 o setURL
  public void setURL(URL u)
Sets the URL of the document to show when the button is clicked.

Parameters:
u - the URL
See Also:
getURL
 o setFrame
  public void setFrame(String f)
Sets the frame specifier for showing a URL document in a browser or applet viewer. It is interpreted as follows:

Parameters:
f - the frame specifier
See Also:
getFrame
 o getFrame
  public String getFrame()
Gets the frame specifier for showing a URL document in a browser or applet viewer. It is interpreted as follows:

Returns:
the frame specifier
See Also:
setFrame
 o action
  public boolean action(Event event,
                        Object what)
Handles internal actions for this component. This is a standard Java AWT method which usually gets called by the AWT method handleEvent() in response to receiving an ACTION_EVENT event. In those cases the what parameter contains the value in the event's arg field.

Parameters:
event - the event that caused this action
what - the action
Returns:
true if the action was handled
Overrides:
action in class ButtonBase
See Also:
handleEvent
 o validate
  public void validate()
Ensures that this component is laid out properly, as needed. This is a standard Java AWT method which gets called by the AWT to make sure this component and its subcomponents have a valid layout. If this component was made invalid with a call to invalidate(), then it is laid out again. It is overridden here to locate the applet containing this component.

Overrides:
validate in class Component
See Also:
invalidate
 o setAppletContext
  protected void setAppletContext(AppletContext c)
Sets the applet context used to view documents.

Parameters:
c - the new applet context

All Packages  Class Hierarchy  This Package  Previous  Next  Index