org.rhq.core.gui.configuration
Class AbstractConfigurationComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.rhq.core.gui.configuration.AbstractConfigurationComponent
All Implemented Interfaces:
javax.faces.component.StateHolder, FacesComponentIdFactory
Direct Known Subclasses:
ConfigUIComponent, ConfigurationSetComponent

public abstract class AbstractConfigurationComponent
extends javax.faces.component.UIComponentBase
implements FacesComponentIdFactory

An abstract base class for the ConfigUIComponent and the ConfigurationSetComponent JSF component classes.

Author:
Ian Springer

Field Summary
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface org.rhq.core.gui.util.FacesComponentIdFactory
UNIQUE_ID_PREFIX
 
Constructor Summary
AbstractConfigurationComponent()
           
 
Method Summary
 String createUniqueId()
          Creates a unique id that can be assigned to a new JSF UIComponent.
abstract  org.rhq.core.domain.configuration.Configuration getConfiguration()
           
abstract  org.rhq.core.domain.configuration.definition.ConfigurationDefinition getConfigurationDefinition()
           
abstract  String getConfigurationDefinitionExpressionString()
           
abstract  String getConfigurationExpressionString()
           
 String getFamily()
           
 Integer getListIndex()
           
 String getListName()
           
 String getNullConfigurationDefinitionMessage()
           
 String getNullConfigurationMessage()
           
 String getNullConfigurationStyle()
           
abstract  TemplateEngine getTemplateEngine()
           
 boolean isFullyEditable()
           
 boolean isGroup()
           
 boolean isPrevalidate()
           
 boolean isReadOnly()
           
 void restoreState(javax.faces.context.FacesContext facesContext, Object stateValues)
           
 Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setFullyEditable(boolean fullyEditable)
           
 void setGroup(boolean isGroup)
           
 void setListIndex(Integer listIndex)
           
 void setListName(String listName)
           
 void setNullConfigurationDefinitionMessage(String nullConfigurationDefinitionMessage)
           
 void setNullConfigurationMessage(String nullConfigurationMessage)
           
 void setNullConfigurationStyle(String nullConfigurationStyle)
           
 void setPrevalidate(boolean prevalidate)
           
 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
 

Constructor Detail

AbstractConfigurationComponent

public AbstractConfigurationComponent()
Method Detail

getFamily

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

getConfigurationDefinition

public abstract org.rhq.core.domain.configuration.definition.ConfigurationDefinition getConfigurationDefinition()

getConfiguration

public abstract org.rhq.core.domain.configuration.Configuration getConfiguration()

getConfigurationDefinitionExpressionString

public abstract String getConfigurationDefinitionExpressionString()

getConfigurationExpressionString

public abstract String getConfigurationExpressionString()

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

isReadOnly

public boolean isReadOnly()

setReadOnly

public void setReadOnly(boolean readOnly)

isFullyEditable

public boolean isFullyEditable()

setFullyEditable

public void setFullyEditable(boolean fullyEditable)

getListName

public String getListName()

setListName

public void setListName(String listName)

getListIndex

public Integer getListIndex()

setListIndex

public void setListIndex(Integer listIndex)

getNullConfigurationStyle

public String getNullConfigurationStyle()

setNullConfigurationStyle

public void setNullConfigurationStyle(String nullConfigurationStyle)

getNullConfigurationDefinitionMessage

public String getNullConfigurationDefinitionMessage()

setNullConfigurationDefinitionMessage

public void setNullConfigurationDefinitionMessage(String nullConfigurationDefinitionMessage)

getNullConfigurationMessage

public String getNullConfigurationMessage()

setNullConfigurationMessage

public void setNullConfigurationMessage(String nullConfigurationMessage)

isPrevalidate

public boolean isPrevalidate()

setPrevalidate

public void setPrevalidate(boolean prevalidate)

isGroup

public boolean isGroup()

setGroup

public void setGroup(boolean isGroup)

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

getTemplateEngine

public abstract TemplateEngine getTemplateEngine()


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