jet.html.impl
Class JetGridPanel

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

public class JetGridPanel
extends JetParentComponent
implements JetGridPanel

This class renders a gridpanelall

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  int cols
          Holds the width of the grid in cols - default is 2 columns
 
Fields inherited from class jet.html.core.JetComponent
eventSupport
 
Constructor Summary
JetGridPanel(java.lang.String identifier)
          Creates new Component - name and styleclass would be the same as identifier
JetGridPanel(java.lang.String identifier, java.lang.String styleclass)
          Creates new Component
JetGridPanel(java.lang.String identifier, java.lang.String name, java.lang.String styleclass)
          Creates new Component
 
Method Summary
 java.lang.Object clone()
          This method retruns a clone from the component
 void decodeForm(java.lang.StringBuilder builder, JetContext jetContext)
          This method decodes the form to the given buffer
static void decodeForm(java.lang.StringBuilder builder, JetContext jetContext, int cols, JetParentComponent component, boolean formGrid)
           
 int getCols()
          Returns the width in cols
 void setCols(int cols)
          Set the column width
 
Methods inherited from class jet.html.core.JetParentComponent
add, add, decodeGetString, encode, getChild, getChilds, remove, reset, setChilds
 
Methods inherited from class jet.html.core.JetChildComponent
getForm, getParent, isHidden, setParent, toggleHidden
 
Methods inherited from class jet.html.core.JetComponent
addListener, addListener, componentChanged, 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.JetParentComponent
add, add, decodeGetString, encode, getChild, getChilds, remove, reset, setChilds
 
Methods inherited from interface jet.html.JetChildComponent
getForm, getParent, isHidden, setParent, toggleHidden
 
Methods inherited from interface jet.html.JetComponent
addListener, addListener, componentChanged, findComponent, findComponents, getIdentifier, getName, getStyleclass, incrementIdentifier, removeListener, removeListener, setComponentChanged, setContinueIdentifier, setIdentifier, setName, setStyleclass
 

Field Detail

cols

private int cols
Holds the width of the grid in cols - default is 2 columns

Constructor Detail

JetGridPanel

public JetGridPanel(java.lang.String identifier)
Creates new Component - name and styleclass would be the same as identifier

Parameters:
identifier - the identifier

JetGridPanel

public JetGridPanel(java.lang.String identifier,
                    java.lang.String styleclass)
Creates new Component

Parameters:
identifier - the identifier
styleclass - the css style class

JetGridPanel

public JetGridPanel(java.lang.String identifier,
                    java.lang.String name,
                    java.lang.String styleclass)
Creates new Component

Parameters:
identifier - the identifier
name - the name of the component if different to identifier
styleclass - the css style class
Method Detail

decodeForm

public static void decodeForm(java.lang.StringBuilder builder,
                              JetContext jetContext,
                              int cols,
                              JetParentComponent component,
                              boolean formGrid)

decodeForm

public void decodeForm(java.lang.StringBuilder builder,
                       JetContext jetContext)
This method decodes the form to the given buffer

Specified by:
decodeForm in interface Decodeable
Specified by:
decodeForm in interface JetComponent
Specified by:
decodeForm in interface JetGridPanel
Specified by:
decodeForm in class JetComponent
Parameters:
builder - builder to use

getCols

public int getCols()
Returns the width in cols

Specified by:
getCols in interface JetGridPanel
Returns:
column count

setCols

public void setCols(int cols)
Set the column width

Specified by:
setCols in interface JetGridPanel
Parameters:
cols - column width

clone

public java.lang.Object clone()
This method retruns a clone from the component

Specified by:
clone in interface JetComponent
Specified by:
clone in interface JetGridPanel
Specified by:
clone in class JetComponent
Returns:
the cloned object