|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
com.sun.rave.web.ui.component.PropertyBase
com.sun.rave.web.ui.component.Property
public class Property
Field Summary | |
---|---|
static java.lang.String |
CONTENT_FACET
|
static java.lang.String |
HELPTEXT_FACET
|
static java.lang.String |
LABEL_FACET
|
Fields inherited from class javax.faces.component.UIComponent |
---|
bindings |
Constructor Summary | |
---|---|
Property()
Constructor. |
Method Summary | |
---|---|
javax.faces.component.UIComponent |
getContentComponent()
Return the a component that represents the content of the property. |
javax.faces.component.UIComponent |
getHelpTextComponent()
Return the component that implements help text. |
javax.faces.component.UIComponent |
getLabelComponent()
Return the component that implements a label. |
java.lang.String |
getPrimaryElementID(javax.faces.context.FacesContext context)
This method calculates the proper UIComponent that
should be used when the label property is used with this
component. |
Methods inherited from class com.sun.rave.web.ui.component.PropertyBase |
---|
getFamily, getHelpText, getLabel, getLabelAlign, getStyle, getStyleClass, isDisabled, isNoWrap, isOverlapLabel, isVisible, restoreState, saveState, setDisabled, setHelpText, setLabel, setLabelAlign, setNoWrap, setOverlapLabel, setStyle, setStyleClass, setVisible |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, 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 |
---|
encodeAll, getContainerClientId, getValueExpression, setValueExpression |
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 CONTENT_FACET
public static final java.lang.String HELPTEXT_FACET
public static final java.lang.String LABEL_FACET
Constructor Detail |
---|
public Property()
Method Detail |
---|
public java.lang.String getPrimaryElementID(javax.faces.context.FacesContext context)
This method calculates the proper UIComponent
that
should be used when the label property is used with this
component.
This method provides the implementation for
ComplexComponent
getPrimaryElementID
in interface ComplexComponent
context
- The FacesContext
.
id
of the label target.public javax.faces.component.UIComponent getContentComponent()
content
does not exist null
is returned.
public javax.faces.component.UIComponent getHelpTextComponent()
helpText
is found
that component is returned. Otherwise a HelpInline
component is returned. It is assigned the id
getId() + "_helpText"
If the facet is not defined then the returned HelpInline
component is re-intialized every time this method is called.
If getHelpeText
returns null, null is returned.
public javax.faces.component.UIComponent getLabelComponent()
label
is found
that component is returned. Otherwise a Label
component
is returned. It is assigned the id
getId() + "_label"
If the facet is not defined then the returned Label
component is re-intialized every time this method is called.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |