com.cc.framework.ui.control
Class MenuControl

java.lang.Object
  extended bycom.cc.framework.ui.control.Control
      extended bycom.cc.framework.ui.control.MenuControl
All Implemented Interfaces:
AccessControlled, ActionBehavior, ClientHandler, MenuStateModel, java.io.Serializable, StateModel

public class MenuControl
extends Control
implements MenuStateModel

The MenuControl

Since:
1.0
Version:
$Revision: 1.13 $
Author:
Gernot Schulz
See Also:
Serialized Form

Field Summary
private  MenuDataModel dataModel
          Data model
private  MenuDesignModel designModel
          Design model
private static long serialVersionUID
          Serial Version UID
 
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
MenuControl()
          Constructor
 
Method Summary
 MenuItem[] getContent()
          Returns the Content
 DataModel getDataModel()
          Returns the data model of the Control
 ControlDesignModel getDesignModel()
          Returns the design model of the control
 ImageMap getImageMap()
          Returns the ImageMap
 java.lang.String getMenuId()
          Returns the Id
 StateModel getStateModel()
          Returns the state model of the control
 MenuType getType()
          Returns the Type
 void reset()
          Resets the actual state of a control to the initial state
 void setDataModel(MenuDataModel dataModel)
          Sets the data model
 void setDesignModel(MenuDesignModel designModel)
          Sets the design model
 
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

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

dataModel

private MenuDataModel dataModel
Data model


designModel

private MenuDesignModel designModel
Design model

Constructor Detail

MenuControl

public MenuControl()
Constructor

Method Detail

getDataModel

public DataModel getDataModel()
Description copied from class: Control
Returns the data model of the Control

Specified by:
getDataModel in class Control
Returns:
The data model
See Also:
Control.getDataModel()

setDataModel

public void setDataModel(MenuDataModel dataModel)
Sets the data model

Parameters:
dataModel - MenuDataModel

getDesignModel

public ControlDesignModel getDesignModel()
Description copied from class: Control
Returns the design model of the control

Specified by:
getDesignModel in class Control
Returns:
The ControlDesignModel
See Also:
Control.getDesignModel()

setDesignModel

public void setDesignModel(MenuDesignModel designModel)
Sets the design model

Parameters:
designModel - MenuDesignModel

getStateModel

public StateModel getStateModel()
Description copied from class: Control
Returns the state model of the control

Specified by:
getStateModel in class Control
Returns:
The state model
See Also:
Control.getStateModel()

getType

public MenuType getType()
Returns the Type

Returns:
MenuType

getContent

public MenuItem[] getContent()
Returns the Content

Returns:
MenuItemDesignModel

getMenuId

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

Returns:
String

getImageMap

public ImageMap getImageMap()
Returns the ImageMap

Returns:
ImageMap

reset

public void reset()
Description copied from interface: StateModel
Resets the actual state of a control to the initial state

Specified by:
reset in interface StateModel
See Also:
StateModel.reset()


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