jet.html.core
Class JetParentComponent

java.lang.Object
  extended by jet.html.core.JetComponent
      extended by jet.html.core.JetChildComponent
          extended by jet.html.core.JetParentComponent
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Decodeable, JetChildComponent, JetComponent, JetParentComponent
Direct Known Subclasses:
JetForm, JetGridPanel

public abstract class JetParentComponent
extends JetChildComponent
implements JetParentComponent

This abstract class describes how parent objects work and implement general behave

Author:
Markus.Meisters@web.de
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface jet.html.JetChildComponent
JetChildComponent.HasNoParent
 
Field Summary
private  EventProxy childEventProxy
           
private  java.util.Map<java.lang.String,JetChildComponent> childs
          Holds the child components
 
Fields inherited from class jet.html.core.JetComponent
eventSupport
 
Constructor Summary
JetParentComponent(java.lang.String identifier)
          Constructor(identifier)
JetParentComponent(java.lang.String identifier, java.lang.String styleclass)
          Constructor(identifier)
JetParentComponent(java.lang.String identifier, java.lang.String name, java.lang.String styleclass)
          Constructor(identifier)
 
Method Summary
 void add(java.util.Collection<JetChildComponent> tchilds)
          adds a child component
 void add(JetChildComponent obj)
          adds a child component
 java.lang.String decodeGetString(JetContext jetContext)
          Method to decode GET string fro childs
 void encode(java.util.Map requestParameters)
          Method to encode child values
 JetChildComponent getChild(java.lang.String identifier)
          Returns teh child with the given id or null if not found
 java.util.Collection<JetChildComponent> getChilds()
          Returns the childs
 void remove(JetChildComponent obj)
          removes a child component
 void reset()
          Method to reset childs
 void setChilds(java.util.Map<java.lang.String,JetChildComponent> childs)
          Set the childs of this parent object
 
Methods inherited from class jet.html.core.JetChildComponent
getForm, getParent, isHidden, setParent, toggleHidden
 
Methods inherited from class jet.html.core.JetComponent
addListener, addListener, clone, componentChanged, decodeForm, findComponent, findComponents, getGeneratedComponentIdentifier, getIdentifier, getName, getNewIdentifier, getStyleclass, incrementIdentifier, removeListener, removeListener, setComponentChanged, setContinueIdentifier, setIdentifier, setName, setStyleclass
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jet.html.JetChildComponent
getForm, getParent, isHidden, setParent, toggleHidden
 
Methods inherited from interface jet.html.JetComponent
addListener, addListener, clone, componentChanged, decodeForm, findComponent, findComponents, getIdentifier, getName, getStyleclass, incrementIdentifier, removeListener, removeListener, setComponentChanged, setContinueIdentifier, setIdentifier, setName, setStyleclass
 

Field Detail

childEventProxy

private EventProxy childEventProxy

childs

private java.util.Map<java.lang.String,JetChildComponent> childs
Holds the child components

Constructor Detail

JetParentComponent

public JetParentComponent(java.lang.String identifier)
Constructor(identifier)

Parameters:
identifier - identifier

JetParentComponent

public JetParentComponent(java.lang.String identifier,
                          java.lang.String styleclass)
Constructor(identifier)

Parameters:
identifier - identifier
styleclass - the styleclass to use

JetParentComponent

public JetParentComponent(java.lang.String identifier,
                          java.lang.String name,
                          java.lang.String styleclass)
Constructor(identifier)

Parameters:
identifier - identifier
name - name
styleclass - the styleclass to use
Method Detail

add

public void add(java.util.Collection<JetChildComponent> tchilds)
         throws java.lang.IllegalAccessException,
                JetActionException
adds a child component

Specified by:
add in interface JetParentComponent
Throws:
java.lang.IllegalAccessException
JetActionException

add

public void add(JetChildComponent obj)
         throws java.lang.IllegalAccessException,
                JetActionException
adds a child component

Specified by:
add in interface JetParentComponent
Throws:
java.lang.IllegalAccessException
JetActionException

remove

public void remove(JetChildComponent obj)
            throws NotFoundException
removes a child component

Specified by:
remove in interface JetParentComponent
Throws:
NotFoundException

getChilds

public java.util.Collection<JetChildComponent> getChilds()
Returns the childs

Specified by:
getChilds in interface JetParentComponent
Returns:
Collection childs

getChild

public JetChildComponent getChild(java.lang.String identifier)
Returns teh child with the given id or null if not found

Specified by:
getChild in interface JetParentComponent
Parameters:
identifier - identifier
Returns:
jet.html.JetChildComponent teh component or null if not found

encode

public void encode(java.util.Map requestParameters)
Method to encode child values

Specified by:
encode in interface JetParentComponent

decodeGetString

public java.lang.String decodeGetString(JetContext jetContext)
                                 throws java.io.UnsupportedEncodingException
Method to decode GET string fro childs

Specified by:
decodeGetString in interface JetParentComponent
Throws:
java.io.UnsupportedEncodingException

reset

public void reset()
Method to reset childs

Specified by:
reset in interface JetParentComponent

setChilds

public void setChilds(java.util.Map<java.lang.String,JetChildComponent> childs)
Set the childs of this parent object

Specified by:
setChilds in interface JetParentComponent