|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IControl<T>
Something to control a control: some input or control comnponent in a generic way. This interface is allowed to be implemented on non-nodebase object. FIXME Should this also be a IBindable control?
Method Summary | |
---|---|
java.lang.String |
getErrorLocation()
When set this contains a user-understandable tekst indicating which control has the error. |
T |
getValueSafe()
Like IDisplayControl.getValue() this returns the value of the component, but this returns null
if the value was invalid. |
boolean |
hasError()
Returns T if this control is currently in error state, meaning it's input is in some way invalid. |
boolean |
isDisabled()
Returns T if the control is currently in disabled. |
boolean |
isMandatory()
Returns T if this control is a mandatory input. |
boolean |
isReadOnly()
Returns T if the control is currently in readonly mode. |
void |
setErrorLocation(java.lang.String errorLocation)
When set this contains a user-understandable tekst indicating which control has the error. |
void |
setMandatory(boolean ro)
Make the control mandatory. |
void |
setReadOnly(boolean ro)
Sets the input to readonly-mode. |
Methods inherited from interface to.etc.domui.dom.html.IDisplayControl |
---|
getValue, setTestID, setValue |
Methods inherited from interface to.etc.domui.dom.html.IActionControl |
---|
setDisabled, setTestID |
Methods inherited from interface to.etc.domui.dom.html.IHasChangeListener |
---|
getOnValueChanged, setOnValueChanged |
Methods inherited from interface to.etc.domui.dom.errors.INodeErrorDelegate |
---|
clearMessage, getMessage, setMessage |
Method Detail |
---|
T getValueSafe()
IDisplayControl.getValue()
this returns the value of the component, but this returns null
if the value was invalid. For this method NULL either means the value was invalid OR
it's content was empty. To distinguish between the two call hasError()
or use
IDisplayControl.getValue()
instead of this call.
boolean hasError()
boolean isReadOnly()
void setReadOnly(boolean ro)
ro
- boolean isDisabled()
boolean isMandatory()
void setMandatory(boolean ro)
ro
- void setErrorLocation(java.lang.String errorLocation)
errorLocation
- java.lang.String getErrorLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |