|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Label
public class Label
A label.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl |
| Field Summary |
|---|
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Constructor Summary | |
|---|---|
Label()
|
|
Label(java.lang.String value)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getEncodedText()
Returns the text for generating HTML tags (Internal Use Only). |
int |
getMaxlength()
Returns the maximal length of the label. |
java.lang.String |
getOuterAttrs()
|
java.lang.String |
getValue()
Returns the value. |
void |
invalidate()
|
boolean |
isChildable()
No child is allowed. |
boolean |
isHyphen()
Returns whether to hyphen a long word if maxlength is specified. |
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 |
redraw(java.io.Writer out)
|
void |
setHyphen(boolean hyphen)
Sets whether to hyphen a long word if maxlength is specified. |
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(java.lang.String value)
Sets the value. |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, newExtraCtrl, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
addAnnotation, addAnnotation, addEventHandler, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getId, getListenerIterator, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onWrongValue, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setParent, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Label()
public Label(java.lang.String value)
| Method Detail |
|---|
public java.lang.String getValue()
Default: "".
public void setValue(java.lang.String value)
public int getMaxlength()
Noteice:
public void setMaxlength(int maxlength)
See getMaxlength() for the relationship among pre, hyphen and
maxlength.
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.
See getMaxlength() for the relationship among pre, hyphen and
maxlength.
Note: the new line is preserved either isPre() or
isMultiline() returns true.
In other words, pre implies multiline
public void setPre(boolean pre)
See getMaxlength() for the relationship among pre, hyphen and
maxlength.
public boolean isMultiline()
Note: the new line is preserved either isPre() or
isMultiline() returns true.
In other words, pre implies multiline
public void setMultiline(boolean multiline)
public boolean isHyphen()
See getMaxlength() for the relationship among pre, hyphen and
maxlength.
public void setHyphen(boolean hyphen)
See getMaxlength() for the relationship among pre, hyphen and
maxlength.
public java.lang.String getEncodedText()
Used only for component generation. Not for applications.
public java.lang.String getOuterAttrs()
getOuterAttrs in class XulElementpublic void invalidate()
invalidate in interface org.zkoss.zk.ui.Componentinvalidate in class org.zkoss.zk.ui.AbstractComponent
public void redraw(java.io.Writer out)
throws java.io.IOException
redraw in interface org.zkoss.zk.ui.Componentredraw in class org.zkoss.zk.ui.AbstractComponentjava.io.IOExceptionpublic boolean isChildable()
isChildable in interface org.zkoss.zk.ui.ComponentisChildable in class org.zkoss.zk.ui.AbstractComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||