All Packages Class Hierarchy This Package Previous Next Index
Class oracle.forms.demos.RolloverButton
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----oracle.ewt.lwAWT.LWComponent
|
+----oracle.ewt.lwAWT.AbstractPainterComponent
|
+----oracle.ewt.lwAWT.AbstractButton
|
+----oracle.ewt.button.PushButton
|
+----oracle.forms.ui.VButton
|
+----oracle.forms.demos.RolloverButton
- public class RolloverButton
- extends VButton
Oracle Forms Server 6i PJC Example
This is a PJC that implements a web style Rollover image button
where the image changes when the user moves the mouse over the component. The standard Forms
oracle.forms.ui.VButton
is subclassed so only the additional functionality is required
to be added.
We register two new forms properties, IMAGE_NAME_ON and IMAGE_NAME_OFF. These properties form the
the URL of the image files that the button will display. These properties will be set by PL/SQL
trigger code.
- Version:
- 1.0 09/13/1999 created
- Author:
- Steve Button (sbutton@oracle.com)
-
IMAGE_NAME_OFF
- the property registered to specify the off image to be used
-
IMAGE_NAME_ON
- the property registered to specify the on image to be used
-
RolloverButton()
- Calls the constructor for the image rollover button and sets the button borders to be rounded.
-
getProperty(ID)
- Implementation of IView interface which returns the value of a requested property
-
init(IHandler)
- Implementation of IView interface which provides an initialization opportunity for the component
-
loadImage(int, String)
- Load the image specified as a string value and associate it with the identified state
-
setProperty(ID, Object)
- Implementation of IView interface which sets a requested property to a given value
IMAGE_NAME_ON
public static final ID IMAGE_NAME_ON
- the property registered to specify the on image to be used
IMAGE_NAME_OFF
public static final ID IMAGE_NAME_OFF
- the property registered to specify the off image to be used
RolloverButton
public RolloverButton()
- Calls the constructor for the image rollover button and sets the button borders to be rounded.
init
public void init(IHandler handler)
- Implementation of IView interface which provides an initialization opportunity for the component
- Parameters:
- handler - - message handler associated with this view.
- Overrides:
- init in class VButton
- See Also:
- IView
getProperty
public Object getProperty(ID pid)
- Implementation of IView interface which returns the value of a requested property
- Parameters:
- pid - the property id that represents the property to be set
- Returns:
- the value of the property id
- Overrides:
- getProperty in class VButton
- See Also:
- IView
setProperty
public boolean setProperty(ID pid,
Object value)
- Implementation of IView interface which sets a requested property to a given value
- Parameters:
- id - property to be set.
- value - value of the property id.
- Returns:
- true if the property could be set, false otherwise.
- Overrides:
- setProperty in class VButton
- See Also:
- IView
loadImage
public void loadImage(int which,
String value)
- Load the image specified as a string value and associate it with the identified state
- Parameters:
- which - the state to associate the image with
- value - the name of the image file to load
All Packages Class Hierarchy This Package Previous Next Index