| java.lang.Object com.sun.jbi.jsf.factory.PropertySheetAdaptorBase
All known Subclasses: com.sun.jbi.jsf.util.JBIRuntimeLogLevelsPropertySheetAdaptor, com.sun.jbi.jsf.util.JBILogLevelsPropertySheetAdaptor,
PropertySheetAdaptorBase | abstract public class PropertySheetAdaptorBase implements PropertySheetAdaptor(Code) | | This class provides some of the implemenation for the methods required
by the PropoertySheetAdaptor interface. This class may be extended to assist in
implementing a PropertySheetAdaptor implementation.
The PropertySheetAdaptor implementation must have a public
static PropertySheetAdaptor getInstance(FacesContext, LayoutComponent,
UIComponent) method in order to get access to an instance of the
PropertySheetAdaptor instance.
See Also: PropertySheetAdaptor |
Method Summary | |
public UIComponent | getDropDownComponent(UIComponent parent) | public Map<String, UIComponent> | getFacets(Object nodeObject) This method returns any facets that should be applied to the
PropertySheet (comp) . | public String | getFactoryClass() | public Map<String, List<Handler>> | getHandlersByType(UIComponent comp, Object nodeObject) Advanced framework feature which provides better handling for
things such as expanding PropertySheet, beforeEncode, and other
events.
This method should return a Map of List
of Handler objects. | public UIComponent | getHiddenFieldComponent(UIComponent parent, String id) | public UIComponent | getHiddenFieldComponent(UIComponent parent) | public String | getId() | public LayoutComponent | getLayoutComponent() | protected Object | getOptionValue(String optionName, UIComponent parent) This method returnes the Optione Value. | public UIComponent | getParentUIComponent() | public UIComponent | getPropertyComponent(UIComponent parent) | public UIComponent | getPropertySheetSectionComponent(UIComponent parent) | protected Map | getRequestScope() | protected String | getRequiredOptionValue(String optionName, UIComponent parent) This method returnes the Optione Value. | protected Map | getSessionScope() | public UIComponent | getStaticTextComponent(UIComponent parent) | public void | init() This method is called shortly after
getInstance(FacesContext, LayoutComponent, UIComponent). | public void | setComponentId(UIComponent component, String tagType, String idTagKey) | public void | setComponentId(UIComponent component, String idTagKey) | public void | setLayoutComponent(LayoutComponent comp) | public void | setParentUIComponent(UIComponent comp) |
mPropertySheetSectionIdTag | protected String mPropertySheetSectionIdTag(Code) | | |
PropertySheetAdaptorBase | protected PropertySheetAdaptorBase()(Code) | | This Constructor does nothing. If you need to store a reference
to the LayoutComponent or UIComponent
associated with this PropertySheetAdaptor , it may be more
convenient to use a different constructor.
|
PropertySheetAdaptorBase | protected PropertySheetAdaptorBase(LayoutComponent desc, UIComponent parent)(Code) | | This Constructor save the LayoutComponent and the
UIComponent for easy use later.
|
getDropDownComponent | public UIComponent getDropDownComponent(UIComponent parent)(Code) | | This method creates and returns the a Dropdown Component.
Parameters: parent - The parent component. |
getFacets | public Map<String, UIComponent> getFacets(Object nodeObject)(Code) | | This method returns any facets that should be applied to the
PropertySheet (comp) .
Facets that already exist on comp , or facets that
are directly added to comp do not need to be returned
from this method.
Parameters: nodeObject - The (model) object representing the property sheet. |
getFactoryClass | public String getFactoryClass()(Code) | | This method returns the UIComponent factory class
implementation that should be used to create a
PropertySheet for the given property sheet model object.
|
getHandlersByType | public Map<String, List<Handler>> getHandlersByType(UIComponent comp, Object nodeObject)(Code) | | Advanced framework feature which provides better handling for
things such as expanding PropertySheet, beforeEncode, and other
events.
This method should return a Map of List
of Handler objects. Each List in the
Map should be registered under a key that cooresponds
to to the "event" in which the Handler s should be
invoked.
This implementation returns null. This method must be overriden
to take advantage of this feature.
|
getHiddenFieldComponent | public UIComponent getHiddenFieldComponent(UIComponent parent, String id)(Code) | | This method creates and returns the a HiddenField Component.
Parameters: parent - The parent component. Parameters: id - The component id. |
getHiddenFieldComponent | public UIComponent getHiddenFieldComponent(UIComponent parent)(Code) | | This method creates and returns the a HiddenField Component.
Parameters: parent - The parent component. |
getId | public String getId()(Code) | | This method returns the id for the PropertySheet object.
|
getLayoutComponent | public LayoutComponent getLayoutComponent()(Code) | | This method retrieves the LayoutComponent associated
with this PropertySheetAdaptor .
|
getOptionValue | protected Object getOptionValue(String optionName, UIComponent parent)(Code) | | This method returnes the Optione Value. If optionName specifies
the session or request scope, then the method will use the session
or request map file to retrieve the value.
Parameters: optionName - The name of the option. Parameters: parent - The parent component. |
getParentUIComponent | public UIComponent getParentUIComponent()(Code) | | This method retrieves the UIComponent associated
with this PropertySheetAdaptor .
|
getPropertyComponent | public UIComponent getPropertyComponent(UIComponent parent)(Code) | | This method creates and returns the a Property Component Component.
Parameters: parent - The parent component. |
getPropertySheetSectionComponent | public UIComponent getPropertySheetSectionComponent(UIComponent parent)(Code) | | This method creates and returns the a PropertySheetSection Component.
Parameters: parent - The parent component. |
getRequestScope | protected Map getRequestScope()(Code) | | Returns the request scope Map.
|
getRequiredOptionValue | protected String getRequiredOptionValue(String optionName, UIComponent parent) throws IllegalArgumentException(Code) | | This method returnes the Optione Value. If the requested option does
not exists then an InvalidArgumementExceptin is thrown.
Parameters: optionName - The name of the option. Parameters: parent - The parent component. |
getSessionScope | protected Map getSessionScope()(Code) | | Returns the session scope Map.
|
getStaticTextComponent | public UIComponent getStaticTextComponent(UIComponent parent)(Code) | | This method creates and returns the a StaticText Component.
Parameters: parent - The parent component. |
init | public void init()(Code) | | This method is called shortly after
getInstance(FacesContext, LayoutComponent, UIComponent). It
provides a place for post-creation initialization to take occur.
This implemenation does nothing.
|
setComponentId | public void setComponentId(UIComponent component, String tagType, String idTagKey)(Code) | | Sets the Component Id using the given id tag string.
Parameters: parent - The component. Parameters: tagType - The tag type. Parameters: idTagKey - The tag string. |
setComponentId | public void setComponentId(UIComponent component, String idTagKey)(Code) | | Sets the Component Id using the given id tag string.
Parameters: parent - The component. Parameters: idTagKey - The tag string. |
setLayoutComponent | public void setLayoutComponent(LayoutComponent comp)(Code) | | This method sets the LayoutComponent associated
with this PropertySheetAdaptor .
|
setParentUIComponent | public void setParentUIComponent(UIComponent comp)(Code) | | This method sets the UIComponent associated with this
PropertySheetAdaptor .
|
|
|