|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface to be implemented by a Component whose
input widget values (view state) can be translated to and from a
represenatation.String
This interface is the equivalent for view objects to what the
interface
represents for model objects.Stringable
The functionality of the entire GUI package of the JPT assumes
that each classes implementing this interface is a derived class
of Component, although this requirement cannot be
policed by a compiler.
Stringable| Field Summary | |
static String |
DEFAULT_VIEW_STATE
Bound property name for the default view state of a Displayable object. |
static String |
VIEW_STATE
Bound property name for the view state of a Displayable object. |
| Method Summary | |
String |
getDefaultViewState()
Returns a String representation of the default view
state for this object. |
String |
getViewState()
Returns a String representation of the view state for
this object. |
void |
reset()
Resets the view state of this object to the default view state for this object. |
void |
setDefaultViewState(String data)
Sets the default view state for this object to the data state represented by the given String data. |
void |
setEnabled(boolean isEnabled)
Sets whether or not this object is enabled. |
void |
setViewState(String data)
Sets the view state for this object to the data state represented by the given String data. |
| Field Detail |
public static final String VIEW_STATE
Displayable object.
public static final String DEFAULT_VIEW_STATE
Displayable object.
| Method Detail |
public void setViewState(String data)
String data.
data - the new view state for this objectgetViewState()public String getViewState()
String representation of the view state for
this object.
StringsetViewState(String)public void setDefaultViewState(String data)
String data.
data - the new default data state for this objectgetDefaultViewState(),
reset()public String getDefaultViewState()
String representation of the default view
state for this object.
StringsetDefaultViewState(String),
reset()public void reset()
Resets the view state of this object to the default view state for this object.
Equivalent to: setViewState(getDefaultViewState()).
setViewState(String),
getDefaultViewState()public void setEnabled(boolean isEnabled)
isEnabled - whether or not this object is enabled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||