|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.models.StatusStringData
public class StatusStringData
StatusStringData is a class that extends from StringData that changes the text back to the model text after some amount of time after the text is set. The text will be updated with the model text when the refreshAlarm fires. The alarm is stopped when setText() is called and restarted after the text is changed. The alarm is set to fire once by default. If the model text changes and the alarm is not running, the StatusStringData text will be updated with the model text. If the alarm is running and the model is changed, the text will not be updated until the alarm fires.
| Field Summary | |
|---|---|
protected com.sas.lang.StringDataInterface |
defaultModel
|
protected AlarmInterface |
refreshAlarm
|
| Fields inherited from class com.sas.lang.StringData |
|---|
RB_KEY |
| Constructor Summary | |
|---|---|
StatusStringData()
Default Constructor. |
|
StatusStringData(java.lang.String str)
Constructor that sets the text of the defaultModel. |
|
StatusStringData(java.lang.StringBuffer strBuffer)
Consturctor that sets the text of the defeultModel. |
|
| Method Summary | |
|---|---|
void |
attachModel(ModelInterface model)
Attaches the specified model to this view. |
protected void |
createComponents()
Create the components used by this class. |
void |
detachModel(ModelInterface model)
Detaches the specified model from this view. |
void |
fireAlarm(AlarmEvent event)
Listen for the alarm to be triggered. |
AlarmInterface |
getRefreshAlarm()
Get the alarm that when fired resets the text to the text of the model. |
java.util.Vector |
getRequiredInterfaces()
Get the interfaces required for the model of this Component. |
protected AlarmInterface |
newRefreshAlarm()
Create a new AlarmInterface object to fire the alarm that resets the text to the text from the model. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
This method gets called when a bound property is changed. |
void |
refresh(ModelInterface model)
Refresh the text with the text from the model. |
void |
setDefaultValues()
Set the default values of this class. |
void |
setRefreshAlarm(AlarmInterface refresh)
Set the alarm that resets the text when fired to the text of the model. |
void |
setText(java.lang.String txt)
Set the text. |
| Methods inherited from class com.sas.lang.StringData |
|---|
clone, equals, equals, getExtendedBeanInfo, getObjectData, getStringData, getText, hashCode, setObjectData, setStringData |
| Field Detail |
|---|
protected com.sas.lang.StringDataInterface defaultModel
protected AlarmInterface refreshAlarm
| Constructor Detail |
|---|
public StatusStringData()
public StatusStringData(java.lang.String str)
str - the string to update the text with when the alarm firespublic StatusStringData(java.lang.StringBuffer strBuffer)
str - the stringBuffer to update the String text with when the alarm fires| Method Detail |
|---|
public AlarmInterface getRefreshAlarm()
public void setRefreshAlarm(AlarmInterface refresh)
refresh - the AlarmInterface object used reset the text when
it fires.public void fireAlarm(AlarmEvent event)
fireAlarm in interface AlarmListenerevent - the AlarmEvent fired to change the text to the
text of the model.public void refresh(ModelInterface model)
refresh in interface ViewInterfacerefresh in class Componentmodel - the model used when the text is resetViewInterface.refresh(com.sas.ModelInterface)public void attachModel(ModelInterface model)
attachModel in interface ViewInterfaceattachModel in class Componentmodel - Model to attach toViewInterfacepublic void detachModel(ModelInterface model)
detachModel in interface ViewInterfacedetachModel in class Componentmodel - Model to detachViewInterfacepublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class Componentevent - A PropertyChangeEvent object describing the event
source and the property that has changedPropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)public void setText(java.lang.String txt)
setText in interface com.sas.lang.StringDataInterfacesetText in class StringDatatxt - the text to be set until the alarm firespublic java.util.Vector getRequiredInterfaces()
getRequiredInterfaces in interface ViewInterfacegetRequiredInterfaces in class ComponentViewInterface.getRequiredInterfaces()protected AlarmInterface newRefreshAlarm()
protected void createComponents()
public void setDefaultValues()
setDefaultValues in interface ComponentInterfacesetDefaultValues in class ComponentComponentInterface.setDefaultValues()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||