|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.Object zk.Widget zul.Widget zul.wgt.Label
public class Label
A label.
Default Widget.getZclass()
: z-label.
Field Summary |
---|
Fields inherited from class zk.Widget |
---|
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName |
Fields inherited from class zk.Object |
---|
$class, $oid |
Method Summary | |
---|---|
String |
getEncodedText()
Returns the encoded text. |
int |
getMaxlength()
Returns the maximal length of the label. |
String |
getValue()
Returns the value. |
boolean |
isMultiline()
Returns whether to preserve the new line and the white spaces at the begining of each line. |
boolean |
isPre()
Returns whether to preserve the white spaces, such as space, tab and new line. |
void |
setMaxlength(int maxlength)
Sets the maximal length of the label. |
void |
setMultiline(boolean multiline)
Sets whether to preserve the new line and the white spaces at the begining of each line. |
void |
setPre(boolean pre)
Sets whether to preserve the white spaces, such as space, tab and new line. |
void |
setValue(String value)
Sets the value. |
Methods inherited from class zul.Widget |
---|
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from class zk.Object |
---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setValue(String value)
value
- public String getValue()
Default: "".
Deriving class can override it to return whatever it wants other than null.
public void setMultiline(boolean multiline)
multiline
- public boolean isMultiline()
public void setPre(boolean pre)
pre
- public boolean isPre()
It is the same as style="white-space:pre". However, IE has a bug when handling such style if the content is updated dynamically. Refer to Bug 1455584.
Note: the new line is preserved either isPre()
or
isMultiline()
returns true.
In other words, pre
implies multiline
public void setMaxlength(int maxlength)
maxlength
- public int getMaxlength()
Default: 0 (means no limitation)
public String getEncodedText()
zUtl.encodeXML(_global_.String, _global_.Map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |