|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase javax.faces.component.UIOutput javax.faces.component.UIInput com.ibm.xsp.component.UIInputEx
public class UIInputEx
The input control base implementation, that is intended to be subclassed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.faces.component.UIComponentBase |
---|
javax.faces.component.UIComponentBase.AggregatedIterator, javax.faces.component.UIComponentBase.UnmodifiableIterator |
Nested classes/interfaces inherited from class javax.faces.component.UIComponent |
---|
javax.faces.component.UIComponent.StateMap, javax.faces.component.UIComponent.StateMapEntry |
Field Summary |
---|
Fields inherited from class javax.faces.component.UIInput |
---|
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID |
Fields inherited from class javax.faces.component.UIComponentBase |
---|
EMPTY_ITERATOR |
Fields inherited from class javax.faces.component.UIComponent |
---|
_xspStateId |
Constructor Summary | |
---|---|
UIInputEx()
|
Method Summary | |
---|---|
void |
addDojoAttribute(DojoAttribute attribute)
Add a dojo attribute to the set associated with this property. |
void |
buildContents(javax.faces.context.FacesContext context,
FacesComponentBuilder builder)
Build the component children and facets, the default implementation is usually: builder.buildAll(context, this, true); // includeFacets=true |
protected java.lang.Object |
getConvertedValue(javax.faces.context.FacesContext context,
java.lang.Object newSubmittedValue)
|
java.lang.String |
getDefaultHtmlFilter()
The name of the html filtering engine to use when the "htmlFilter" property is not set in the XPage source. |
java.lang.String |
getDefaultHtmlFilterIn()
The name of the html filtering engine to use when the "htmlFilterIn" property is not set in the XPage source. |
java.lang.Object |
getDefaultValue()
Return the default value of this control. |
java.util.List<DojoAttribute> |
getDojoAttributes()
Return the value of the dojoAttributes property. |
java.lang.String |
getDojoType()
Return the value of the dojoType property. |
java.lang.String |
getHtmlFilter()
In some subclasses this is overridden with a property indicating which Active Content Filtering processor should be used when data is emitted. |
java.lang.String |
getHtmlFilterIn()
In some subclasses this is overridden with a property indicating which Active Content Filtering processor should be used when data is uploaded. |
java.lang.String |
getHtmlFilterInName()
Look for an html filtering engine (in) associated to the control. |
java.lang.String |
getHtmlFilterName()
Look for an html filtering engine associated to the control. |
java.lang.String |
getMultipleSeparator()
Indicates that this control is bound to multiple values and provides the delimiter used to separate them |
javax.faces.component.UIComponent |
getRendererComponent()
|
java.lang.String |
getRequiredMessage()
The error message to display, in the client or in a Display Error control, when field is required and a value is not present. |
java.lang.String |
getStyleKitFamily()
The styleKitFamily is basically the default themeId, to use if the "themeId" property is not set on this control instance in the XPage source. |
java.lang.Object |
getValue()
Like the superclass implementation, except may use the default value ( getDefaultValue() ). |
java.util.List<?> |
getValueAsList()
Get the current value as a List, used as a programmability API in Server Side Java Script when getMultipleSeparator() is set. |
java.lang.String |
getValueAsString()
Get the current value as a String. |
void |
initAfterContents(javax.faces.context.FacesContext context)
Perform component initialization after it's children and facets are added. |
void |
initBeforeContents(javax.faces.context.FacesContext context)
Perform component initialization before its children and facets are added. |
boolean |
isDisableClientSideValidation()
Check if client side validation is disabled. |
boolean |
isDisableModifiedFlag()
The modified support is the mechanism in the Notes Client where if an input control contains a value and the user closes the XPage tab, they will be prompted like: The XPage has been modified, Save, Discard, Cancel? As part of that mechanism, each input control has a "disableModifiedFlag" property to allow that control to opt-out of the modified support, so for example if you have a search field, where you don't normally save the searched text to a document, you would exclude that search field from the modified support, so a value in that search field will not cause the Save/Discard dialog to appear. |
boolean |
isDisableValidators()
Check if the validators should be disabled for this control. |
boolean |
isMultipleTrim()
This is true by default, so when multipleSeparator is set it will trim the separated values, so that leading and trailing whitespace is removed. |
boolean |
isRequired()
Like the superclass implementation but also the presence of a FacesRequiredValidator when the required property is not
explicitly set indicates that the field is required. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setDefaultValue(java.lang.Object defaultValue)
Set the default value for this control. |
void |
setDisableClientSideValidation(boolean disableClientSideValidation)
|
void |
setDisableModifiedFlag(boolean disableModifiedFlag)
|
void |
setDisableValidators(boolean disableValidators)
|
void |
setDojoAttributes(java.util.List<DojoAttribute> dojoAttributes)
Set the value of the dojoAttributes property. |
void |
setDojoType(java.lang.String dojoType)
Set the value of the dojoType property. |
void |
setMultipleSeparator(java.lang.String multipleSeparator)
|
void |
setMultipleTrim(boolean multipleTrim)
|
void |
setRendererComponent(javax.faces.component.UIComponent rendererComponent)
This is invoked by the Type Ahead control and the Date Time Picker control. |
void |
setRequired(boolean required)
|
void |
setValueFromString(java.lang.String value)
Create a list based on a string. |
void |
updateModel(javax.faces.context.FacesContext context)
|
protected void |
validateValue(javax.faces.context.FacesContext context,
java.lang.Object newValue)
|
Methods inherited from class javax.faces.component.UIInput |
---|
addValidator, addValueChangeListener, broadcast, compareValues, decode, getFamily, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, validate |
Methods inherited from class javax.faces.component.UIOutput |
---|
getConverter, getLocalValue, setConverter |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
_xspCleanTransientData, _xspGetReadOnlyObj, _xspGetRendererData, _xspRemoveReadOnlyObj, _xspRemoveRendererData, _xspSetIdUnchecked, _xspSetReadOnlyObj, _xspSetRendererData, addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class javax.faces.component.UIComponent |
---|
_xspGetStateId, _xspGetStateMap, _xspRestoreAttribute, _xspRestoreState, _xspSaveState, invokeOnComponent, isVisitable, markInitialState, setControlState, visitTree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.faces.component.ValueHolder |
---|
getConverter, getLocalValue, setConverter |
Constructor Detail |
---|
public UIInputEx()
Method Detail |
---|
public javax.faces.component.UIComponent getRendererComponent()
setRendererComponent(UIComponent)
public void setRendererComponent(javax.faces.component.UIComponent rendererComponent)
getStyleKitFamily()
, where it is used as a delegate to supply
the styleKitFamily.
rendererComponent
- public java.lang.String getStyleKitFamily()
ThemeControl
The implementation may return different values depending on the configuration of the current control, for example the Button control returns a different value and looks different when it is configured as a cancel button.
getStyleKitFamily
in interface ThemeControl
null
themeId corresponding to the
configuration for this type of control in a theme file.ThemeControl.getStyleKitFamily()
public java.lang.String getDefaultHtmlFilter()
UIInputEx
implementation defaults to null, but subclasses may provide a default
filter for their control type.
null
or the name of the default output filter to use
when the "htmlFilter" property is not set in the XPage source.FacesOutputFiltering.getHtmlFilterName()
public java.lang.String getHtmlFilterName()
FacesOutputFiltering
getHtmlFilterName
in interface FacesOutputFiltering
FacesOutputFiltering.getHtmlFilterName()
public java.lang.String getDefaultHtmlFilterIn()
UIInputEx
implementation defaults to null, but subclasses may provide a default
filter for their control type.
null
or the name of the default input filter to use
when the "htmlFilterIn" property is not set in the XPage source.FacesInputFiltering.getHtmlFilterInName()
public java.lang.String getHtmlFilterInName()
FacesInputFiltering
getHtmlFilterInName
in interface FacesInputFiltering
FacesInputFiltering.getHtmlFilterInName()
public void setDefaultValue(java.lang.Object defaultValue)
Set the default value for this control.
public java.lang.Object getDefaultValue()
Return the default value of this control. This is an object, not a String, the converter is not applied to the value, so if you need to set an int or Date as the default value, you will need to compute the value as the correct type, rather than typing it directly into the property in the XPage as a String. The object should be serializable or computed, to prevent errors when persistence is enabled.
public boolean isDisableClientSideValidation()
FacesInputComponent
isDisableClientSideValidation
in interface FacesInputComponent
public void setDisableClientSideValidation(boolean disableClientSideValidation)
public boolean isDisableValidators()
FacesInputComponent
isDisableValidators
in interface FacesInputComponent
public void setDisableValidators(boolean disableValidators)
public boolean isMultipleTrim()
public void setMultipleTrim(boolean multipleTrim)
public boolean isDisableModifiedFlag()
FacesInputComponent
UIViewRootEx.isEnableModifiedFlag()
.
isDisableModifiedFlag
in interface FacesInputComponent
public void setDisableModifiedFlag(boolean disableModifiedFlag)
public java.lang.String getMultipleSeparator()
public void setMultipleSeparator(java.lang.String multipleSeparator)
public java.lang.Object getValue()
getDefaultValue()
).
getValue
in interface javax.faces.component.ValueHolder
getValue
in class javax.faces.component.UIOutput
UIOutput.getValue()
public java.util.List<?> getValueAsList()
getMultipleSeparator()
is set.
When the multipleSeparator is set, the value is mostly returned as a
list, unless there is a single item, in which case the single item value
is returned. This method ensures that the returned value is a list (or
null) even though the input doesn't handle multiple values.
public java.lang.String getValueAsString()
public void setValueFromString(java.lang.String value)
public void setRequired(boolean required)
setRequired
in interface javax.faces.component.EditableValueHolder
setRequired
in class javax.faces.component.UIInput
public boolean isRequired()
FacesRequiredValidator
when the required property is not
explicitly set indicates that the field is required.
isRequired
in interface javax.faces.component.EditableValueHolder
isRequired
in class javax.faces.component.UIInput
public java.lang.String getRequiredMessage()
FacesRequiredValidator
, or uses the default message.
getRequiredMessage
in class javax.faces.component.UIInput
protected java.lang.Object getConvertedValue(javax.faces.context.FacesContext context, java.lang.Object newSubmittedValue) throws javax.faces.convert.ConverterException
getConvertedValue
in class javax.faces.component.UIInput
javax.faces.convert.ConverterException
protected void validateValue(javax.faces.context.FacesContext context, java.lang.Object newValue)
validateValue
in class javax.faces.component.UIInput
public void updateModel(javax.faces.context.FacesContext context)
updateModel
in class javax.faces.component.UIInput
public java.lang.String getHtmlFilter()
public java.lang.String getHtmlFilterIn()
public java.lang.String getDojoType()
Return the value of the dojoType
property. Contents:
Sets the default Dojo Type used to create this control in the browser.
getDojoType
in interface FacesDojoComponent
FacesDojoComponent
public void setDojoType(java.lang.String dojoType)
Set the value of the dojoType
property.
FacesDojoComponent
public java.util.List<DojoAttribute> getDojoAttributes()
Return the value of the dojoAttributes
property. Contents:
A list of Dojo attributes
getDojoAttributes
in interface FacesDojoComponent
FacesDojoComponent
public void addDojoAttribute(DojoAttribute attribute)
attribute
- FacesDojoComponent
public void setDojoAttributes(java.util.List<DojoAttribute> dojoAttributes)
Set the value of the dojoAttributes
property.
FacesDojoComponent
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIInput
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIInput
public void initBeforeContents(javax.faces.context.FacesContext context) throws javax.faces.FacesException
FacesComponent
initBeforeContents
in interface FacesComponent
javax.faces.FacesException
public void buildContents(javax.faces.context.FacesContext context, FacesComponentBuilder builder) throws javax.faces.FacesException
FacesComponent
buildContents
in interface FacesComponent
javax.faces.FacesException
public void initAfterContents(javax.faces.context.FacesContext context) throws javax.faces.FacesException
FacesComponent
initAfterContents
in interface FacesComponent
javax.faces.FacesException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |