jet.html.impl
Class JetTextArea

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.JetTextArea
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Decodeable, JetChildComponent, JetComponent, JetInputComponent, JetTextArea, Identifiable, Resetable, ValidationComponent

public class JetTextArea
extends JetInputComponent
implements JetTextArea

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
private  java.util.List<HTMLElementEvent> events
          events
private  java.lang.String sevents
          Holds the events already in rendered state
private  java.util.List<ValidationRule> validations
          validation rules
 
Fields inherited from class jet.html.core.JetComponent
eventSupport
 
Constructor Summary
JetTextArea(java.lang.String identifier)
          Creates new Component - name and styleclass would be the same as identifier
JetTextArea(java.lang.String identifier, java.lang.String styleclass)
          Creates new Component
JetTextArea(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()
          returns not the real child collection - only a clone of it
 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
 

Field Detail

validations

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


events

private java.util.List<HTMLElementEvent> events
events


sevents

private java.lang.String sevents
Holds the events already in rendered state

Constructor Detail

JetTextArea

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

Parameters:
identifier - the identifier

JetTextArea

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

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

JetTextArea

public JetTextArea(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 JetTextArea
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 JetTextArea
Specified by:
clone in class JetComponent
Returns:
Object the clone

addValidationRule

public void addValidationRule(ValidationRule rule)
Description copied from interface: ValidationComponent
Method to add validation rules

Specified by:
addValidationRule in interface JetTextArea
Specified by:
addValidationRule in interface ValidationComponent
Parameters:
rule - ValidationRule
See Also:
ValidationComponent.addValidationRule( jet.validation.ValidationRule )

hasValidationRules

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

Specified by:
hasValidationRules in interface JetTextArea
Specified by:
hasValidationRules in interface ValidationComponent
See Also:
ValidationComponent.hasValidationRules( )

getValidationRules

public java.util.List getValidationRules()
returns not the real child collection - only a clone of it

Specified by:
getValidationRules in interface JetTextArea
Specified by:
getValidationRules in interface ValidationComponent
Returns:
List ValidationRules
See Also:
ValidationComponent.getValidationRules( )

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 JetTextArea
Parameters:
event - event
See Also:
JetInputComponent.addEvent( jet.html.core.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 JetTextArea
See Also:
JetInputComponent.hasEvents()

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 JetTextArea
See Also:
JetInputComponent.hasEvent( jet.html.core.HTMLElementEvent )

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 JetTextArea
Returns:
List HTMLElementEvent
See Also:
JetInputComponent.getEvents()

reset

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

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