com.esri.adf.web.faces.component
Class SeparatorControl

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by com.esri.adf.web.faces.component.SeparatorControl
All Implemented Interfaces:
ToolbarItem, javax.faces.component.StateHolder

public class SeparatorControl
extends javax.faces.component.UIComponentBase
implements ToolbarItem

The Separator control is used to separate toolbar items based on the specified separator image, space, or image and space.


Field Summary
static String COMPONENT_FAMILY
          The standard component family for this component.
static String COMPONENT_TYPE
          The standard component type for this component.
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
SeparatorControl()
          Initializes the Separator Control and sets the renderer type to null.
 
Method Summary
 Element generateXML()
          Generates an XML representation of the control.
 String getFamily()
          Returns the family of this control.
 String getImage()
          Returns the separator image.
protected  javax.faces.render.Renderer getRenderer(javax.faces.context.FacesContext context)
          Returns a design-time renderer if the component is used in an IDE.
 String getStyle()
          Returns the style attributes of the Separator control.
 String getStyleClass()
          Returns the file name where the CSS style attributes are defined.
 boolean isInit()
          Indicates whether the control is initialized.
 void restoreState(javax.faces.context.FacesContext facesContext, Object state)
          Restores the state of the control.
 Object saveState(javax.faces.context.FacesContext facesContext)
          Saves the state of this control.
 void setImage(String image)
          Sets the separator image for this control.
 void setInit(boolean init)
          Sets an indicator whether to initialize the control.
 void setStyle(String style)
          Sets the default style for the Separator control.
 void setStyleClass(String styleClass)
          Sets the CSS class name where the CSS style attributes are defined.
 
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, 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_FAMILY

public static final String COMPONENT_FAMILY
The standard component family for this component.

See Also:
Constant Field Values

COMPONENT_TYPE

public static final String COMPONENT_TYPE
The standard component type for this component.

See Also:
Constant Field Values
Constructor Detail

SeparatorControl

public SeparatorControl()
Initializes the Separator Control and sets the renderer type to null. The renderer type is set to null since the parent Toolbar Control is responsible for rendering this control.

Method Detail

getFamily

public String getFamily()
Returns the family of this control.

Specified by:
getFamily in class javax.faces.component.UIComponent
Returns:
String- the COMPONENT_FAMILY

getRenderer

protected javax.faces.render.Renderer getRenderer(javax.faces.context.FacesContext context)
Returns a design-time renderer if the component is used in an IDE.

Overrides:
getRenderer in class javax.faces.component.UIComponentBase
Parameters:
context - the FacesContext
Returns:
Renderer- the renderer object

isInit

public boolean isInit()
Indicates whether the control is initialized.

Returns:
boolean- if true, the control is initialized

setInit

public void setInit(boolean init)
Sets an indicator whether to initialize the control.

Parameters:
init - if true, initialize the control

getStyle

public String getStyle()
Returns the style attributes of the Separator control.

Returns:
String- the style attributes

setStyle

public void setStyle(String style)
Sets the default style for the Separator control.

Parameters:
style - the default style for the Separator control

getStyleClass

public String getStyleClass()
Returns the file name where the CSS style attributes are defined.

Returns:
String- the CSS class

setStyleClass

public void setStyleClass(String styleClass)
Sets the CSS class name where the CSS style attributes are defined.

Parameters:
styleClass - the CSS class

getImage

public String getImage()
Returns the separator image.

Returns:
String- the separator image

setImage

public void setImage(String image)
Sets the separator image for this control.

Parameters:
image - the separator image for this control

saveState

public Object saveState(javax.faces.context.FacesContext facesContext)
Saves the state of this control.

Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIComponentBase
Parameters:
facesContext - the associated FacesContext
Returns:
Object- the object to be saved

restoreState

public void restoreState(javax.faces.context.FacesContext facesContext,
                         Object state)
Restores the state of the control.

Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase
Parameters:
facesContext - the associated FacesContext
state - the object from which to restore the state of the control

generateXML

public Element generateXML()
Generates an XML representation of the control.

Specified by:
generateXML in interface ToolbarItem
Returns:
Element- the XML element of the control