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:
- ╖ Display an image instead of text on a button.
- ╖ Link to the document at a given URL.
-
context
- Applet context that shows the document.
-
frame
- Frame specifier for showing a URL document in a browser or applet
viewer.
-
url
- The URL of the document to show when the button is clicked.
-
ImageHTMLLink()
- Constructs a default ImageHTMLLink.
-
action(Event, Object)
- Handles internal actions for this component.
-
getFrame()
- Gets the frame specifier for showing a URL document in a browser or applet
viewer.
-
getURL()
- Returns the URL of the document to show when the button is clicked.
-
setAppletContext(AppletContext)
- Sets the applet context used to view documents.
-
setFrame(String)
- Sets the frame specifier for showing a URL document in a browser or applet
viewer.
-
setURL(URL)
- Sets the URL of the document to show when the button is clicked.
-
validate()
- Ensures that this component is laid out properly, as needed.
url
protected URL url
- The URL of the document to show when the button is clicked.
context
protected AppletContext context
- Applet context that shows the document.
frame
protected String frame
- Frame specifier for showing a URL document in a browser or applet
viewer. It is interpreted as follows:
- "_self" show document in the current frame
- "_parent" show document in the parent frame
- "_top" show document in the topmost frame
- "_blank" show document in a new unnamed toplevel window
- all others show document in a new toplevel window with the given name
ImageHTMLLink
public ImageHTMLLink()
- Constructs a default ImageHTMLLink.
getURL
public URL getURL()
- Returns the URL of the document to show when the button is clicked.
- See Also:
- setURL
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
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:
- "_self" show document in the current frame
- "_parent" show document in the parent frame
- "_top" show document in the topmost frame
- "_blank" show document in a new unnamed toplevel window
- all others show document in a new toplevel window with the given name
- Parameters:
- f - the frame specifier
- See Also:
- getFrame
getFrame
public String getFrame()
- Gets the frame specifier for showing a URL document in a browser or applet
viewer. It is interpreted as follows:
- "_self" show document in the current frame
- "_parent" show document in the parent frame
- "_top" show document in the topmost frame
- "_blank" show document in a new unnamed toplevel window
- all others show document in a new toplevel window with the given name
- Returns:
- the frame specifier
- See Also:
- setFrame
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
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
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