jet.html
Interface JetButton

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

public interface JetButton
extends JetInputComponent


Nested Class Summary
 
Nested classes/interfaces inherited from interface jet.html.JetChildComponent
JetChildComponent.HasNoParent
 
Field Summary
static java.lang.String BUTTON
           
static java.lang.String IMAGE
           
static java.lang.String JSUBMIT
           
static java.lang.String RESET
           
static java.lang.String SUBMIT
           
 
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.lang.String getButtonType()
           
 java.util.List getEvents()
          Method to get events
 java.lang.String getMessageKey()
           
 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
 void reset()
          Reset the value for reuse - ObjectPool!
 void setButtonType(java.lang.String buttonType)
           
 void setLabel(java.lang.String value)
           
 void setMessageKey(java.lang.String messageKey)
           
 
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

SUBMIT

static final java.lang.String SUBMIT
See Also:
Constant Field Values

IMAGE

static final java.lang.String IMAGE
See Also:
Constant Field Values

RESET

static final java.lang.String RESET
See Also:
Constant Field Values

BUTTON

static final java.lang.String BUTTON
See Also:
Constant Field Values

JSUBMIT

static final java.lang.String JSUBMIT
See Also:
Constant Field Values
Method Detail

decodeForm

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

decodeGetString

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

encode

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

getButtonType

java.lang.String getButtonType()

setButtonType

void setButtonType(java.lang.String buttonType)

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

setLabel

void setLabel(java.lang.String value)

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

getMessageKey

java.lang.String getMessageKey()

setMessageKey

void setMessageKey(java.lang.String messageKey)

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