com.cc.framework.ui.model.imp
Class MenuButtonDesignModelImp

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.ClientHandlerImp
      extended bycom.cc.framework.ui.model.imp.ControlDesignModelImp
          extended bycom.cc.framework.ui.model.imp.ButtonDesignModelImp
              extended bycom.cc.framework.ui.model.imp.MenuButtonDesignModelImp
All Implemented Interfaces:
AccessControlled, ActionBehavior, AjaxSupport, ButtonDesignModel, ClientHandler, ControlDesignModel, DesignModel, MenuButtonDesignModel, java.io.Serializable, WebResourceAccess

public class MenuButtonDesignModelImp
extends ButtonDesignModelImp
implements MenuButtonDesignModel

MenuButtonDesignModel implementation

Version:
$Revision: 1.2 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  ImageMap imageMap
          The image map that will be used to render the images in front of the menu options
private  java.util.ArrayList items
          Buffer with the sub menu items
private  java.lang.String popupid
          The id of the popup menu
private static long serialVersionUID
          Serial Version UID
 
Fields inherited from class com.cc.framework.ui.model.imp.ButtonDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
MenuButtonDesignModelImp()
          Constructor
 
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 class com.cc.framework.ui.model.imp.ButtonDesignModelImp
filter, getBase, getButtonStyle, getButtonType, getSrc, getTarget, getText, setBase, setButtonStyle, setButtonType, setFilter, setSrc, setTarget, setText
 
Methods inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp
addDesignRule, enableAjax, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isAjaxEnabled, 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, show
 
Methods inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
evaluate, getHandler, getHandlers, setHandler
 
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.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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

popupid

private java.lang.String popupid
The id of the popup menu


imageMap

private ImageMap imageMap
The image map that will be used to render the images in front of the menu options


items

private java.util.ArrayList items
Buffer with the sub menu items

Constructor Detail

MenuButtonDesignModelImp

public MenuButtonDesignModelImp()
Constructor

Method Detail

setPopupId

public void setPopupId(java.lang.String id)
Description copied from interface: MenuButtonDesignModel
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.

Specified by:
setPopupId in interface MenuButtonDesignModel
Parameters:
id - menu id
See Also:
MenuButtonDesignModel.setPopupId(java.lang.String)

getPopupId

public java.lang.String getPopupId()
Specified by:
getPopupId in interface MenuButtonDesignModel
Returns:
the id of the popup menu
See Also:
MenuButtonDesignModel.getPopupId()

addItem

public MenuButtonDesignModel addItem(MenuItem item)
Description copied from interface: MenuButtonDesignModel
Adds an Item to the Menu

Specified by:
addItem in interface MenuButtonDesignModel
Parameters:
item - MenuItemDesignModel
Returns:
MenuDesignModel
See Also:
MenuButtonDesignModel.addItem(com.cc.framework.ui.model.MenuItem)

getContent

public MenuItem[] getContent()
Description copied from interface: MenuButtonDesignModel
Returns an Array with the MenuItems

Specified by:
getContent in interface MenuButtonDesignModel
Returns:
MenuItemDesignModel
See Also:
MenuButtonDesignModel.getContent()

getImageMap

public ImageMap getImageMap()
Description copied from interface: MenuButtonDesignModel
Returns the ImageMap used by the Menu

Specified by:
getImageMap in interface MenuButtonDesignModel
Returns:
ImageMap
See Also:
MenuButtonDesignModel.getImageMap()

removeItem

public MenuButtonDesignModel removeItem(MenuItem item)
Description copied from interface: MenuButtonDesignModel
Removes a MenuItem

Specified by:
removeItem in interface MenuButtonDesignModel
Parameters:
item - MenuItemDesignModel
Returns:
MenuDesignModel
See Also:
MenuButtonDesignModel.removeItem(com.cc.framework.ui.model.MenuItem)

setImageMap

public void setImageMap(ImageMap map)
Description copied from interface: MenuButtonDesignModel
Assigns an ImageMap to the Menu

Specified by:
setImageMap in interface MenuButtonDesignModel
Parameters:
map - ImageMap
See Also:
MenuButtonDesignModel.setImageMap(com.cc.framework.ui.ImageMap)

size

public int size()
Description copied from interface: MenuButtonDesignModel
Returns the Number of MenuItems

Specified by:
size in interface MenuButtonDesignModel
Returns:
integer
See Also:
MenuButtonDesignModel.size()


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