public interface Component
extends java.lang.Cloneable, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
returns a copy of the Component object
|
java.lang.String |
getAttribute(java.lang.String name)
returs the value of an attribute
|
short |
getBrowserMode() |
java.lang.Object |
getContent() |
java.lang.String |
getId() |
Label |
getLabel() |
java.lang.String |
getName() |
Container |
getParent() |
Element |
getParentElement() |
Element |
getRoot()
returns the root element of the internal JDOM
|
java.lang.String |
getStyle() |
short |
getViewMode() |
void |
init(Element root)
initialize the component with a jdom-tree
|
void |
init(java.lang.String name,
java.lang.String id,
java.lang.String className)
initialize the component with a jdom-tree
|
boolean |
removeAttribute(java.lang.String name)
removes the attribute
|
void |
setActionListener(java.lang.String event,
java.lang.String action)
sets the style
|
Component |
setAttribute(java.lang.String name,
java.lang.String value)
sets the attribute to the component
|
void |
setBrowserMode(short mode)
sets the browserMode
|
void |
setContent(java.lang.Object o)
sets the content of the component
|
void |
setId(java.lang.String id)
set the unique identifier to a given value.
|
void |
setLabel(Label c)
sets the label component
|
void |
setName(java.lang.String name)
set the name to a given value.
|
void |
setParent(Container parent)
sets the parent continer
|
void |
setParentElement(Element parent)
sets the parent element of the components root
|
void |
setStyle(java.lang.String style)
sets the style
|
void |
setViewMode(short mode)
sets the viewMode
|
java.lang.String |
show()
method for rendering the component as string
|
void |
show(java.io.PrintWriter output)
prints the rendered component to a PrintWriter
|
java.lang.String |
toString() |
void init(Element root)
root
- - the root-element of the tree, must not be nullvoid init(java.lang.String name, java.lang.String id, java.lang.String className)
name
- - the name of the root elementid
- - the id of the componentclassName
- - the name of the component classComponent setAttribute(java.lang.String name, java.lang.String value)
name
- - the name of the attributevalue
- - the value of the attributejava.lang.String getAttribute(java.lang.String name)
name
- - the name of the attributeboolean removeAttribute(java.lang.String name)
name
- - the name of the attributevoid setId(java.lang.String id)
id
- the new id of this componentjava.lang.String getId()
void setName(java.lang.String name)
name
- - the new name of this componentjava.lang.String getName()
void setLabel(Label c)
c
- - the label componentLabel getLabel()
void setParent(Container parent)
parent
- - the parent element of the containerContainer getParent()
void setParentElement(Element parent)
parent
- - the parent elementElement getParentElement()
void setViewMode(short mode)
mode
- - the new viewModeshort getViewMode()
void setBrowserMode(short mode)
mode
- - the new browserModeshort getBrowserMode()
void setStyle(java.lang.String style)
style
- - the new stylejava.lang.String getStyle()
void setActionListener(java.lang.String event, java.lang.String action)
event
- - the event to listenaction
- - the action to performjava.lang.String show()
void show(java.io.PrintWriter output)
output
- - the Printwriterjava.lang.String toString()
toString
in class java.lang.Object
java.lang.Object clone()
Element getRoot()
void setContent(java.lang.Object o)
o
- any object where the string representation is used for renderingjava.lang.Object getContent()
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.