|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Component
interface for any component the component is an elementary part of any view see the composite pattern [GoF95] for any details
| Method Summary | |
|---|---|
java.lang.Object |
clone()
returns a copy of the Component object |
java.lang.String |
getActionListener(java.lang.String event)
|
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()
|
org.jdom.Element |
getParentElement()
|
org.jdom.Element |
getRoot()
returns the root element of the internal JDOM |
java.lang.String |
getStyle()
|
short |
getViewMode()
|
void |
init(org.jdom.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 |
void |
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(org.jdom.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()
|
| Method Detail |
|---|
void init(org.jdom.Element root)
root - - the root-element of the tree, must not be null
void 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 class
void 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 attribute
boolean removeAttribute(java.lang.String name)
name - - the name of the attribute
void 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(org.jdom.Element parent)
parent - - the parent elementorg.jdom.Element 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 getActionListener(java.lang.String event)
event - - the event to listen
java.lang.String show()
throws ApplicationException
ApplicationException
void show(java.io.PrintWriter output)
throws ApplicationException
output - - the Printwriter
ApplicationExceptionjava.lang.String toString()
toString in class java.lang.Object
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionorg.jdom.Element getRoot()
void setContent(java.lang.Object o)
throws ApplicationException
o - any object where the string representation is used for rendering
ApplicationExceptionjava.lang.Object getContent()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||