|
|||||||||
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.esri.adf.web.faces.component.UIToolbar
com.esri.adf.web.faces.component.ToolbarControl
public class ToolbarControl
The Toolbar control displays the tool bar items that are associated with it. It is also responsible for rendering its child control. For example, the child control can be Tool, Command, SelectOne, or Separator. The orientation of the Toolbar control can be changed. Possible values for the orientation are VERTICAL or HORIZONTAL. By default the orientation is HORIZONTAL.
Field Summary | |
---|---|
static String |
BOTTOM_TEXT_POSITION
The text is displayed at the bottom of the image if the tool bar style is IMAGEANDTEXT. |
static String |
DEFAULT_XSL_FILE_NAME
The name of the XSL file used to render this control by default. |
static String |
IMAGE_TOOLBAR_STYLE
Only Image is displayed if the toolbar style is IMAGEONLY. |
static String |
IMAGEANDTEXT_TOOLBAR_STYLE
Both image and text are displayed if the toolbar style is IMAGEANDTEXT. |
static String |
LEFT_TEXT_POSITION
The text is displayed to the left of the image if the tool bar style is IMAGEANDTEXT. |
static String |
ORIENTATION_HORIZONTAL
The default orientation of the toolbar control. |
static String |
ORIENTATION_VERTICAL
The vertical orientation of the toolbar control. |
static String |
RIGHT_TEXT_POSITION
The text is displayed to the right of the image if the tool bar style is IMAGEANDTEXT. |
static String |
TEXT_TOOLBAR_STYLE
Only text is displayed if the toolbar style is TEXTONLY. |
static String |
TOP_TEXT_POSITION
The text is displayed at the top of the image if the tool bar style is IMAGEANDTEXT. |
Fields inherited from class com.esri.adf.web.faces.component.UIToolbar |
---|
COMPONENT_FAMILY, COMPONENT_TYPE |
Fields inherited from class javax.faces.component.UIComponent |
---|
bindings |
Constructor Summary | |
---|---|
ToolbarControl()
|
Method Summary | |
---|---|
String |
getDefaultStyle()
Returns the default style for the child control. |
String |
getDisabledStyle()
Returns the disabled style for the child control. |
String |
getHoverStyle()
Returns the hover style for the child control. |
String |
getOrientation()
Returns the orientation of the control. |
protected javax.faces.render.Renderer |
getRenderer(javax.faces.context.FacesContext context)
Returns a design-time renderer if the component is used in an IDE. |
boolean |
getRendersChildren()
Returns a flag indicating whether or not this component is responsible for rendering its child components. |
String |
getSelectedStyle()
Returns the selected style for the child control. |
String |
getStyle()
Returns the style attributes of toolbar control. |
String |
getStyleClass()
Returns the file name where the CSS style attributes are defined. |
String |
getTextPosition()
Returns the text position for this control. |
String |
getToolbarStyle()
Returns the toolbar style for this control. |
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 |
setDefaultStyle(String defaultStyle)
Sets the default style for the child control. |
void |
setDisabledStyle(String disabledStyle)
Sets the disabled style for the child control. |
void |
setHoverStyle(String hoverStyle)
Sets the hover style for the child control. |
void |
setOrientation(String orientation)
Sets the orientation of the control. |
void |
setSelectedStyle(String selectedStyle)
Sets the selected style for the child control. |
void |
setStyle(String style)
Sets the default style for the toolbar control. |
void |
setStyleClass(String styleClass)
Sets the CSS class name where the CSS style attributes are defined. |
void |
setTextPosition(String textPosition)
Sets the text position for this control. |
void |
setToolbarStyle(String toolbarStyle)
Sets the toolbar style for this control. |
Methods inherited from class com.esri.adf.web.faces.component.UIToolbar |
---|
getActiveTool, getFamily, getMapId, getXslFile, getXslUrl, isInit, setActiveTool, setInit, setMapId, setXslFile, setXslUrl |
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, 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 String DEFAULT_XSL_FILE_NAME
public static final String ORIENTATION_HORIZONTAL
public static final String ORIENTATION_VERTICAL
public static final String TOP_TEXT_POSITION
public static final String LEFT_TEXT_POSITION
public static final String BOTTOM_TEXT_POSITION
public static final String RIGHT_TEXT_POSITION
public static final String IMAGEANDTEXT_TOOLBAR_STYLE
public static final String TEXT_TOOLBAR_STYLE
public static final String IMAGE_TOOLBAR_STYLE
Constructor Detail |
---|
public ToolbarControl()
Method Detail |
---|
public boolean getRendersChildren()
getRendersChildren
in class javax.faces.component.UIComponentBase
protected javax.faces.render.Renderer getRenderer(javax.faces.context.FacesContext context)
getRenderer
in class javax.faces.component.UIComponentBase
context
- the FacesContext
Renderer
- the renderer objectpublic String getStyle()
String
- the style attributespublic void setStyle(String style)
style
- the default style for the toolbar controlpublic String getStyleClass()
String
- the CSS classpublic void setStyleClass(String styleClass)
styleClass
- the CSS classpublic String getOrientation()
String
- the orientation of the controlpublic void setOrientation(String orientation)
orientation
- the orientation of the controlpublic String getDefaultStyle()
String
- the default style stringpublic void setDefaultStyle(String defaultStyle)
defaultStyle
- the default style valuepublic String getHoverStyle()
String
- the hover stylepublic void setHoverStyle(String hoverStyle)
hoverStyle
- the hover style valuepublic String getDisabledStyle()
String
- the disabled stylepublic void setDisabledStyle(String disabledStyle)
disabledStyle
- the disabled style valuepublic String getSelectedStyle()
String
- the selected stylepublic void setSelectedStyle(String selectedStyle)
selectedStyle
- the selected style valuepublic String getToolbarStyle()
String
- the toolbar stylepublic void setToolbarStyle(String toolbarStyle)
toolbarStyle
- the toolbar stylepublic String getTextPosition()
String
- the text position for the toolbar controlpublic void setTextPosition(String textPosition)
textPosition
- the text position for the toolbar controlpublic Object saveState(javax.faces.context.FacesContext facesContext)
saveState
in interface javax.faces.component.StateHolder
saveState
in class UIToolbar
facesContext
- the associated FacesContext
Object
- the object to be savedpublic void restoreState(javax.faces.context.FacesContext facesContext, Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class UIToolbar
facesContext
- the associated FacesContext
state
- the object to restore the state of the control from
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |