com.groiss.gui.component
Class Label
java.lang.Object
com.groiss.gui.AbstractComponent
com.groiss.gui.AbstractContainer
com.groiss.gui.component.Label
- All Implemented Interfaces:
- Component, Container, java.io.Serializable, java.lang.Cloneable
public class Label
- extends AbstractContainer
A HTML label.
- See Also:
- Serialized Form
Field Summary |
protected Component |
labelFor
the reference to the component, where this component is the label for |
Fields inherited from class com.groiss.gui.AbstractComponent |
actions, 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, outputter, parent, parentElem, READONLY, root, viewMode |
Constructor Summary |
Label()
Constructs a new label. |
Label(java.lang.String id)
Constructs a new label with id. |
Label(java.lang.String id,
java.lang.String styleClass)
Constructs a new label with id. |
Methods inherited from class com.groiss.gui.AbstractContainer |
add, get, getAll, getAll, getAllDeep, getByName, getComponents, getWithParent, init, remove, setBrowserMode, substitute |
Methods inherited from class com.groiss.gui.AbstractComponent |
clone, create, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, removeAttribute, setActionListener, setAttribute, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.groiss.gui.Component |
clone, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getStyle, getViewMode, removeAttribute, setActionListener, setAttribute, setId, setLabel, setName, setParent, setParentElement, setStyle, setViewMode, show, show, toString |
labelFor
protected Component labelFor
- the reference to the component, where this component is the label for
Label
public Label()
- Constructs a new label.
Label
public Label(java.lang.String id)
- Constructs a new label with id.
- Parameters:
id
- the unique id of the container
Label
public Label(java.lang.String id,
java.lang.String styleClass)
- Constructs a new label with id.
- Parameters:
id
- the unique id of the containerstyleClass
- the name of a CSS class
init
public void init(java.lang.String name,
java.lang.String id,
java.lang.String styleClass)
- initialize the label with a jdom-tree
- Specified by:
init
in interface Component
- Overrides:
init
in class AbstractComponent
- Parameters:
name
- the root-element of the tree, must not be nullid
- the id of the componentstyleClass
- the name of the component class
labelFor
public void labelFor(Component c)
labelFor
public Component labelFor()
setContent
public void setContent(java.lang.Object o)
- Description copied from class:
AbstractComponent
- sets the content of the component
- Specified by:
setContent
in interface Component
- Overrides:
setContent
in class AbstractComponent
- Parameters:
o
- any object where the string representation is used for rendering
getContent
public java.lang.Object getContent()
- Specified by:
getContent
in interface Component
- Overrides:
getContent
in class AbstractComponent
- Returns:
- the content object of the component
@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.