jet.html
Interface JetSelection

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

public interface JetSelection
extends JetInputComponent


Nested Class Summary
 
Nested classes/interfaces inherited from interface jet.html.JetChildComponent
JetChildComponent.HasNoParent
 
Method Summary
 void addDefaultOption(JetOption option)
           
 void addEvent(HTMLElementEvent event)
          Method to add event
 void addOption(JetOption option)
           
 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 getDefaultOptions()
           
 java.util.List getEvents()
          Method to get events
 boolean getMultiple()
           
 java.util.List getOptions()
           
 java.util.List getValidationRules()
          Method to get validations
 java.lang.String getValue()
           
 java.lang.String[] getValues()
           
 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 hasValue()
           
 void reset()
          Reset the value for reuse - ObjectPool!
 void setDefaultOptions(java.util.List<JetOption> defaultOptions)
           
 void setMultiple(java.lang.String multiple)
           
 void setOptions(java.util.List<JetOption> options)
           
 void setValue(java.lang.String value)
           
 void setValues(java.lang.String[] values)
           
 
Methods inherited from interface jet.html.JetInputComponent
getDisplayValue, getFormDisplayValue, setHidden
 
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

getValue

java.lang.String getValue()
Specified by:
getValue in interface JetInputComponent

getValues

java.lang.String[] getValues()

setValue

void setValue(java.lang.String value)
Specified by:
setValue in interface JetInputComponent

setValues

void setValues(java.lang.String[] values)

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

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

getOptions

java.util.List getOptions()

setOptions

void setOptions(java.util.List<JetOption> options)

getDefaultOptions

java.util.List getDefaultOptions()

setDefaultOptions

void setDefaultOptions(java.util.List<JetOption> defaultOptions)

addOption

void addOption(JetOption option)

addDefaultOption

void addDefaultOption(JetOption option)

getMultiple

boolean getMultiple()

setMultiple

void setMultiple(java.lang.String multiple)

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

hasValue

boolean hasValue()
Specified by:
hasValue in interface JetInputComponent