|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A generic JWeb container object is a component that can contain other element components.
Components added to a container are tracked in a list. The order of the list will define the components' front-to-back stacking order within the container. If no index is specified when adding a component to a container, it will be added to the end of the list (and hence to the bottom of the stacking order).
Container| Method Summary | |
void |
addComponentListener(IComponentListener l)
Adds the specified container listener to receive container events from this container. |
java.lang.String |
getDescription()
Get a description for the model. |
java.lang.String |
getFullName()
Get the full qualified name of the component. |
int |
getID()
Return the model's id. |
java.util.Iterator |
getListeners(java.lang.Class listenerType)
Return an array of all the listeners that were added to the Container with addXXXListener(), where XXX is the name of the listenerType
argument. |
java.util.Locale |
getLocale()
Gets the locale of this component. |
java.lang.String |
getName()
Get the model's type name. |
IContainer |
getParent()
Get the parents component (if any) |
org.jdom.Element |
getXMLTree()
Get the actual XML result. |
void |
handleEvent(ComponentEvent event)
Handles the events. |
boolean |
isEnabled()
Returns if the action is currently enabled |
void |
removeComponentListener(IComponentListener l)
Removes the specified container listener so it no longer receives container events from this container. |
void |
setEnabled(boolean val)
Sets the action's enabled property |
void |
setFlowData(IFlowData data)
Set the flow data. |
void |
setLocale(java.util.Locale l)
Sets the locale of this component. |
| Method Detail |
public int getID()
public java.lang.String getName()
public java.lang.String getFullName()
public IContainer getParent()
public java.lang.String getDescription()
public void setFlowData(IFlowData data)
throws FormInitException
data - The flow dataFormInitException - If the component could be initialisedpublic boolean isEnabled()
public void setEnabled(boolean val)
val - The enabled valuepublic java.util.Locale getLocale()
IllegalComponentStateException - If the Component does not have its own locale and has not yet been added to
a containment hierarchy such that the locale can be determined from the containing parent.setLocale(java.util.Locale)public void setLocale(java.util.Locale l)
l - The locale to become this component's locale.getLocale()public void handleEvent(ComponentEvent event)
event - The event to be handledpublic void addComponentListener(IComponentListener l)
l - the container listenerpublic void removeComponentListener(IComponentListener l)
l - the container listenerpublic java.util.Iterator getListeners(java.lang.Class listenerType)
listenerType
argument. For example, to get all of the ContainerListener(s) for the
given Container c, one would write: ContainerListener[] cls = (ContainerListener[])(c.getListeners(ContainerListener.class))If no such listener list exists, then an empty array is returned.
listenerType - Type of listeners requested
public org.jdom.Element getXMLTree()
throws FormInitException
FormInitException - If the component is not initialised with any neded data
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||