|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectUI.GEVAControl
UI.GEVAPropertyControl
public abstract class GEVAPropertyControl
Base for controls that fit into a name/value container Row contaier shows as a 2xN GridBoxLayout as a [ Name | Value ] Col contaier shows as a name above value header/value
Field Summary | |
---|---|
protected java.lang.String |
initial
|
protected java.lang.String[] |
params
|
Fields inherited from class UI.GEVAControl |
---|
comment, dirtyListener, name, parent, title, type |
Method Summary | |
---|---|
protected boolean |
addInvalidReason(java.lang.String reason)
Add a error when validating. |
int |
countComponents()
Classes that inherits this must have a 'second' component that will be returned to getComponent(1); This will handle the other 2 |
java.awt.Component |
getComponent(int index)
Abstract way for a container to know about its child's awt components. |
java.lang.String |
getParam(int index)
Helper - get params without exception. |
java.lang.String |
getParam(int index,
java.lang.String alternative)
Helper - get params without exception. |
boolean |
getParamBoolean(int index)
Helper - get boolean params without exception. |
boolean |
getParamBoolean(int index,
boolean alternative)
Helper - get boolean params without exception. |
double |
getParamDouble(int index)
Helper - get double params without exception. |
double |
getParamDouble(int index,
double alternative)
Helper - get double params without exception. |
boolean |
getParamEqual(int index,
java.lang.String value)
Helper - get whether the parameter is equal to a specific value |
int |
getParamInt(int index)
Helper - get integer params without exception. |
int |
getParamInt(int index,
int alternative)
Helper - get integer params without exception. |
protected void |
resetInvalidReason()
Clear out all previous invalid reasons. |
void |
setVisible(boolean show)
Make this control visible |
void |
setVisibleControlGroup(java.lang.String name,
boolean show)
Make all the controls in the control group visible or hidden. |
Methods inherited from class UI.GEVAControl |
---|
addActionListener, fireActionEvent, getComment, getComponent, getName, getParent, getText, getTitle, getType, isType, load, removeActionListener, save, setEnabled, setText, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String initial
protected java.lang.String[] params
Method Detail |
---|
public java.lang.String getParam(int index, java.lang.String alternative)
index
- The index of the param to get.alternative
- If the indexed param is outside the number of params
or is emtpy, this value is returned instead
public java.lang.String getParam(int index)
index
- The index of the param to get.
public int getParamInt(int index, int alternative)
index
- The index of the param to get.alternative
- The value to return if index is out of range or no
legal value can be parsed from the param
public int getParamInt(int index)
index
- The index of the param to get.
public double getParamDouble(int index, double alternative)
index
- The index of the param to get.alternative
- The value to return if index is out of range or no
legal value can be parsed from the param
public double getParamDouble(int index)
index
- The index of the param to get.
public boolean getParamBoolean(int index, boolean alternative)
index
- The index of the param to get.alternative
- The value to return if index is out of range or no
legal value can be parsed from the param
public boolean getParamBoolean(int index)
index
- The index of the param to get.
public boolean getParamEqual(int index, java.lang.String value)
index
- The index of the param to testvalue
- The values to test against
public java.awt.Component getComponent(int index)
GEVAControl
getComponent
in class GEVAControl
index
- The index of the component to get
public int countComponents()
countComponents
in class GEVAControl
public void setVisibleControlGroup(java.lang.String name, boolean show)
GEVAControl
setVisibleControlGroup
in class GEVAControl
name
- The name of the control group, as set during the call to
addControlGroupshow
- Specify true to show the group, else falsepublic void setVisible(boolean show)
GEVAControl
setVisible
in class GEVAControl
show
- Specify true to show this control, else false to hideprotected void resetInvalidReason()
protected boolean addInvalidReason(java.lang.String reason)
reason
- The error caused during validation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |