org.apache.myfaces.custom.accordion
Class HtmlAccordionPanel

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIPanel
              extended by javax.faces.component.html.HtmlPanelGroup
                  extended by org.apache.myfaces.component.html.ext.AbstractHtmlPanelGroup
                      extended by org.apache.myfaces.component.html.ext.HtmlPanelGroup
                          extended by org.apache.myfaces.custom.accordion.AbstractHtmlAccordionPanel
                              extended by org.apache.myfaces.custom.accordion.HtmlAccordionPanel
All Implemented Interfaces:
javax.faces.component.StateHolder, org.apache.myfaces.component.DisplayValueOnlyAware, org.apache.myfaces.component.EventAware, org.apache.myfaces.component.ForceIdAware, org.apache.myfaces.component.UniversalProperties, org.apache.myfaces.component.UserRoleAware, org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable

public class HtmlAccordionPanel
extends AbstractHtmlAccordionPanel


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String DEFAULT_RENDERER_TYPE
           
 
Fields inherited from class org.apache.myfaces.custom.accordion.AbstractHtmlAccordionPanel
ACCORDION_LAYOUT, BORDER_COLOR, COLLAPSED_BACK_COLOR, COLLAPSED_FONT_WEIGHT, COLLAPSED_TEXT_COLOR, EXPAND_STATEHOLDER_ID, EXPANDED_BACK_COLOR, EXPANDED_FONT_WEIGHT, EXPANDED_TEXT_COLOR, HOVER_BACK_COLOR, HOVER_TEXT_COLOR, TOGGLING_LAYOUT
 
Fields inherited from class org.apache.myfaces.component.html.ext.AbstractHtmlPanelGroup
BLOCK_LAYOUT, DEFAULT_COLSPAN
 
Fields inherited from interface org.apache.myfaces.component.UserRoleAware
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR
 
Fields inherited from interface org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable
DISPLAY_VALUE_ONLY_ATTR, DISPLAY_VALUE_ONLY_STYLE_ATTR, DISPLAY_VALUE_ONLY_STYLE_CLASS_ATTR
 
Constructor Summary
HtmlAccordionPanel()
           
 
Method Summary
 java.lang.String getBorderColor()
          Defines the color of the border.
 java.lang.String getCollapsedBackColor()
          Defines the background color for collapsed state.
 java.lang.String getCollapsedFontWeight()
          Defines the font weight for collapsed state.
 java.lang.String getCollapsedTextColor()
          Defines the text color for collapsed state.
 java.lang.String getExpandedBackColor()
          Defines the background color for expanded state.
 java.lang.String getExpandedFontWeight()
          Defines the font weight for expanded state.
 java.lang.String getExpandedTextColor()
          Defines the text color for expanded state.
 java.lang.String getFamily()
           
 java.lang.String getHoverBackColor()
          Defines the background color on hover.
 java.lang.String getHoverTextColor()
          Defines the text color on hover.
 java.lang.String getLayout()
          Defines the layout of this accordionPanel.
 void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setBorderColor(java.lang.String borderColor)
           
 void setCollapsedBackColor(java.lang.String collapsedBackColor)
           
 void setCollapsedFontWeight(java.lang.String collapsedFontWeight)
           
 void setCollapsedTextColor(java.lang.String collapsedTextColor)
           
 void setExpandedBackColor(java.lang.String expandedBackColor)
           
 void setExpandedFontWeight(java.lang.String expandedFontWeight)
           
 void setExpandedTextColor(java.lang.String expandedTextColor)
           
 void setHoverBackColor(java.lang.String hoverBackColor)
           
 void setHoverTextColor(java.lang.String hoverTextColor)
           
 void setLayout(java.lang.String layout)
           
 
Methods inherited from class org.apache.myfaces.custom.accordion.AbstractHtmlAccordionPanel
getChildExpanded, setChildExpanded
 
Methods inherited from class org.apache.myfaces.component.html.ext.HtmlPanelGroup
getColspan, getDir, getDisplayValueOnly, getDisplayValueOnlyStyle, getDisplayValueOnlyStyleClass, getEnabledOnUserRole, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getTitle, getVisibleOnUserRole, isForceId, isForceIdIndex, setColspan, setDir, setDisplayValueOnly, setDisplayValueOnlyStyle, setDisplayValueOnlyStyleClass, setEnabledOnUserRole, setForceId, setForceIdIndex, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setTitle, setVisibleOnUserRole
 
