public class Label extends AbstractContainer
Modifier and Type | Field and Description |
---|---|
protected Component |
labelFor
the reference to the component, where this component is the label for
|
components
ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, parent, parentElem, READONLY, root, viewMode
LABELLEDBY
Constructor and Description |
---|
Label()
Constructs a new label.
|
Label(String id)
Constructs a new label with id.
|
Label(String id,
String styleClass)
Constructs a new label with id.
|
Label(String id,
String value,
String styleClass)
Constructs a new label with id.
|
Modifier and Type | Method and Description |
---|---|
Object |
getContent() |
void |
init(String name,
String id,
String styleClass)
initialize the label with a jdom-tree
|
Component |
labelFor() |
void |
labelFor(Component c) |
void |
setContent(Object o)
sets the content of the component
|
add, get, getAll, getAll, getAllDeep, getByName, getComponents, getWithParent, init, remove, setBrowserMode, substitute
addClass, clone, create, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, removeAttribute, removeClass, setActionListener, setAttribute, setClass, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toggleClass, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addClass, clone, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getStyle, getViewMode, removeAttribute, removeClass, setActionListener, setAttribute, setClass, setId, setLabel, setName, setParent, setParentElement, setStyle, setViewMode, show, show, toggleClass, toString
protected Component labelFor
public Label()
public Label(String id)
id
- the unique id of the containerpublic Label(String id, String styleClass)
id
- the unique id of the containerstyleClass
- the name of a CSS classpublic void init(String name, String id, String styleClass)
init
in interface Component
init
in class AbstractComponent
name
- the root-element of the tree, must not be nullid
- the id of the componentstyleClass
- the name of the component classpublic void labelFor(Component c)
public Component labelFor()
public void setContent(Object o)
AbstractComponent
setContent
in interface Component
setContent
in class AbstractComponent
o
- any object where the string representation is used for renderingpublic Object getContent()
getContent
in interface Component
getContent
in class AbstractComponent
@enterprise 10.0.38589 Copyright © 2001-2024 Groiss Informatics GmbH. All Rights Reserved.