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

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.MenuDesignModelImp
All Implemented Interfaces:
AccessControlled, ActionBehavior, AjaxSupport, ClientHandler, ControlDesignModel, DesignModel, MenuDesignModel, java.io.Serializable

public class MenuDesignModelImp
extends ControlDesignModelImp
implements MenuDesignModel

Designmodel for the MenuControl

Since:
1.0
Version:
$Revision: 1.16 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  ImageMap imagemap
          An ImageMap with images if the menu items are made of images.
private  java.util.ArrayList items
          Buffer with the sub menu items
private  java.lang.String menuid
          The Menu Id
private static long serialVersionUID
          Serial Version UID
private  MenuType type
          The type of the menu
 
Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
MenuDesignModelImp()
          Constructor for MenuDesignModelImp
 
Method Summary
 MenuDesignModel 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 getMenuId()
          Returns the Id
 MenuType getType()
          Returns the MenuType
 MenuDesignModel removeItem(MenuItem item)
          Removes a MenuItem
 void setImageMap(ImageMap imagemap)
          Assigns an ImageMap to the Menu
 void setMenuId(java.lang.String menuid)
          Sets the Menu Id
 void setType(MenuType type)
          Sets the MenuType
 int size()
          Returns the Number of MenuItems
 
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.MenuDesignModel
getAction, getHeight, getWidth, setAction, setHeight, setWidth
 
Methods inherited from interface com.cc.framework.ui.model.ControlDesignModel
addDesignRule, getBorder, getDesignRules, getHelp, getId, getLocaleName, getName, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, hasShadow, isDisabled, isDynamicDesignModel, isFormElement, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

menuid

private java.lang.String menuid
The Menu Id


items

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


type

private MenuType type
The type of the menu


imagemap

private ImageMap imagemap
An ImageMap with images if the menu items are made of images.

Constructor Detail

MenuDesignModelImp

public MenuDesignModelImp()
Constructor for MenuDesignModelImp

Method Detail

addItem

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

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

removeItem

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

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

getContent

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

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

size

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

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

getType

public MenuType getType()
Description copied from interface: MenuDesignModel
Returns the MenuType

Specified by:
getType in interface MenuDesignModel
Returns:
MenuType
See Also:
MenuDesignModel.getType()

setType

public void setType(MenuType type)
Description copied from interface: MenuDesignModel
Sets the MenuType

Specified by:
setType in interface MenuDesignModel
Parameters:
type - MenuType
See Also:
MenuDesignModel.setType(com.cc.framework.ui.MenuType)

getImageMap

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

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

setImageMap

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

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

getMenuId

public java.lang.String getMenuId()
Description copied from interface: MenuDesignModel
Returns the Id

Specified by:
getMenuId in interface MenuDesignModel
Returns:
String
See Also:
MenuDesignModel.getMenuId()

setMenuId

public void setMenuId(java.lang.String menuid)
Description copied from interface: MenuDesignModel
Sets the Menu Id

Specified by:
setMenuId in interface MenuDesignModel
Parameters:
menuid - Id
See Also:
MenuDesignModel.setMenuId(java.lang.String)


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