|
|||||||||
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 com.ibm.xsp.component.UIOutputEx com.ibm.xsp.component.UIOutputText
public class UIOutputText
Abstract Output Component that adds Label functionality.
If the for
property is set, then the output will be rendered as an
outputLabel
, otherwise outputText
will be used.
Not 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 | |
---|---|
static java.lang.String |
COMPONENT_TYPE
The standard component type for this component. |
Fields inherited from class javax.faces.component.UIOutput |
---|
COMPONENT_FAMILY |
Fields inherited from class javax.faces.component.UIComponentBase |
---|
EMPTY_ITERATOR |
Fields inherited from class javax.faces.component.UIComponent |
---|
_xspStateId |
Constructor Summary | |
---|---|
UIOutputText()
|
Method Summary | |
---|---|
void |
addAttr(Attr attr)
Add an Attr, to appear as an attribute in the HTML output of this control or object tag. |
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 |
java.util.List<Attr> |
getAttrs()
The extra attributes to be output on the base element at the root of this control or object tag. |
java.lang.String |
getFor()
Return the value of the for property. |
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. |
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. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setAttrs(java.util.List<Attr> attrs)
This method is not used by the XPage generated .java file - instead the addAttr(Attr) method is used to add attributes to the list. |
void |
setFor(java.lang.String id)
Sets the for property, which should be the id of the component this label is to
be associated with. |
Methods inherited from class com.ibm.xsp.component.UIOutputEx |
---|
getDefaultHtmlFilter, getHtmlFilter, getHtmlFilterName |
Methods inherited from class javax.faces.component.UIOutput |
---|
getConverter, getFamily, getLocalValue, getValue, setConverter, setValue |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
_xspCleanTransientData, _xspGetReadOnlyObj, _xspGetRendererData, _xspRemoveReadOnlyObj, _xspRemoveRendererData, _xspSetIdUnchecked, _xspSetReadOnlyObj, _xspSetRendererData, addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, 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 |
Field Detail |
---|
public static final java.lang.String COMPONENT_TYPE
The standard component type for this component.
Constructor Detail |
---|
public UIOutputText()
Method Detail |
---|
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
getStyleKitFamily
in class UIOutputEx
null
themeId corresponding to the
configuration for this type of control in a theme file.public java.lang.String getFor()
Return the value of the for
property. Contents:
Client identifier of the component for which this element is a label (if specfied, otherwise this component acts as a simple outoutText(text) component).
public void setFor(java.lang.String id)
for
property, which should be the id of the component this label is to
be associated with.
id
- public java.util.List<Attr> getAttrs()
null
. The addAttr(Attr)
method should be used to add an Attr.
getAttrs
in interface FacesAttrsObject
public void addAttr(Attr attr)
addAttr
in interface FacesAttrsObject
action
- public void setAttrs(java.util.List<Attr> attrs)
addAttr(Attr)
method is used to add attributes to the list.
public void initBeforeContents(javax.faces.context.FacesContext context) throws javax.faces.FacesException
FacesComponent
initBeforeContents
in interface FacesComponent
initBeforeContents
in class UIOutputEx
javax.faces.FacesException
public void buildContents(javax.faces.context.FacesContext context, FacesComponentBuilder builder) throws javax.faces.FacesException
FacesComponent
buildContents
in interface FacesComponent
buildContents
in class UIOutputEx
javax.faces.FacesException
public void initAfterContents(javax.faces.context.FacesContext context) throws javax.faces.FacesException
FacesComponent
initAfterContents
in interface FacesComponent
initAfterContents
in class UIOutputEx
javax.faces.FacesException
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIOutput
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.UIOutput
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |