Package 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
,Serializable
,Cloneable
A HTML label.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Component
the reference to the component, where this component is the label forFields inherited from class com.groiss.gui.AbstractContainer
components
Fields inherited from class com.groiss.gui.AbstractComponent
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
Fields inherited from interface com.groiss.gui.Component
LABELLEDBY
-
Constructor Summary
-
Method Summary
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
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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.groiss.gui.Component
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
-
Field Details
-
labelFor
the reference to the component, where this component is the label for
-
-
Constructor Details
-
Label
public Label()Constructs a new label. -
Label
Constructs a new label with id.- Parameters:
id
- the unique id of the container
-
Label
Constructs a new label with id.- Parameters:
id
- the unique id of the containerstyleClass
- the name of a CSS class
-
Label
Constructs a new label with id.- Parameters:
id
- the unique id of the containerstyleClass
- the name of a CSS class
-
-
Method Details
-
init
initialize the label with a jdom-tree- Specified by:
init
in interfaceComponent
- Overrides:
init
in classAbstractComponent
- Parameters:
name
- the root-element of the tree, must not be nullid
- the id of the componentstyleClass
- the name of the component class
-
labelFor
-
labelFor
-
setContent
Description copied from class:AbstractComponent
sets the content of the component- Specified by:
setContent
in interfaceComponent
- Overrides:
setContent
in classAbstractComponent
- Parameters:
o
- any object where the string representation is used for rendering
-
getContent
- Specified by:
getContent
in interfaceComponent
- Overrides:
getContent
in classAbstractComponent
- Returns:
- the content object of the component
-