|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.html.core.JetComponent jet.html.core.JetChildComponent jet.html.core.JetInputComponent jet.html.impl.JetCheckbox
public class JetCheckbox
This class renders and decodes an checkbox component
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jet.html.JetChildComponent |
---|
JetChildComponent.HasNoParent |
Field Summary | |
---|---|
private boolean |
checked
checked or not? |
private boolean |
defaultChecked
|
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 | |
---|---|
JetCheckbox(java.lang.String identifier)
Creates new Component - name and styleclass would be the same as identifier |
|
JetCheckbox(java.lang.String identifier,
java.lang.String styleclass)
Creates new Component - name and styleclass would be the same as identifier |
|
JetCheckbox(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 retruns a clone from the component |
void |
decodeForm(java.lang.StringBuilder builder,
JetContext jetContext)
This method decodes the form to the given buffer |
java.lang.String |
decodeGetString(JetContext jetContext)
decodes the component to URL-STRING |
void |
encode(java.util.Map requestParameters)
Encodes the needed parameteters |
java.util.List |
getEvents()
Method to get events |
java.util.List |
getValidationRules()
Returns only a cloned list of 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()
Returns if the component is checked or not |
void |
reset()
jet.html.core.JetInputComponent#reset() |
void |
setChecked(boolean checked)
Set the checked boolean |
void |
setDefaultChecked(boolean defaultChecked)
Set the default checked boolean |
void |
setDefaultChecked(java.lang.String defaultChecked)
Set the devault checked boolean |
Methods inherited from class jet.html.core.JetInputComponent |
---|
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 |
---|
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 |
---|
private java.util.List<ValidationRule> validations
private java.util.List<HTMLElementEvent> events
private java.lang.String sevents
private boolean checked
private boolean defaultChecked
Constructor Detail |
---|
public JetCheckbox(java.lang.String identifier)
identifier
- the identifierpublic JetCheckbox(java.lang.String identifier, java.lang.String styleclass)
identifier
- the identifierstyleclass
- the css style classpublic JetCheckbox(java.lang.String identifier, java.lang.String name, java.lang.String styleclass)
identifier
- the identifiername
- the name of the component if different to identifierstyleclass
- the css style classMethod Detail |
---|
public void encode(java.util.Map requestParameters)
encode
in interface JetCheckbox
encode
in interface JetInputComponent
encode
in class JetInputComponent
requestParameters
- request parameterspublic java.lang.String decodeGetString(JetContext jetContext) throws java.io.UnsupportedEncodingException
decodeGetString
in interface JetCheckbox
decodeGetString
in interface JetInputComponent
decodeGetString
in class JetInputComponent
java.io.UnsupportedEncodingException
public void decodeForm(java.lang.StringBuilder builder, JetContext jetContext)
decodeForm
in interface Decodeable
decodeForm
in interface JetCheckbox
decodeForm
in interface JetComponent
decodeForm
in class JetComponent
builder
- builder to usepublic java.lang.Object clone()
clone
in interface JetCheckbox
clone
in interface JetComponent
clone
in class JetComponent
public boolean isChecked()
isChecked
in interface JetCheckbox
public void setChecked(boolean checked)
setChecked
in interface JetCheckbox
checked
- checkedpublic void setDefaultChecked(boolean defaultChecked)
setDefaultChecked
in interface JetCheckbox
defaultChecked
- checkedpublic void setDefaultChecked(java.lang.String defaultChecked)
setDefaultChecked
in interface JetCheckbox
defaultChecked
- checkedpublic void addValidationRule(ValidationRule rule)
ValidationComponent
addValidationRule
in interface JetCheckbox
addValidationRule
in interface ValidationComponent
rule
- ValidationRuleValidationComponent.addValidationRule( ValidationRule )
public boolean hasValidationRules()
ValidationComponent
hasValidationRules
in interface JetCheckbox
hasValidationRules
in interface ValidationComponent
ValidationComponent.hasValidationRules( )
public java.util.List getValidationRules()
getValidationRules
in interface JetCheckbox
getValidationRules
in interface ValidationComponent
ValidationComponent.getValidationRules( )
public void addEvent(HTMLElementEvent event)
JetInputComponent
addEvent
in interface JetCheckbox
addEvent
in interface JetInputComponent
event
- eventJetInputComponent.addEvent( jet.html.core.HTMLElementEvent )
public boolean hasEvents()
JetInputComponent
hasEvents
in interface JetCheckbox
hasEvents
in interface JetInputComponent
JetInputComponent.hasEvents()
public boolean hasEvent(HTMLElementEvent event)
JetInputComponent
hasEvent
in interface JetCheckbox
hasEvent
in interface JetInputComponent
JetInputComponent.hasEvent( jet.html.core.HTMLElementEvent )
public java.util.List getEvents()
JetInputComponent
getEvents
in interface JetCheckbox
getEvents
in interface JetInputComponent
JetInputComponent.getEvents()
public void reset()
reset
in interface JetCheckbox
reset
in interface JetInputComponent
reset
in interface Resetable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |