|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.taursys.xml.Component com.taursys.xml.Trigger
A Component which responds to TriggerEvents. By default, this component uses a ButtonModel to hold its state. You can change this by overriding the createDefaultModel method or explicitly setting the model property.
Constructor Summary | |
Trigger()
Creates a new Trigger and its default model. |
Method Summary | |
protected javax.swing.ButtonModel |
createDefaultModel()
Creates the model used by this component. |
javax.swing.ButtonModel |
getModel()
Returns the current model used by this component |
java.lang.String |
getParameter()
Returns the name of the parameter this components listens for |
java.lang.String |
getText()
Returns the text value that will trigger this button. |
boolean |
isDefaultTrigger()
Get whether this is to act as the defaultTrigger if no parameter is received. |
protected void |
processTriggerEvent(TriggerEvent e)
Store value and fires parameter event if event has correct parameter name. |
void |
setDefaultTrigger(boolean newDefaultTrigger)
Set this whether to act as the defaultTrigger if no parameter is received. |
void |
setModel(javax.swing.ButtonModel newModel)
Sets the current model used by this component |
void |
setParameter(java.lang.String newParameter)
Sets the name of the parameter this components listens for. |
void |
setText(java.lang.String newText)
Sets the text value that will trigger this button. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Trigger()
Method Detail |
protected javax.swing.ButtonModel createDefaultModel()
public javax.swing.ButtonModel getModel()
public void setModel(javax.swing.ButtonModel newModel)
protected void processTriggerEvent(TriggerEvent e) throws java.lang.Exception
processTriggerEvent
in class Component
java.lang.Exception
public void setParameter(java.lang.String newParameter)
public java.lang.String getParameter()
public void setText(java.lang.String newText)
public java.lang.String getText()
public void setDefaultTrigger(boolean newDefaultTrigger)
newDefaultTrigger
- whether to act as the defaultTrigger.public boolean isDefaultTrigger()
public java.lang.String toString()
toString
in class Component
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |