jet.html.impl
Class JetGridPanel
java.lang.Object
jet.html.core.JetComponent
jet.html.core.JetChildComponent
jet.html.core.JetParentComponent
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
Field Summary |
private int |
cols
Holds the width of the grid in cols - default is 2 columns |
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.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.JetComponent |
addListener, addListener, componentChanged, findComponent, findComponents, getIdentifier, getName, getStyleclass, incrementIdentifier, removeListener, removeListener, setComponentChanged, setContinueIdentifier, setIdentifier, setName, setStyleclass |
cols
private int cols
- Holds the width of the grid in cols - default is 2 columns
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 identifierstyleclass
- 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 identifiername
- the name of the component if different to identifierstyleclass
- the css style class
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