|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
org.zkoss.zul.impl.InputElement.ExtraCtrl
protected class InputElement.ExtraCtrl
A utility class to implement AbstractComponent.getExtraCtrl().
It is used only by component developers.
| Constructor Summary | |
|---|---|
protected |
InputElement.ExtraCtrl()
|
| Method Summary | |
|---|---|
void |
setErrorByClient(java.lang.String value,
java.lang.String msg)
Sets or clears the error by client. |
boolean |
setTextByClient(java.lang.String value)
Sets the value in string (aka., text) by the client. |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl |
|---|
setHeightByClient, setLeftByClient, setPrologContent, setTopByClient, setWidthByClient, setZIndexByClient |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected InputElement.ExtraCtrl()
| Method Detail |
|---|
public boolean setTextByClient(java.lang.String value)
throws WrongValueException
InputableXThis method is designed to be used by engine. Don't invoke it directly. Otherwise, the client and server might mismatch.
setTextByClient in interface InputableXWrongValueException
public void setErrorByClient(java.lang.String value,
java.lang.String msg)
ErrorableThis method is designed to be used by engine. Don't invoke it directly. Otherwise, the client and server might mismatch.
setErrorByClient in interface Errorablevalue - the vaue that user entered and causes an error.msg - the message describes the error, if not null.
If null, it means user at the client cleared the error.
This happens: user entered a wrong value and corrected by restoring
the default value. If user restored the error by typing another
value, a regular event, like InputEvent, is sent instead.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||