com.cc.framework.ui.model
Interface MenuDesignModel

All Superinterfaces:
AccessControlled, ActionBehavior, AjaxSupport, ClientHandler, ControlDesignModel, DesignModel
All Known Implementing Classes:
MenuDesignModelImp

public interface MenuDesignModel
extends ControlDesignModel

DesignModel for the MenuControl

Since:
1.0
Version:
$Revision: 1.11 $
Author:
Gernot Schulz

Method Summary
 MenuDesignModel addItem(MenuItem item)
          Adds an Item to the Menu
 java.lang.String getAction()
          Returns the Action
 MenuItem[] getContent()
          Returns an Array with the MenuItems
 java.lang.String getHeight()
          Returns the Height
 ImageMap getImageMap()
          Returns the ImageMap used by the Menu
 java.lang.String getMenuId()
          Returns the Id
 MenuType getType()
          Returns the MenuType
 java.lang.String getWidth()
          Returns the Width
 MenuDesignModel removeItem(MenuItem item)
          Removes a MenuItem
 void setAction(java.lang.String action)
          Sets the Action
 void setHeight(java.lang.String height)
          Sets the Height of the Menu
 void setImageMap(ImageMap map)
          Assigns an ImageMap to the Menu
 void setMenuId(java.lang.String menuid)
          Sets the Menu Id
 void setType(MenuType type)
          Sets the MenuType
 void setWidth(java.lang.String width)
          Sets the Width of the Menu
 int size()
          Returns the Number of MenuItems
 
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
 

Method Detail

setType

public void setType(MenuType type)
Sets the MenuType

Parameters:
type - MenuType

setMenuId

public void setMenuId(java.lang.String menuid)
Sets the Menu Id

Parameters:
menuid - Id

setAction

public void setAction(java.lang.String action)
Sets the Action

Specified by:
setAction in interface ControlDesignModel
Parameters:
action - Action

setWidth

public void setWidth(java.lang.String width)
Sets the Width of the Menu

Specified by:
setWidth in interface ControlDesignModel
Parameters:
width - Width

setHeight

public void setHeight(java.lang.String height)
Sets the Height of the Menu

Specified by:
setHeight in interface ControlDesignModel
Parameters:
height - Height

setImageMap

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

Parameters:
map - ImageMap

getType

public MenuType getType()
Returns the MenuType

Returns:
MenuType

getMenuId

public java.lang.String getMenuId()
Returns the Id

Returns:
String

getAction

public java.lang.String getAction()
Returns the Action

Specified by:
getAction in interface ControlDesignModel
Returns:
String

getWidth

public java.lang.String getWidth()
Returns the Width

Specified by:
getWidth in interface ControlDesignModel
Returns:
String

getHeight

public java.lang.String getHeight()
Returns the Height

Specified by:
getHeight in interface ControlDesignModel
Returns:
String

getImageMap

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

Returns:
ImageMap

addItem

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

Parameters:
item - MenuItemDesignModel
Returns:
MenuDesignModel

removeItem

public MenuDesignModel 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.