jet.html.impl
Class JetFieldset

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
                  extended by jet.html.impl.JetFieldset
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Decodeable, JetChildComponent, JetComponent, JetFieldset, JetGridPanel, JetParentComponent, Identifiable, ValidationComponent

public class JetFieldset
extends JetGridPanel
implements JetFieldset

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  java.util.List<ValidationRule> validations
          validation rules
 
Fields inherited from class jet.html.core.JetComponent
eventSupport
 
Constructor Summary
JetFieldset(java.lang.String identifier)
          Creates new Component - name and styleclass would be the same as identifier
JetFieldset(java.lang.String identifier, java.lang.String styleclass)
          Creates new Component
JetFieldset(java.lang.String identifier, java.lang.String name, java.lang.String styleclass)
          Creates new Component
 
Method Summary
 void addValidationRule(ValidationRule rule)
          Method to add validation rules
 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
 java.util.List getValidationRules()
          Method to get validations
 boolean hasValidationRules()
          Method to indicate if validation exists
 
Methods inherited from class jet.html.impl.JetGridPanel
decodeForm, getCols, setCols
 
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.pool.Identifiable
getIdentifier
 
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

validations

private java.util.List<ValidationRule> validations
validation rules

Constructor Detail

JetFieldset

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

Parameters:
identifier - the identifier

JetFieldset

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

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

JetFieldset

public JetFieldset(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 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 JetFieldset
Specified by:
decodeForm in interface JetGridPanel
Overrides:
decodeForm in class JetGridPanel
Parameters:
builder - builder to use

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 JetFieldset
Specified by:
clone in interface JetGridPanel
Overrides:
clone in class JetGridPanel
Returns:
the cloned object

addValidationRule

public void addValidationRule(ValidationRule rule)
Method to add validation rules

Specified by:
addValidationRule in interface JetFieldset
Specified by:
addValidationRule in interface ValidationComponent
Parameters:
rule - ValidationRule

hasValidationRules

public boolean hasValidationRules()
Method to indicate if validation exists

Specified by:
hasValidationRules in interface JetFieldset
Specified by:
hasValidationRules in interface ValidationComponent

getValidationRules

public java.util.List getValidationRules()
Method to get validations

Specified by:
getValidationRules in interface JetFieldset
Specified by:
getValidationRules in interface ValidationComponent
Returns:
List ValidationRules