|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Textbox
A textbox.
See Specification.
Default HtmlBasedComponent.getZclass()
: z-textbox.(since 3.5.0)
Field Summary |
---|
Fields inherited from interface org.zkoss.zk.ui.Component |
---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
Method Summary | |
---|---|
int |
getRows()
Returns the rows. |
java.lang.String |
getValue()
Returns the value. |
void |
setMultiline(boolean multiline)
Sets whether it is multiline. |
void |
setRows(int rows)
Sets the rows. |
void |
setType(java.lang.String type)
Sets the type. |
void |
setValue(java.lang.String value)
Sets the value. |
Methods inherited from interface org.zkoss.zul.impl.api.InputElement |
---|
clearErrorMessage, clearErrorMessage, getCols, getErrorMessage, getMaxlength, getName, getRawText, getRawValue, getTabindex, getText, getType, isDisabled, isMultiline, isReadonly, isValid, select, setCols, setConstraint, setDisabled, setMaxlength, setName, setRawValue, setReadonly, setSelectedText, setSelectionRange, setTabindex, setText |
Methods inherited from interface org.zkoss.zul.impl.api.XulElement |
---|
getAction, getContext, getCtrlKeys, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent |
---|
focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
Methods inherited from interface org.zkoss.zk.ui.ext.Scope |
---|
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute |
Methods inherited from interface org.zkoss.zul.ext.Constrainted |
---|
getConstraint, setConstraint |
Method Detail |
---|
java.lang.String getValue() throws WrongValueException
InputElement.getText()
.
Default: "".
WrongValueException
- if user entered a wrong valuevoid setValue(java.lang.String value) throws WrongValueException
value
- the value; If null, it is considered as empty.
WrongValueException
- if value is wrongvoid setType(java.lang.String type) throws WrongValueException
type
- the type. Acceptable values are "text" and "password". Unlike
XUL, "timed" is redudant because it is enabled as long as
onChanging is added.
WrongValueException
int getRows()
Default: 1.
void setRows(int rows) throws WrongValueException
WrongValueException
void setMultiline(boolean multiline)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |