Class SplitButton
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- javax.faces.component.UICommand
-
- javax.faces.component.html.HtmlCommandButton
-
- org.primefaces.component.splitbutton.SplitButtonBase
-
- org.primefaces.component.splitbutton.SplitButton
-
- All Implemented Interfaces:
EventListener
,javax.faces.component.ActionSource
,javax.faces.component.ActionSource2
,javax.faces.component.behavior.ClientBehaviorHolder
,javax.faces.component.PartialStateHolder
,javax.faces.component.StateHolder
,javax.faces.component.TransientStateHolder
,javax.faces.event.ComponentSystemEventListener
,javax.faces.event.FacesListener
,javax.faces.event.SystemEventListenerHolder
,AjaxSource
,Confirmable
,MenuItemAware
,Widget
public class SplitButton extends SplitButtonBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.primefaces.component.splitbutton.SplitButtonBase
SplitButtonBase.PropertyKeys
-
-
Field Summary
Fields Modifier and Type Field Description static String
BUTTON_ICON_ONLY_BUTTON_CLASS
static String
BUTTON_TEXT_ICON_LEFT_BUTTON_CLASS
static String
BUTTON_TEXT_ICON_RIGHT_BUTTON_CLASS
static String
BUTTON_TEXT_ONLY_BUTTON_CLASS
static String
COMPONENT_TYPE
static String
LIST_WRAPPER_CLASS
static String
MENU_ICON_BUTTON_CLASS
static String
SPLITBUTTON_CONTAINER_CLASS
static String
STYLE_CLASS
-
Fields inherited from class org.primefaces.component.splitbutton.SplitButtonBase
COMPONENT_FAMILY, DEFAULT_RENDERER
-
Fields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
-
Fields inherited from interface org.primefaces.component.api.MenuItemAware
PARAMS_ACTION_EVENT, PARAMS_EMPTY, PARAMS_MENU_ACTION_EVENT
-
Fields inherited from interface org.primefaces.component.api.Widget
ATTR_WIDGET_VAR_PATTERN, CALLBACK_POST_CONSTRUCT, CALLBACK_POST_REFRESH, CALLBACK_PRE_DESTROY
-
-
Constructor Summary
Constructors Constructor Description SplitButton()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
broadcast(javax.faces.event.FacesEvent event)
String
getConfirmationScript()
String
getDefaultEventName()
List<MenuElement>
getElements()
int
getElementsCount()
boolean
isAjaxified()
boolean
isPartialSubmitSet()
boolean
isResetValuesSet()
void
processDecodes(javax.faces.context.FacesContext context)
boolean
requiresConfirmation()
String
resolveStyleClass()
void
setConfirmationScript(String confirmationScript)
-
Methods inherited from class org.primefaces.component.splitbutton.SplitButtonBase
getAppendTo, getDelay, getFamily, getFilterFunction, getFilterMatchMode, getFilterPlaceholder, getForm, getIcon, getIconPos, getMenuStyleClass, getModel, getOncomplete, getOnerror, getOnstart, getOnsuccess, getPartialSubmitFilter, getProcess, getTimeout, getUpdate, getWidgetVar, isAjax, isAsync, isFilter, isGlobal, isIgnoreAutoUpdate, isIgnoreComponentNotFound, isInline, isPartialSubmit, isResetValues, setAjax, setAppendTo, setAsync, setDelay, setFilter, setFilterFunction, setFilterMatchMode, setFilterPlaceholder, setForm, setGlobal, setIcon, setIconPos, setIgnoreAutoUpdate, setIgnoreComponentNotFound, setInline, setMenuStyleClass, setModel, setOncomplete, setOnerror, setOnstart, setOnsuccess, setPartialSubmit, setPartialSubmitFilter, setProcess, setResetValues, setTimeout, setUpdate, setWidgetVar
-
Methods inherited from class javax.faces.component.html.HtmlCommandButton
getAccesskey, getAlt, getDir, getEventNames, getImage, getLabel, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getRole, getStyle, getStyleClass, getTabindex, getTitle, getType, isDisabled, isReadonly, setAccesskey, setAlt, setDir, setDisabled, setImage, setLabel, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setRole, setStyle, setStyleClass, setTabindex, setTitle, setType
-
Methods inherited from class javax.faces.component.UICommand
addActionListener, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue
-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
-
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors
-
Methods inherited from interface org.primefaces.component.api.MenuItemAware
broadcastMenuActionEvent
-
Methods inherited from interface org.primefaces.component.api.Widget
resolveWidgetVar, resolveWidgetVar
-
-
-
-
Field Detail
-
COMPONENT_TYPE
public static final String COMPONENT_TYPE
- See Also:
- Constant Field Values
-
STYLE_CLASS
public static final String STYLE_CLASS
- See Also:
- Constant Field Values
-
BUTTON_TEXT_ICON_LEFT_BUTTON_CLASS
public static final String BUTTON_TEXT_ICON_LEFT_BUTTON_CLASS
- See Also:
- Constant Field Values
-
BUTTON_TEXT_ICON_RIGHT_BUTTON_CLASS
public static final String BUTTON_TEXT_ICON_RIGHT_BUTTON_CLASS
- See Also:
- Constant Field Values
-
MENU_ICON_BUTTON_CLASS
public static final String MENU_ICON_BUTTON_CLASS
- See Also:
- Constant Field Values
-
BUTTON_TEXT_ONLY_BUTTON_CLASS
public static final String BUTTON_TEXT_ONLY_BUTTON_CLASS
- See Also:
- Constant Field Values
-
BUTTON_ICON_ONLY_BUTTON_CLASS
public static final String BUTTON_ICON_ONLY_BUTTON_CLASS
- See Also:
- Constant Field Values
-
SPLITBUTTON_CONTAINER_CLASS
public static final String SPLITBUTTON_CONTAINER_CLASS
- See Also:
- Constant Field Values
-
LIST_WRAPPER_CLASS
public static final String LIST_WRAPPER_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
resolveStyleClass
public String resolveStyleClass()
-
processDecodes
public void processDecodes(javax.faces.context.FacesContext context)
- Overrides:
processDecodes
in classjavax.faces.component.UIComponentBase
-
isPartialSubmitSet
public boolean isPartialSubmitSet()
-
isResetValuesSet
public boolean isResetValuesSet()
-
isAjaxified
public boolean isAjaxified()
-
getElements
public List<MenuElement> getElements()
-
getElementsCount
public int getElementsCount()
-
broadcast
public void broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException
- Overrides:
broadcast
in classjavax.faces.component.UICommand
- Throws:
javax.faces.event.AbortProcessingException
-
requiresConfirmation
public boolean requiresConfirmation()
-
getConfirmationScript
public String getConfirmationScript()
-
setConfirmationScript
public void setConfirmationScript(String confirmationScript)
-
getDefaultEventName
public String getDefaultEventName()
- Specified by:
getDefaultEventName
in interfacejavax.faces.component.behavior.ClientBehaviorHolder
- Overrides:
getDefaultEventName
in classjavax.faces.component.html.HtmlCommandButton
-
-