All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.awt.InvisibleHTMLLink
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----symantec.itools.awt.InvisibleButton
|
+----symantec.itools.awt.InvisibleHTMLLink
- public class InvisibleHTMLLink
- extends InvisibleButton
Use this component to create an invisible rectangular button, usually within
an image, that displays the document at a given URL when clicked.
-
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.
-
InvisibleHTMLLink()
- Constructs a default InvisibleHTMLLink.
-
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
InvisibleHTMLLink
public InvisibleHTMLLink()
- Constructs a default InvisibleHTMLLink.
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:
- e - the event that caused this action
- o - the action
- Returns:
- true if the action was handled
- Overrides:
- action in class Component
- 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