jet.html
Interface JetCheckbox

All Superinterfaces:
java.lang.Cloneable, Decodeable, Identifiable, JetChildComponent, JetComponent, JetInputComponent, Resetable, java.io.Serializable, ValidationComponent
All Known Subinterfaces:
JetRadiobutton
All Known Implementing Classes:
JetCheckbox, JetRadiobutton

public interface JetCheckbox
extends JetInputComponent


Nested Class Summary
 
Nested classes/interfaces inherited from interface jet.html.JetChildComponent
JetChildComponent.HasNoParent
 
Method Summary
 void addEvent(HTMLElementEvent event)
          Method to add event
 void addValidationRule(ValidationRule rule)
          Method to add validation rules
 java.lang.Object clone()
          needs to be implemented
 void decodeForm(java.lang.StringBuilder builder, JetContext jetContext)
           
 java.lang.String decodeGetString(JetContext jetContext)
           
 void encode(java.util.Map requestParameters)
           
 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
 boolean isChecked()
           
 void reset()
          Reset the value for reuse - ObjectPool!
 void setChecked(boolean checked)
           
 void setDefaultChecked(boolean defaultChecked)
           
 void setDefaultChecked(java.lang.String defaultChecked)
           
 
Methods inherited from interface jet.html.JetInputComponent
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
 

Method Detail

encode

void encode(java.util.Map requestParameters)
Specified by:
encode in interface JetInputComponent

decodeGetString

java.lang.String decodeGetString(JetContext jetContext)
                                 throws java.io.UnsupportedEncodingException
Specified by:
decodeGetString in interface JetInputComponent
Throws:
java.io.UnsupportedEncodingException

decodeForm

void decodeForm(java.lang.StringBuilder builder,
                JetContext jetContext)
Specified by:
decodeForm in interface Decodeable
Specified by:
decodeForm in interface JetComponent

clone

java.lang.Object clone()
Description copied from interface: Cloneable
needs to be implemented

Specified by:
clone in interface JetComponent
Returns:
Obejct the clone of it

isChecked

boolean isChecked()

setChecked

void setChecked(boolean checked)

setDefaultChecked

void setDefaultChecked(boolean defaultChecked)

setDefaultChecked

void setDefaultChecked(java.lang.String defaultChecked)

addValidationRule

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

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

hasValidationRules

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

Specified by:
hasValidationRules in interface ValidationComponent

getValidationRules

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

Specified by:
getValidationRules in interface ValidationComponent
Returns:
List ValidationRules

addEvent

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

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

hasEvents

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

Specified by:
hasEvents in interface JetInputComponent

hasEvent

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

Specified by:
hasEvent in interface JetInputComponent

getEvents

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

Specified by:
getEvents in interface JetInputComponent
Returns:
List HTMLElementEvent

reset

void reset()
Description copied from interface: JetInputComponent
Reset the value for reuse - ObjectPool!

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