Methods inherited from class org.apache.myfaces.component.html.ext.AbstractHtmlPanelGroup
getClientId, isDisplayValueOnly, isRendered, isSetDisplayValueOnly, setDisplayValueOnly
 
Methods inherited from class javax.faces.component.html.HtmlPanelGroup
getStyle, getStyleClass, setStyle, setStyleClass
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
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 java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

DEFAULT_RENDERER_TYPE

public static final java.lang.String DEFAULT_RENDERER_TYPE
See Also:
Constant Field Values
Constructor Detail

HtmlAccordionPanel

public HtmlAccordionPanel()
Method Detail

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class org.apache.myfaces.component.html.ext.HtmlPanelGroup

getLayout

public java.lang.String getLayout()
Description copied from class: AbstractHtmlAccordionPanel
Defines the layout of this accordionPanel. If you set this to 'accordion', opening a panel will close all other panels. If you set this to 'toggling', opening a panel doesn't affect the state of the other panels. You can close a panel by clicking on the header of this panel a second time.

Specified by:
getLayout in class AbstractHtmlAccordionPanel

setLayout

public void setLayout(java.lang.String layout)
Overrides:
setLayout in class org.apache.myfaces.component.html.ext.HtmlPanelGroup

getExpandedBackColor

public java.lang.String getExpandedBackColor()
Description copied from class: AbstractHtmlAccordionPanel
Defines the background color for expanded state.

Specified by:
getExpandedBackColor in class AbstractHtmlAccordionPanel

setExpandedBackColor

public void setExpandedBackColor(java.lang.String expandedBackColor)

getExpandedTextColor

public java.lang.String getExpandedTextColor()
Description copied from class: AbstractHtmlAccordionPanel
Defines the text color for expanded state.

Specified by:
getExpandedTextColor in class AbstractHtmlAccordionPanel

setExpandedTextColor

public void setExpandedTextColor(java.lang.String expandedTextColor)

getExpandedFontWeight

public java.lang.String getExpandedFontWeight()
Description copied from class: AbstractHtmlAccordionPanel
Defines the font weight for expanded state.

Specified by:
getExpandedFontWeight in class AbstractHtmlAccordionPanel

setExpandedFontWeight

public void setExpandedFontWeight(java.lang.String expandedFontWeight)

getCollapsedBackColor

public java.lang.String getCollapsedBackColor()
Description copied from class: AbstractHtmlAccordionPanel
Defines the background color for collapsed state.

Specified by:
getCollapsedBackColor in class AbstractHtmlAccordionPanel

setCollapsedBackColor

public void setCollapsedBackColor(java.lang.String collapsedBackColor)

getCollapsedTextColor

public java.lang.String getCollapsedTextColor()
Description copied from class: AbstractHtmlAccordionPanel
Defines the text color for collapsed state.

Specified by:
getCollapsedTextColor in class AbstractHtmlAccordionPanel

setCollapsedTextColor

public void setCollapsedTextColor(java.lang.String collapsedTextColor)

getCollapsedFontWeight

public java.lang.String getCollapsedFontWeight()
Description copied from class: AbstractHtmlAccordionPanel
Defines the font weight for collapsed state.

Specified by:
getCollapsedFontWeight in class AbstractHtmlAccordionPanel

setCollapsedFontWeight

public void setCollapsedFontWeight(java.lang.String collapsedFontWeight)

getHoverBackColor

public java.lang.String getHoverBackColor()
Description copied from class: AbstractHtmlAccordionPanel
Defines the background color on hover.

Specified by:
getHoverBackColor in class AbstractHtmlAccordionPanel

setHoverBackColor

public void setHoverBackColor(java.lang.String hoverBackColor)

getHoverTextColor

public java.lang.String getHoverTextColor()
Description copied from class: AbstractHtmlAccordionPanel
Defines the text color on hover.

Specified by:
getHoverTextColor in class AbstractHtmlAccordionPanel

setHoverTextColor

public void setHoverTextColor(java.lang.String hoverTextColor)

getBorderColor

public java.lang.String getBorderColor()
Description copied from class: AbstractHtmlAccordionPanel
Defines the color of the border.

Specified by:
getBorderColor in class AbstractHtmlAccordionPanel

setBorderColor

public void setBorderColor(java.lang.String borderColor)

saveState

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

restoreState

public void restoreState(javax.faces.context.FacesContext facesContext,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class AbstractHtmlAccordionPanel


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.