|
Oracle Forms 9i Samples and Demos |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--oracle.ewt.lwAWT.LWComponent | +--oracle.ewt.lwAWT.AbstractPainterComponent | +--oracle.ewt.lwAWT.LWLabel | +--oracle.forms.demos.beans.Hyperlink
normal |
The default state of the hyperlink when the user has/had no interaction[s] with it. |
active |
The state of the hyperlink when the user has moved the mouse over it. |
visited |
The state of the hyperlink when the user clicked on the hyperlink component during this particular application session. Will expire when the user ends the application. |
The hyperlink will not perform any default actions when the user clicks on it. Any
component that is interested in the actions of the hyperlink must register itself
as an ActionListener
with the hyperlink. The hyperlink will notify the interested
parties when it has been clicked through an ActionEvent
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Fields inherited from class oracle.ewt.lwAWT.LWLabel |
CENTER, DEFAULT, LEFT, RIGHT |
Fields inherited from class oracle.ewt.lwAWT.LWComponent |
DEFAULT_BORDERPAINTER, DEFAULT_COLOR, DEFAULT_FONT, DEFAULT_PAINTER, MNEMONIC_CHAR_NONE, MNEMONIC_INDEX_NONE |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Hyperlink()
|
|
Hyperlink(java.lang.String label)
Create a hyperlink with no specific URL target |
|
Hyperlink(java.lang.String label,
java.lang.String URL)
Create a hyperlink using the given URL. |
|
Hyperlink(java.lang.String label,
java.lang.String URL,
java.awt.Color normalcolor)
Creates a hyperlink using the given URL with the specified color. |
|
Hyperlink(java.lang.String label,
java.lang.String URL,
java.awt.Color normalcolor,
java.awt.Color visitedcolor)
Creates a hyperlink using the given URL with the specified color. |
Method Summary | |
void |
addActionListener(java.awt.event.ActionListener listener)
Adds the specified action listener object to receive action events from this hyperlink. |
void |
addMouseListener(java.awt.event.MouseListener listener)
Adds the specified action listener object to receive action events from this hyperlink. |
java.awt.Color |
getActiveColor()
Gets the active color for this hyperlink. |
boolean |
getDebug()
Gets debug mode |
java.lang.String |
getLabel()
Get the label for the HyperLink. |
java.awt.Color |
getNormalColor()
Gets the normal color for this hyperlink. |
java.lang.String |
getURL()
Returns the URL associated with this hyperlink. |
java.awt.Color |
getVisitedColor()
Gets the visited color for this hyperlink. |
void |
log(java.lang.String msg)
Convenience method to display an message out to the console. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Event handler for when the mouse clicks the hyperlink |
void |
mouseEntered(java.awt.event.MouseEvent e)
Event handler for when the mouse enters the hyperlink |
void |
mouseExited(java.awt.event.MouseEvent e)
Event handler for when the mouse leaves the hyperlink |
void |
mousePressed(java.awt.event.MouseEvent e)
Not implemented |
void |
mouseReleased(java.awt.event.MouseEvent e)
Not implemented |
void |
paint(java.awt.Graphics g)
Paints the hyperlink. |
void |
removeActionListener(java.awt.event.ActionListener listener)
Removes the specified action listener object from the list of action listeners associated with this hyperlink. |
void |
removeActionListener(java.awt.event.MouseListener listener)
Removes the specified action listener object from the list of action listeners associated with this hyperlink. |
void |
setActiveColor(java.awt.Color newActiveColor)
Sets the active color for this hyperlink. |
void |
setDebug(boolean debugMode)
Sets debug mode |
void |
setDebug(boolean debugMode,
boolean forAll)
Sets debug mode - allows switch on for all instances |
void |
setLabel(java.lang.String label)
Set the label for the HyperLink. |
void |
setNormalColor(java.awt.Color newNormalColor)
Sets the normal color for this hyperlink. |
void |
setURL(java.lang.String URL)
Sets the URL to associate with this hyperlink. |
void |
setVisitedColor(java.awt.Color newVisitedColor)
Sets the visited color for this hyperlink. |
Methods inherited from class oracle.ewt.lwAWT.LWLabel |
createAccessibleContext, getDefaultName, getImageSet, getLabelFor, getPaintData, getPainter, getText, getUIClassID, isFocusable, paramString, postProcessKey, setFocusable, setImage, setImageSet, setLabelFor, setText |
Methods inherited from class oracle.ewt.lwAWT.AbstractPainterComponent |
getInvalidateFlags, getMaximumSize, getMinimumSize, getPreferredSize, getRepaintFlags, interiorContains, isInteriorTransparent, paintInterior |
Methods inherited from class oracle.ewt.lwAWT.LWComponent |
accessAccessibleContext, addAnyEventListener, addImpl, addNotify, addPostKeyListener, addPreKeyListener, clipToParents, contains, convertInnerToOuterSize, convertInteriorToOuter, convertOuterToInterior, disable, doLayout, enable, eventMatchesMnemonic, eventMatchesMnemonic, freezeRepaints, getAccessibleContext, getActualAlignment, getActualReadingDirection, getAlignment, getBackground, getBaseClassName, getBorderContext, getBorderInsets, getBorderPainter, getClientProperty, getColorScheme, getDefaultHelpProvider, getDocumentSize, getDoubleBuffer, getEWTDropTarget, getFill, getFocusedComponent, getFont, getForeground, getGraphics, getHelpBook, getHelpProvider, getHelpTopic, getInnerBounds, getInnerHeight, getInnerOrigin, getInnerSize, getInnerWidth, getInsets, getInteriorAlignmentX, getInteriorAlignmentY, getLookAndFeel, getMnemonicChar, getMnemonicIndex, getMnemonicString, getName, getPageBounds, getPaintContext, getPaintState, getPrintPaintContext, getReadingDirection, getToolTipValue, getUI, getUIDefaults, hasFocus, hasGlobalFocus, hasMnemonicModifier, hasWindowFocus, hide, imageUpdate, insets, invalidate, invalidateAndRepaintIfNecessary, isActive, isBorderTransparent, isChildClipped, isClippedBySibling, isFocusTraversable, isLocaleDefaulted, isPaintPropagationRequired, isReadingDirectionDefaulted, isTransparent, paintAll, paintImmediate, paintImmediate, paintImmediateInterior, paintImmediateInterior, paintImmediateUnclipped, paintOverChildren, pointInInterior, pointIsInChild, print, printAll, printPage, processEvent, processEventImpl, processFocusEvent, processMouseEvent, putClientProperty, redispatchEvent, remove, removeAll, removeAnyEventListener, removeClientProperty, removeNotify, removePostKeyListener, removePreKeyListener, repaint, repaintInterior, repaintInterior, reshape, setAlignment, setBackground, setColorScheme, setDefaultHelpProvider, setEnabled, setEWTDropTarget, setFill, setFont, setForeground, setHelpBook, setHelpProvider, setHelpTopic, setLocale, setLookAndFeel, setMnemonicChar, setMnemonicIndex, setReadingDirection, setToolTipValue, setToolTipValue, setUI, setVisible, shiftFrozenDamage, showHelp, unfreezeRepaints, update, updateAlignment, updateLocale, updateReadingDirection, updateUI, updateUI, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, getListeners, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, remove, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFontMetrics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, inside, isDisplayable, isDoubleBuffered, isEnabled, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.ewt.lwAWT.VirtualComponent |
getBounds, getSize |
Constructor Detail |
public Hyperlink()
public Hyperlink(java.lang.String label)
label
- Text of labelpublic Hyperlink(java.lang.String label, java.lang.String URL)
label
- Text of linklabelURL
- The URL to associate with this linklabelpublic Hyperlink(java.lang.String label, java.lang.String URL, java.awt.Color normalcolor)
label
- Text of labelURL
- Universal Resource Locator (URL)color
- Color of the normal hyperlinkpublic Hyperlink(java.lang.String label, java.lang.String URL, java.awt.Color normalcolor, java.awt.Color visitedcolor)
label
- Text of labelURL
- Universal Resource Locator (URL)color
- Color of normal hyperlinkcolor
- Color of visitedMethod Detail |
public void setLabel(java.lang.String label)
Label
- the label to displaypublic java.lang.String getLabel()
public void setURL(java.lang.String URL)
URL
- The associated URL.public java.lang.String getURL()
public void setVisitedColor(java.awt.Color newVisitedColor)
color
- Color of visited linkpublic java.awt.Color getVisitedColor()
public void setNormalColor(java.awt.Color newNormalColor)
public java.awt.Color getNormalColor()
public void setActiveColor(java.awt.Color newActiveColor)
public java.awt.Color getActiveColor()
public void setDebug(boolean debugMode, boolean forAll)
public void setDebug(boolean debugMode)
public boolean getDebug()
public void paint(java.awt.Graphics g)
paint
in class oracle.ewt.lwAWT.LWComponent
g
- The Graphics object to paint onpublic void addActionListener(java.awt.event.ActionListener listener)
listener
- ActionListener to add to event queuepublic void removeActionListener(java.awt.event.ActionListener listener)
listener
- ActionListener to add to event queuepublic void addMouseListener(java.awt.event.MouseListener listener)
addMouseListener
in class java.awt.Component
listener
- ActionListener to add to event queuepublic void removeActionListener(java.awt.event.MouseListener listener)
listener
- ActionListener to add to event queuepublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
MouseEvent
- Eventpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
MouseEvent
- Eventpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
MouseEvent
- Eventpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void log(java.lang.String msg)
the
- message to be output
|
Oracle Forms 9i Samples and Demos |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |