org.ascentphase.suit
Class Trigger
java.lang.Object
|
+--org.ascentphase.suit.Widget
|
+--org.ascentphase.suit.Button
|
+--org.ascentphase.suit.Trigger
- public class Trigger
- extends Button
A trigger is a component that acts like a button but does not necessarily
start a business process. Although it behaves like a button, the behaviour
of a trigger is different from a user perspective. A trigger usually an
access point to another input form.
- Version:
- Author:
- huyd
|
Constructor Summary |
Trigger(java.lang.String label)
Initialize a trigger with the given text. |
|
Method Summary |
java.lang.String |
getLabel()
Returns the current label displayed on the Trigger. |
void |
paint(Graphics g)
Draws the widget. |
void |
setLabel(java.lang.String label)
Sets the Trigger's label |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Trigger
public Trigger(java.lang.String label)
- Initialize a trigger with the given text.
- Parameters:
label - the text to display on the Trigger.
paint
public void paint(Graphics g)
- Draws the widget.
- Overrides:
paint in class Button
- Parameters:
g - the Graphics object to draw with.
setLabel
public void setLabel(java.lang.String label)
- Sets the Trigger's label
- Parameters:
label - the text to display on the Trigger.
getLabel
public java.lang.String getLabel()
- Returns the current label displayed on the Trigger.
- Returns:
- the text label.
Copyright © 2002 Ascent Phase Corp. All Rights Reserved.