Ascent Phase Corp.

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

Field Summary
 
Fields inherited from class org.ascentphase.suit.Button
btnHeight, btnWidth, label, penDown
 
Fields inherited from class org.ascentphase.suit.Widget
cmdToThrow
 
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 org.ascentphase.suit.Button
contains, pointerPressed, pointerReleased
 
Methods inherited from class org.ascentphase.suit.Widget
getCommand, keyPressed, keyReleased, pointerDragged, setCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trigger

public Trigger(java.lang.String label)
Initialize a trigger with the given text.

Parameters:
label - the text to display on the Trigger.
Method Detail

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.

Ascent Phase Corp.

Copyright © 2002 Ascent Phase Corp. All Rights Reserved.