public class UIModeList extends UICommand
Modifier and Type | Class and Description |
---|---|
static class |
UIModeList.ModeListItemSelectedEvent
Class representing a change in selection for a ModeList component.
|
COMPONENT_FAMILY, COMPONENT_TYPE
Constructor and Description |
---|
UIModeList()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
broadcast(FacesEvent event) |
String |
getFamily() |
int |
getIconColumnWidth()
Get the icon column width
|
String |
getLabel() |
String |
getMenuImage() |
boolean |
isDisabled()
Returns the disabled flag
|
boolean |
isHorizontal()
Get the horizontal rendering flag
|
boolean |
isMenu()
Returns the menu rendering flag
|
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setDisabled(boolean disabled)
Sets whether the mode list is disabled
|
void |
setHorizontal(boolean horizontal)
Set true for horizontal rendering, false otherwise
|
void |
setIconColumnWidth(int iconColumnWidth)
Set the icon column width
|
void |
setLabel(String label) |
void |
setMenu(boolean menu)
Sets whether the mode list is a menu
|
void |
setMenuImage(String menuImage) |
addActionListener, getAction, getActionListener, getActionListeners, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionListener, setImmediate, setValue
addFacesListener, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
public String getFamily()
getFamily
in class UICommand
UIComponent.getFamily()
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UICommand
StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UICommand
StateHolder.saveState(javax.faces.context.FacesContext)
public void broadcast(FacesEvent event) throws AbortProcessingException
broadcast
in class UICommand
AbortProcessingException
UICommand.broadcast(javax.faces.event.FacesEvent)
public boolean isHorizontal()
public void setHorizontal(boolean horizontal)
horizontal
- the horizontalpublic int getIconColumnWidth()
public void setIconColumnWidth(int iconColumnWidth)
iconColumnWidth
- the icon column widthpublic boolean isDisabled()
public void setDisabled(boolean disabled)
disabled
- the disabled flagpublic boolean isMenu()
public void setMenu(boolean menu)
menu
- the menu flagpublic String getLabel()
public void setLabel(String label)
label
- The label to set.public String getMenuImage()
public void setMenuImage(String menuImage)
menuImage
- The menu image to set.Copyright © 2005–2017 Alfresco Software. All rights reserved.