|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjet.html.core.JetComponent
jet.html.core.JetChildComponent
jet.html.core.JetInputComponent
jet.html.impl.JetButton
public class JetButton
This class renders and decodes an submit component
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jet.html.JetChildComponent |
|---|
JetChildComponent.HasNoParent |
| Field Summary | |
|---|---|
private java.lang.String |
buttonType
Holds the selected submit type |
private java.util.List<HTMLElementEvent> |
events
events |
private java.lang.String |
messageKey
Holds the message key to use for labeling the button |
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 |
| Fields inherited from interface jet.html.JetButton |
|---|
BUTTON, IMAGE, JSUBMIT, RESET, SUBMIT |
| Constructor Summary | |
|---|---|
JetButton(java.lang.String identifier)
Creates new Component - name and styleclass would be the same as identifier |
|
JetButton(java.lang.String identifier,
java.lang.String styleclass)
Creates new Component - name would be the same as identifier |
|
JetButton(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()
Implementation of the clone method |
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.lang.String |
getButtonType()
Returns the input type of the component |
java.util.List |
getEvents()
Method to get events |
java.lang.String |
getMessageKey()
Returns the message key for localizer file to use |
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 |
void |
reset()
jet.html.core.JetInputComponent#reset() |
void |
setButtonType(java.lang.String buttonType)
Set the input type |
void |
setLabel(java.lang.String value)
Set the label |
void |
setMessageKey(java.lang.String messageKey)
Set the message key to use for labeling the button |
| 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 java.lang.String buttonType
private java.lang.String messageKey
| Constructor Detail |
|---|
public JetButton(java.lang.String identifier)
identifier - the identifier
public JetButton(java.lang.String identifier,
java.lang.String styleclass)
identifier - the identifierstyleclass -
public JetButton(java.lang.String identifier,
java.lang.String name,
java.lang.String styleclass)
identifier - the identifiername - styleclass - | Method Detail |
|---|
public void decodeForm(java.lang.StringBuilder builder,
JetContext jetContext)
decodeForm in interface DecodeabledecodeForm in interface JetButtondecodeForm in interface JetComponentdecodeForm in class JetComponentbuilder - builder to use
public java.lang.String decodeGetString(JetContext jetContext)
throws java.io.UnsupportedEncodingException
decodeGetString in interface JetButtondecodeGetString in interface JetInputComponentdecodeGetString in class JetInputComponentjava.io.UnsupportedEncodingExceptionpublic void encode(java.util.Map requestParameters)
encode in interface JetButtonencode in interface JetInputComponentencode in class JetInputComponentrequestParameters - request parameterspublic java.lang.String getButtonType()
getButtonType in interface JetButtonpublic void setButtonType(java.lang.String buttonType)
setButtonType in interface JetButtonbuttonType - the input type to usepublic java.lang.Object clone()
clone in interface JetButtonclone in interface JetComponentclone in class JetComponentpublic void setLabel(java.lang.String value)
setLabel in interface JetButtonvalue - the labelpublic void addValidationRule(ValidationRule rule)
ValidationComponent
addValidationRule in interface JetButtonaddValidationRule in interface ValidationComponentrule - ValidationRuleValidationComponent.addValidationRule( jet.validation.ValidationRule )public boolean hasValidationRules()
ValidationComponent
hasValidationRules in interface JetButtonhasValidationRules in interface ValidationComponentValidationComponent.hasValidationRules( )public java.util.List getValidationRules()
getValidationRules in interface JetButtongetValidationRules in interface ValidationComponentValidationComponent.getValidationRules( )public void addEvent(HTMLElementEvent event)
JetInputComponent
addEvent in interface JetButtonaddEvent in interface JetInputComponentevent - eventJetInputComponent.addEvent( jet.html.core.HTMLElementEvent )public boolean hasEvents()
JetInputComponent
hasEvents in interface JetButtonhasEvents in interface JetInputComponentJetInputComponent.hasEvents()public boolean hasEvent(HTMLElementEvent event)
JetInputComponent
hasEvent in interface JetButtonhasEvent in interface JetInputComponentJetInputComponent.hasEvent( jet.html.core.HTMLElementEvent )public java.util.List getEvents()
JetInputComponent
getEvents in interface JetButtongetEvents in interface JetInputComponentJetInputComponent.getEvents()public java.lang.String getMessageKey()
getMessageKey in interface JetButtonpublic void setMessageKey(java.lang.String messageKey)
setMessageKey in interface JetButtonpublic void reset()
reset in interface JetButtonreset in interface JetInputComponentreset in interface Resetable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||