jet.html.impl
Class JetRandomizer

java.lang.Object
  extended by jet.html.core.JetComponent
      extended by jet.html.core.JetChildComponent
          extended by jet.html.core.JetInputComponent
              extended by jet.html.impl.JetRandomizer
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Decodeable, JetChildComponent, JetComponent, JetInputComponent, JetRandomizer, Identifiable, Resetable, ValidationComponent

public class JetRandomizer
extends JetInputComponent
implements JetRandomizer

This class redners input fields

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
 
Fields inherited from class jet.html.core.JetComponent
eventSupport
 
Constructor Summary
JetRandomizer(java.lang.String identifier)
           
JetRandomizer(java.lang.String identifier, java.lang.String styleclass)
          Creates new Component
JetRandomizer(java.lang.String identifier, java.lang.String name, java.lang.String styleclass)
          Creates new Component
 
Method Summary
 void addEvent(HTMLElementEvent event)
          Method to add event
 void addValidationRule(ValidationRule rule)
          Method to add validation rules
 java.lang.Object clone()
          This method generates a clone of the curent one
 void decodeForm(java.lang.StringBuilder builder, JetContext jetContext)
          This method decodes the form to the given buffer
 java.util.List getEvents()
          Method to get events
 java.util.List getValidationRules()
          Method to get validations
 boolean hasEvent(HTMLElementEvent event)
          Method to indicate if aspecial event exist
 boolean hasEvents()
          Method to indicate if events exists
 boolean hasValidationRules()
          Method to indicate if validation exists
 void reset()
          jet.html.core.JetInputComponent#reset()
 
Methods inherited from class jet.html.core.JetInputComponent
decodeGetString, encode, getDisplayValue, getFormDisplayValue, getValue, hasValue, setHidden, setValue
 
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.JetInputComponent
decodeGetString, encode, getDisplayValue, getFormDisplayValue, getValue, hasValue, setHidden, setValue
 
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
 
Methods inherited from interface jet.pool.Identifiable
getIdentifier
 

Constructor Detail

JetRandomizer

public JetRandomizer(java.lang.String identifier)

JetRandomizer

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

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

JetRandomizer

public JetRandomizer(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 JetRandomizer
Specified by:
decodeForm in class JetComponent
Parameters:
builder - builder to use

clone

public java.lang.Object clone()
This method generates a clone of the curent one

Specified by:
clone in interface JetComponent
Specified by:
clone in interface JetRandomizer
Specified by:
clone in class JetComponent
Returns:
Object the clone

reset

public void reset()
jet.html.core.JetInputComponent#reset()

Specified by:
reset in interface JetInputComponent
Specified by:
reset in interface JetRandomizer
Specified by:
reset in interface Resetable

addEvent

public void addEvent(HTMLElementEvent event)
Description copied from interface: JetInputComponent
Method to add event

Specified by:
addEvent in interface JetInputComponent
Specified by:
addEvent in interface JetRandomizer
Parameters:
event - event

getEvents

public java.util.List getEvents()
Description copied from interface: JetInputComponent
Method to get events

Specified by:
getEvents in interface JetInputComponent
Specified by:
getEvents in interface JetRandomizer
Returns:
List HTMLElementEvent

hasEvents

public boolean hasEvents()
Description copied from interface: JetInputComponent
Method to indicate if events exists

Specified by:
hasEvents in interface JetInputComponent
Specified by:
hasEvents in interface JetRandomizer

hasEvent

public boolean hasEvent(HTMLElementEvent event)
Description copied from interface: JetInputComponent
Method to indicate if aspecial event exist

Specified by:
hasEvent in interface JetInputComponent
Specified by:
hasEvent in interface JetRandomizer

getValidationRules

public java.util.List getValidationRules()
Description copied from interface: ValidationComponent
Method to get validations

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

hasValidationRules

public boolean hasValidationRules()
Description copied from interface: ValidationComponent
Method to indicate if validation exists

Specified by:
hasValidationRules in interface JetRandomizer
Specified by:
hasValidationRules in interface ValidationComponent

addValidationRule

public void addValidationRule(ValidationRule rule)
                       throws java.lang.IllegalStateException
Description copied from interface: ValidationComponent
Method to add validation rules

Specified by:
addValidationRule in interface JetRandomizer
Specified by:
addValidationRule in interface ValidationComponent
Parameters:
rule - ValidationRule
Throws:
java.lang.IllegalStateException