|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.model.imp.ClientHandlerImp com.cc.framework.ui.model.imp.MenuItemDesignModelImp
Designmodel for a menu item
Field Summary | |
private java.lang.String |
action
The action to process if the user clicks the item |
private java.lang.String |
id
The unique Id of the menu item |
private java.lang.String |
imageRef
Reference for an image in an ImageMap |
private java.util.ArrayList |
items
A buffer for sub menu items |
private java.lang.String |
localeName
Locale Setting |
private java.lang.String |
menuFilter
A filter expression used to hide or show the menu item in different contexts |
private java.lang.String |
menuid
The Menu item id |
private MenuItemDesignModel |
parent
Parent Menu item |
private Permission |
permission
The permission for this menu item |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.String |
shortcut
A shortcut |
private int |
state
The state flags of the menu item |
private java.lang.String |
target
The window target in which the resource requested by this hyperlink will be displayed, for example "blank, self, parent, ..." |
private java.lang.String |
text
The display text |
private java.lang.String |
tooltip
A tool tip |
private java.lang.String |
width
The width of the menu item |
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
|
Constructor Summary | |
MenuItemDesignModelImp()
Constructor |
Method Summary | |
MenuItemDesignModel |
addItem(MenuItemDesignModel item)
Adds a SubMenuItem to the MenuItem |
java.lang.String |
getAction()
Returns the Action |
MenuItemDesignModel[] |
getContent()
Returns a List with all SubMenuItems |
java.lang.String |
getId()
|
java.lang.String |
getImageRef()
Returns the imageRef. |
java.lang.String |
getLocaleName()
Gets the Local Setting for this element |
java.lang.String |
getMenuFilter()
Returns the menu filter. |
java.lang.String |
getMenuId()
Returns the Menu Id |
MenuItemDesignModel |
getParent()
Returns a reference to the parent element |
Permission |
getPermission()
Returns the authorizations required to access an object If the method returns null no access rights is required. |
java.lang.String |
getShortcut()
Returns the Shortcut |
int |
getState()
Returns the Menu State flags ( MenuState ) |
java.lang.String |
getTarget()
Returns the Target |
java.lang.String |
getText()
Returns the Text |
java.lang.String |
getTooltip()
Returns the static tooltip text |
java.lang.String |
getWidth()
Returns the Width |
MenuItemDesignModel |
removeItem(MenuItemDesignModel item)
Removes a SubMenuItem from the List |
void |
setAction(java.lang.String action)
Sets the Action |
void |
setId(java.lang.String id)
|
void |
setImageRef(java.lang.String imageRef)
Sets the imageRef. |
void |
setLocaleName(java.lang.String locale)
Sets the Locale configuration for this element |
void |
setMenuFilter(java.lang.String menuFilter)
Sets the menu filter. |
void |
setMenuId(java.lang.String menuid)
Sets the Menu Id |
void |
setParent(MenuItemDesignModel parent)
Sets the reference to the parent element |
void |
setPermission(Permission permission)
Sets a list with permissions needed to access this object. |
void |
setShortcut(java.lang.String shortcut)
Sets the Shortcut |
void |
setState(int state)
Sets the Menu State |
void |
setTarget(java.lang.String target)
Sets the Target |
void |
setText(java.lang.String text)
sets the Text |
void |
setTooltip(java.lang.String tooltip)
Sets the static tooltip text. |
void |
setWidth(java.lang.String width)
Sets the Width |
boolean |
show(Principal principal)
Checks if the Object has a required permission. |
int |
size()
Returns the Number of SubMenuItems |
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.ClientHandler |
getHandler, getHandlers, setHandler |
Field Detail |
private static final long serialVersionUID
private java.lang.String menuid
private MenuItemDesignModel parent
private java.util.ArrayList items
private int state
private java.lang.String text
private java.lang.String tooltip
private java.lang.String shortcut
private java.lang.String target
private java.lang.String menuFilter
private java.lang.String localeName
private java.lang.String imageRef
private java.lang.String action
private java.lang.String id
private java.lang.String width
private Permission permission
Constructor Detail |
public MenuItemDesignModelImp()
Method Detail |
public void setState(int state)
MenuItemDesignModel
setState
in interface MenuItemDesignModel
state
- the state flags (MenuState
)MenuItemDesignModel.setState(int)
public void setText(java.lang.String text)
MenuItemDesignModel
setText
in interface MenuItemDesignModel
text
- TextMenuItemDesignModel.setText(String)
public void setShortcut(java.lang.String shortcut)
MenuItemDesignModel
setShortcut
in interface MenuItemDesignModel
shortcut
- StringMenuItemDesignModel.setShortcut(String)
public final void setId(java.lang.String id)
id
- The unique Id of the menu itempublic final void setWidth(java.lang.String width)
MenuItemDesignModel
setWidth
in interface MenuItemDesignModel
width
- WidthMenuItemDesignModel.setWidth(java.lang.String)
public final void setAction(java.lang.String action)
MenuItemDesignModel
setAction
in interface MenuItemDesignModel
action
- ActionMenuItemDesignModel.setAction(java.lang.String)
public final java.lang.String getId()
public java.lang.String getAction()
MenuItemDesignModel
getAction
in interface MenuItemDesignModel
MenuItemDesignModel.getAction()
public final java.lang.String getWidth()
MenuItemDesignModel
getWidth
in interface MenuItemDesignModel
MenuItemDesignModel.getWidth()
public int getState()
MenuItemDesignModel
MenuState
)
getState
in interface MenuItemDesignModel
MenuItemDesignModel.getState()
public java.lang.String getText()
MenuItemDesignModel
getText
in interface MenuItemDesignModel
MenuItemDesignModel.getText()
public java.lang.String getShortcut()
MenuItemDesignModel
getShortcut
in interface MenuItemDesignModel
MenuItemDesignModel.getShortcut()
public MenuItemDesignModel getParent()
MenuItemDesignModel
getParent
in interface MenuItemDesignModel
MenuItemDesignModel.getParent()
public void setParent(MenuItemDesignModel parent)
MenuItemDesignModel
setParent
in interface MenuItemDesignModel
parent
- MenuItemDesignModelMenuItemDesignModel.setParent(com.cc.framework.ui.model.MenuItemDesignModel)
public MenuItemDesignModel addItem(MenuItemDesignModel item)
MenuItemDesignModel
addItem
in interface MenuItemDesignModel
item
- MenuItemDesignModel
MenuItemDesignModel.addItem(MenuItemDesignModel)
public MenuItemDesignModel removeItem(MenuItemDesignModel item)
MenuItemDesignModel
removeItem
in interface MenuItemDesignModel
item
- MenuItemDesignModel
MenuItemDesignModel.removeItem(MenuItemDesignModel)
public MenuItemDesignModel[] getContent()
MenuItemDesignModel
getContent
in interface MenuItemDesignModel
MenuItemDesignModel.getContent()
public int size()
MenuItemDesignModel
size
in interface MenuItemDesignModel
MenuItemDesignModel.size()
public void setTarget(java.lang.String target)
MenuItemDesignModel
setTarget
in interface MenuItemDesignModel
target
- TargetMenuItemDesignModel.setTarget(String)
public java.lang.String getTarget()
MenuItemDesignModel
getTarget
in interface MenuItemDesignModel
MenuItemDesignModel.getTarget()
public java.lang.String getMenuFilter()
getMenuFilter
in interface MenuItemDesignModel
public void setMenuFilter(java.lang.String menuFilter)
setMenuFilter
in interface MenuItemDesignModel
menuFilter
- The filter to setpublic java.lang.String getImageRef()
getImageRef
in interface MenuItemDesignModel
public void setImageRef(java.lang.String imageRef)
setImageRef
in interface MenuItemDesignModel
imageRef
- The imageRef to setpublic Permission getPermission()
AccessControlled
null
no access rights is required.
getPermission
in interface AccessControlled
AccessControlled.getPermission()
public void setPermission(Permission permission)
MenuItemDesignModel
setPermission
in interface MenuItemDesignModel
permission
- PermissionMenuItemDesignModel.setPermission(com.cc.framework.security.Permission)
public boolean show(Principal principal)
AccessControlled
show
in interface AccessControlled
principal
- the users principal object
true
if the permission existsAccessControlled.show(Principal)
public java.lang.String getMenuId()
MenuItemDesignModel
getMenuId
in interface MenuItemDesignModel
MenuItemDesignModel.getMenuId()
public void setMenuId(java.lang.String menuid)
MenuItemDesignModel
setMenuId
in interface MenuItemDesignModel
menuid
- menu idMenuItemDesignModel.setMenuId(java.lang.String)
public java.lang.String getTooltip()
MenuItemDesignModel
getTooltip
in interface MenuItemDesignModel
MenuItemDesignModel.getTooltip()
public void setTooltip(java.lang.String tooltip)
MenuItemDesignModel
setTooltip
in interface MenuItemDesignModel
tooltip
- Tooltip textMenuItemDesignModel.setTooltip(java.lang.String)
public java.lang.String getLocaleName()
MenuItemDesignModel
getLocaleName
in interface MenuItemDesignModel
MenuItemDesignModel.getLocaleName()
public void setLocaleName(java.lang.String locale)
MenuItemDesignModel
setLocaleName
in interface MenuItemDesignModel
locale
- Locale Identifier or true|false
MenuItemDesignModel.setLocaleName(java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |