| org.zkoss.mil.Item org.zkoss.mil.impl.InputElement
All known Subclasses: org.zkoss.mil.Decimalbox, org.zkoss.mil.Textbox, org.zkoss.mil.Intbox,
InputElement | abstract public class InputElement extends Item (Code) | | TextField related component.
author: henrichen |
Inner Class :protected class ExtraCtrl implements Inputable | |
ANY | final protected static int ANY(Code) | | |
CONSTRAINT_MASK | final protected static int CONSTRAINT_MASK(Code) | | |
DECIMAL | final protected static int DECIMAL(Code) | | |
EMAILADDR | final protected static int EMAILADDR(Code) | | |
INITIAL_CAPS_SENTENCE | final protected static int INITIAL_CAPS_SENTENCE(Code) | | |
INITIAL_CAPS_WORD | final protected static int INITIAL_CAPS_WORD(Code) | | |
NON_PREDICTIVE | final protected static int NON_PREDICTIVE(Code) | | |
NUMERIC | final protected static int NUMERIC(Code) | | |
PASSWORD | final protected static int PASSWORD(Code) | | |
PHONENUMBER | final protected static int PHONENUMBER(Code) | | |
SENSITIVE | final protected static int SENSITIVE(Code) | | |
UNEDITABLE | final protected static int UNEDITABLE(Code) | | |
URL | final protected static int URL(Code) | | |
getConstraints | protected int getConstraints()(Code) | | |
getInternalType | abstract protected int getInternalType()(Code) | | Internal type of this InputElement (ANY, EMAILADDR, NUMERIC, PHONENUMBER,
URL, or DECIMAL).
|
getMaxlength | public int getMaxlength()(Code) | | Returns the maxlength.
Default: 32.
|
getType | public String getType()(Code) | | Returns the type.
Default: text.
|
isReadonly | public boolean isReadonly()(Code) | | Returns whether it is readonly.
Default: false.
|
setMaxlength | public void setMaxlength(int maxlength)(Code) | | Sets the maxlength.
|
setRawValue | public void setRawValue(Object value)(Code) | | Sets the raw value directly. The caller must make sure the value
is correct (or intend to be incorrect), because this method
doesn't do any validation.
If you feel confusing with setValue, such as
org.zkoss.mil.Textbox.setValue ,
it is usually better to use setValue instead. This method
is reserved for developer that really want to set an 'illegal'
value (such as an empty string to a textbox with no-empty contraint).
Like setValue, the result is returned back to the server
by calling
InputElement.getText .
See Also: InputElement.getRawValue |
setReadonly | public void setReadonly(boolean readonly)(Code) | | Sets whether it is readonly.
|
smartUpdateConstraints | protected void smartUpdateConstraints()(Code) | | |
|
|