|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.model.imp.ClientHandlerImp
com.cc.framework.ui.model.imp.MenuItemImp
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 OrientationType |
orientation
Specifies the orientation of sub menu items horizontal = from top to bottom vertical = from left to right |
private MenuItem |
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 | |
MenuItemImp()
Constructor |
|
| Method Summary | |
MenuItem |
addItem(MenuItem item)
Adds a SubMenuItem to the MenuItem |
java.lang.String |
getAction()
Returns the Action |
MenuItem[] |
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 |
OrientationType |
getOrientation()
Retrieves the orientation of sub menu items |
MenuItem |
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 |
MenuItem |
removeItem(MenuItem 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 |
setOrientation(OrientationType orientation)
Specifies the orientation of sub menu items: horizontal = from top to bottom vertical = from left to right |
void |
setParent(MenuItem 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 MenuItem 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 OrientationType orientation
private Permission permission
| Constructor Detail |
public MenuItemImp()
| Method Detail |
public void setState(int state)
MenuItem
setState in interface MenuItemstate - the state flags (MenuState)MenuItem.setState(int)public void setText(java.lang.String text)
MenuItem
setText in interface MenuItemtext - TextMenuItem.setText(String)public void setShortcut(java.lang.String shortcut)
MenuItem
setShortcut in interface MenuItemshortcut - StringMenuItem.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)
MenuItem
setWidth in interface MenuItemwidth - WidthMenuItem.setWidth(java.lang.String)public final void setAction(java.lang.String action)
MenuItem
setAction in interface MenuItemaction - ActionMenuItem.setAction(java.lang.String)public final java.lang.String getId()
public java.lang.String getAction()
MenuItem
getAction in interface MenuItemMenuItem.getAction()public final java.lang.String getWidth()
MenuItem
getWidth in interface MenuItemMenuItem.getWidth()public int getState()
MenuItemMenuState)
getState in interface MenuItemMenuItem.getState()public java.lang.String getText()
MenuItem
getText in interface MenuItemMenuItem.getText()public java.lang.String getShortcut()
MenuItem
getShortcut in interface MenuItemMenuItem.getShortcut()public MenuItem getParent()
MenuItem
getParent in interface MenuItemMenuItem.getParent()public void setParent(MenuItem parent)
MenuItem
setParent in interface MenuItemparent - MenuItemDesignModelMenuItem.setParent(com.cc.framework.ui.model.MenuItem)public MenuItem addItem(MenuItem item)
MenuItem
addItem in interface MenuItemitem - MenuItemDesignModel
MenuItem.addItem(MenuItem)public MenuItem removeItem(MenuItem item)
MenuItem
removeItem in interface MenuItemitem - MenuItemDesignModel
MenuItem.removeItem(MenuItem)public MenuItem[] getContent()
MenuItem
getContent in interface MenuItemMenuItem.getContent()public int size()
MenuItem
size in interface MenuItemMenuItem.size()public void setTarget(java.lang.String target)
MenuItem
setTarget in interface MenuItemtarget - TargetMenuItem.setTarget(String)public java.lang.String getTarget()
MenuItem
getTarget in interface MenuItemMenuItem.getTarget()public java.lang.String getMenuFilter()
getMenuFilter in interface MenuItempublic void setMenuFilter(java.lang.String menuFilter)
setMenuFilter in interface MenuItemmenuFilter - The filter to setpublic java.lang.String getImageRef()
getImageRef in interface MenuItempublic void setImageRef(java.lang.String imageRef)
setImageRef in interface MenuItemimageRef - The imageRef to setpublic Permission getPermission()
AccessControllednull no access rights is required.
getPermission in interface AccessControlledAccessControlled.getPermission()public void setPermission(Permission permission)
MenuItem
setPermission in interface MenuItempermission - PermissionMenuItem.setPermission(com.cc.framework.security.Permission)public boolean show(Principal principal)
AccessControlled
show in interface AccessControlledprincipal - the users principal object
true if the permission existsAccessControlled.show(Principal)public java.lang.String getMenuId()
MenuItem
getMenuId in interface MenuItemMenuItem.getMenuId()public void setMenuId(java.lang.String menuid)
MenuItem
setMenuId in interface MenuItemmenuid - menu idMenuItem.setMenuId(java.lang.String)public java.lang.String getTooltip()
MenuItem
getTooltip in interface MenuItemMenuItem.getTooltip()public void setTooltip(java.lang.String tooltip)
MenuItem
setTooltip in interface MenuItemtooltip - Tooltip textMenuItem.setTooltip(java.lang.String)public java.lang.String getLocaleName()
MenuItem
getLocaleName in interface MenuItemMenuItem.getLocaleName()public void setLocaleName(java.lang.String locale)
MenuItem
setLocaleName in interface MenuItemlocale - Locale Identifier or true|falseMenuItem.setLocaleName(java.lang.String)public void setOrientation(OrientationType orientation)
MenuItem
setOrientation in interface MenuItemorientation - The orientation of sub menu itemsMenuItem.setOrientation(com.cc.framework.ui.OrientationType)public OrientationType getOrientation()
MenuItem
getOrientation in interface MenuItemMenuItem.getOrientation()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||