com.cc.framework.ui.model
Interface MenuButtonDesignModel

All Superinterfaces:
AccessControlled, ActionBehavior, AjaxSupport, ButtonDesignModel, ClientHandler, ControlDesignModel, DesignModel, WebResourceAccess
All Known Implementing Classes:
MenuButtonDesignModelImp

public interface MenuButtonDesignModel
extends ButtonDesignModel

Design model of the Menu Button Control

Version:
$Revision: 1.2 $
Author:
Harald Schulz

Method Summary
 MenuButtonDesignModel addItem(MenuItem item)
          Adds an Item to the Menu
 MenuItem[] getContent()
          Returns an Array with the MenuItems
 ImageMap getImageMap()
          Returns the ImageMap used by the Menu
 java.lang.String getPopupId()
           
 MenuButtonDesignModel removeItem(MenuItem item)
          Removes a MenuItem
 void setImageMap(ImageMap map)
          Assigns an ImageMap to the Menu
 void setPopupId(java.lang.String id)
          Assigns the id of the buttons popup menu.
 int size()
          Returns the Number of MenuItems
 
Methods inherited from interface com.cc.framework.ui.model.ButtonDesignModel
filter, getButtonStyle, getButtonType, getSrc, getTarget, getText, setButtonStyle, setButtonType, setFilter, setSrc, setTarget, setText
 
Methods inherited from interface com.cc.framework.ui.model.ControlDesignModel
addDesignRule, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction, setWidth
 
Methods inherited from interface com.cc.framework.ui.model.ClientHandler
getHandler, getHandlers, setHandler
 
Methods inherited from interface com.cc.framework.ui.model.AccessControlled
getPermission, show
 
Methods inherited from interface com.cc.framework.ui.model.ActionBehavior
isAjaxEnabled
 
Methods inherited from interface com.cc.framework.ui.model.AjaxSupport
enableAjax, isAjaxEnabled
 
Methods inherited from interface com.cc.framework.ui.WebResourceAccess
getBase, setBase
 

Method Detail

setPopupId

public void setPopupId(java.lang.String id)
Assigns the id of the buttons popup menu. This is only necessary when the menu is to be retrieved dynamically from the server when the user clicks the menu button.

Parameters:
id - menu id

getPopupId

public java.lang.String getPopupId()
Returns:
the id of the popup menu

setImageMap

public void setImageMap(ImageMap map)
Assigns an ImageMap to the Menu

Parameters:
map - ImageMap

getImageMap

public ImageMap getImageMap()
Returns the ImageMap used by the Menu

Returns:
ImageMap

addItem

public MenuButtonDesignModel addItem(MenuItem item)
Adds an Item to the Menu

Parameters:
item - MenuItemDesignModel
Returns:
MenuDesignModel

removeItem

public MenuButtonDesignModel removeItem(MenuItem item)
Removes a MenuItem

Parameters:
item - MenuItemDesignModel
Returns:
MenuDesignModel

getContent

public MenuItem[] getContent()
Returns an Array with the MenuItems

Returns:
MenuItemDesignModel

size

public int size()
Returns the Number of MenuItems

Returns:
integer


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.