org.rhq.core.gui.configuration.propset
Class PropertySetComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.rhq.core.gui.configuration.propset.PropertySetComponent
All Implemented Interfaces:
javax.faces.component.StateHolder, FacesComponentIdFactory

public class PropertySetComponent
extends javax.faces.component.UIComponentBase
implements FacesComponentIdFactory

Author:
Ian Springer

Field Summary
static String COMPONENT_TYPE
           
static String CONFIGURATION_SET_ATTRIBUTE
           
static String PROPERTY_EXPRESSION_STRING_ATTRIBUTE
           
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface org.rhq.core.gui.util.FacesComponentIdFactory
UNIQUE_ID_PREFIX
 
Constructor Summary
PropertySetComponent()
           
 
Method Summary
 String createUniqueId()
          Creates a unique id that can be assigned to a new JSF UIComponent.
 ConfigurationSet getConfigurationSet()
           
 String getFamily()
           
 Integer getListIndex()
           
 org.rhq.core.domain.configuration.PropertySimple getProperty()
           
 org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple getPropertyDefinition()
           
 Boolean getReadOnly()
           
 void restoreState(javax.faces.context.FacesContext facesContext, Object stateValues)
           
 Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setListIndex(Integer listIndex)
           
 void setReadOnly(Boolean readOnly)
           
 
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

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

PROPERTY_EXPRESSION_STRING_ATTRIBUTE

public static final String PROPERTY_EXPRESSION_STRING_ATTRIBUTE
See Also:
Constant Field Values

CONFIGURATION_SET_ATTRIBUTE

public static final String CONFIGURATION_SET_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

PropertySetComponent

public PropertySetComponent()
Method Detail

createUniqueId

public String createUniqueId()
Description copied from interface: FacesComponentIdFactory
Creates a unique id that can be assigned to a new JSF UIComponent. Note, JSF id's can only contain letters, numbers, dashes, or underscores.

For more information on how to create JSF id's, see http://forum.java.sun.com/thread.jspa?threadID=524925.

Specified by:
createUniqueId in interface FacesComponentIdFactory
Returns:
a unique id that can be assigned to a new JSF UIComponent

getFamily

public String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

getPropertyDefinition

@Nullable
public org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple getPropertyDefinition()

getProperty

@Nullable
public org.rhq.core.domain.configuration.PropertySimple getProperty()

getConfigurationSet

@Nullable
public ConfigurationSet getConfigurationSet()

getReadOnly

public Boolean getReadOnly()

setReadOnly

public void setReadOnly(Boolean readOnly)

getListIndex

public Integer getListIndex()

setListIndex

public void setListIndex(Integer listIndex)

saveState

public Object saveState(javax.faces.context.FacesContext facesContext)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIComponentBase

restoreState

public void restoreState(javax.faces.context.FacesContext facesContext,
                         Object stateValues)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.