|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.control.Control com.cc.framework.ui.control.ButtonControl com.cc.framework.ui.control.MenuButtonControl
Menu Button Control. The Menu Button has an associated popup menu from which the user can select the action the menu button will trigger. The current action is stored in the menu buttons state model
Field Summary | |
private MenuButtonDataModel |
dataModel
DataModel |
private static long |
serialVersionUID
Serial Version UID |
Fields inherited from class com.cc.framework.ui.control.ButtonControl |
|
Fields inherited from class com.cc.framework.ui.control.Control |
log |
Fields inherited from interface com.cc.framework.ui.model.StateModel |
PROP_CONTROL |
Constructor Summary | |
MenuButtonControl()
Constructor |
|
MenuButtonControl(MenuButtonDesignModel designModel)
Constructor |
Method Summary | |
MenuItem[] |
getContent()
Returns the Content |
DataModel |
getDataModel()
Returns the data model of the Control |
ImageMap |
getImageMap()
Returns the ImageMap |
java.lang.String |
getPopupId()
|
void |
onLoadMenu(ControlRequestContext ctx,
java.lang.String menuId)
Loads the specified menu and returns the menu as an XML stream. |
void |
reset()
Resets the actual state of a control to the initial state |
void |
setDataModel(MenuButtonDataModel dataModel)
Sets the controls data model |
Methods inherited from class com.cc.framework.ui.control.ButtonControl |
filter, getBase, getButtonStyle, getButtonType, getDesignModel, getSrc, getStateModel, getTarget, getText, setDesignModel |
Methods inherited from class com.cc.framework.ui.control.Control |
addButton, allowAjaxRendering, execute, execute, execute, execute, execute, execute, execute, getAction, getAjaxId, getButtons, getControlName, getDesignRules, getFrameworkString, getHandler, getHandlers, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getPrincipal, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getUniqueStyleId, getWidth, isAjaxEnabled, isDisabled, isFormElement, markDirty, onHelp, setAjaxAttribute, setHandler, setPrincipal, setValue, show, showButton, synchronizeState, synchronizeState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cc.framework.ui.model.StateModel |
synchronizeState |
Field Detail |
private static final long serialVersionUID
private MenuButtonDataModel dataModel
Constructor Detail |
public MenuButtonControl()
public MenuButtonControl(MenuButtonDesignModel designModel)
designModel
- the Design Model of the controlMethod Detail |
public void reset()
StateModel
reset
in interface StateModel
reset
in class ButtonControl
StateModel.reset()
public DataModel getDataModel()
Control
getDataModel
in class ButtonControl
Control.getDataModel()
public void setDataModel(MenuButtonDataModel dataModel)
dataModel
- Data Modelpublic MenuItem[] getContent()
public ImageMap getImageMap()
public java.lang.String getPopupId()
public void onLoadMenu(ControlRequestContext ctx, java.lang.String menuId) throws java.lang.Exception
ctx
- ControlRequestContextmenuId
- the id of the menu to load
java.lang.Exception
- is thrown when an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |