|
||||||||||
| 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.JetInput
public class JetInput
This class redners input fields
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jet.html.JetChildComponent |
|---|
JetChildComponent.HasNoParent |
| Field Summary | |
|---|---|
private java.util.List<HTMLElementEvent> |
events
events |
static java.lang.String |
HIDDEN
|
private java.lang.String |
inputtype
holds the html input type to use |
static java.lang.String |
PASSWORD
|
private java.lang.String |
sevents
Holds the events already in rendered state |
static java.lang.String |
TEXTAREA
|
static java.lang.String |
TEXTINPUT
|
private java.util.List<ValidationRule> |
validations
validation rules |
| Fields inherited from class jet.html.core.JetComponent |
|---|
eventSupport |
| Constructor Summary | |
|---|---|
JetInput(java.lang.String identifier)
Creates new Component - name and styleclass would be the same as identifier |
|
JetInput(java.lang.String identifier,
java.lang.String styleclass)
Creates new Component |
|
JetInput(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 generates a clone of the curent one |
void |
decodeForm(java.lang.StringBuilder builder,
JetContext jetContext)
This method decodes the form to the given buffer |
java.util.List |
getEvents()
Method to get events |
java.lang.String |
getInputtype()
Returns the input type |
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 |
setInputType(java.lang.String inputtype)
Set the input type |
| Methods inherited from class jet.html.core.JetInputComponent |
|---|
decodeGetString, encode, 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 |
|---|
decodeGetString, encode, 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
public static final java.lang.String HIDDEN
public static final java.lang.String PASSWORD
public static final java.lang.String TEXTINPUT
public static final java.lang.String TEXTAREA
private java.lang.String inputtype
| Constructor Detail |
|---|
public JetInput(java.lang.String identifier)
identifier - the identifier
public JetInput(java.lang.String identifier,
java.lang.String styleclass)
identifier - the identifierstyleclass - the css style class
public JetInput(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 class| Method Detail |
|---|
public void decodeForm(java.lang.StringBuilder builder,
JetContext jetContext)
decodeForm in interface DecodeabledecodeForm in interface JetComponentdecodeForm in interface JetInputdecodeForm in class JetComponentbuilder - builder to usepublic java.lang.String getInputtype()
getInputtype in interface JetInputpublic void setInputType(java.lang.String inputtype)
setInputType in interface JetInputinputtype - the input type to usepublic java.lang.Object clone()
clone in interface JetComponentclone in interface JetInputclone in class JetComponentpublic void addValidationRule(ValidationRule rule)
ValidationComponent
addValidationRule in interface JetInputaddValidationRule in interface ValidationComponentrule - ValidationRuleValidationComponent.addValidationRule( jet.validation.ValidationRule )public boolean hasValidationRules()
ValidationComponent
hasValidationRules in interface JetInputhasValidationRules in interface ValidationComponentValidationComponent.hasValidationRules( )public java.util.List getValidationRules()
getValidationRules in interface JetInputgetValidationRules in interface ValidationComponentValidationComponent.getValidationRules( )public void addEvent(HTMLElementEvent event)
JetInputComponent
addEvent in interface JetInputaddEvent in interface JetInputComponentevent - eventJetInputComponent.addEvent( jet.html.core.HTMLElementEvent )public boolean hasEvents()
JetInputComponent
hasEvents in interface JetInputhasEvents in interface JetInputComponentJetInputComponent.hasEvents()public boolean hasEvent(HTMLElementEvent event)
JetInputComponent
hasEvent in interface JetInputhasEvent in interface JetInputComponentJetInputComponent.hasEvent( jet.html.core.HTMLElementEvent )public java.util.List getEvents()
JetInputComponent
getEvents in interface JetInputgetEvents in interface JetInputComponentJetInputComponent.getEvents()public void reset()
reset in interface JetInputreset in interface JetInputComponentreset in interface Resetable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||