|
|||||||||||
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.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 MenuItem
state
- the state flags (MenuState
)MenuItem.setState(int)
public void setText(java.lang.String text)
MenuItem
setText
in interface MenuItem
text
- TextMenuItem.setText(String)
public void setShortcut(java.lang.String shortcut)
MenuItem
setShortcut
in interface MenuItem
shortcut
- 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 MenuItem
width
- WidthMenuItem.setWidth(java.lang.String)
public final void setAction(java.lang.String action)
MenuItem
setAction
in interface MenuItem
action
- ActionMenuItem.setAction(java.lang.String)
public final java.lang.String getId()
public java.lang.String getAction()
MenuItem
getAction
in interface MenuItem
MenuItem.getAction()
public final java.lang.String getWidth()
MenuItem
getWidth
in interface MenuItem
MenuItem.getWidth()
public int getState()
MenuItem
MenuState
)
getState
in interface MenuItem
MenuItem.getState()
public java.lang.String getText()
MenuItem
getText
in interface MenuItem
MenuItem.getText()
public java.lang.String getShortcut()
MenuItem
getShortcut
in interface MenuItem
MenuItem.getShortcut()
public MenuItem getParent()
MenuItem
getParent
in interface MenuItem
MenuItem.getParent()
public void setParent(MenuItem parent)
MenuItem
setParent
in interface MenuItem
parent
- MenuItemDesignModelMenuItem.setParent(com.cc.framework.ui.model.MenuItem)
public MenuItem addItem(MenuItem item)
MenuItem
addItem
in interface MenuItem
item
- MenuItemDesignModel
MenuItem.addItem(MenuItem)
public MenuItem removeItem(MenuItem item)
MenuItem
removeItem
in interface MenuItem
item
- MenuItemDesignModel
MenuItem.removeItem(MenuItem)
public MenuItem[] getContent()
MenuItem
getContent
in interface MenuItem
MenuItem.getContent()
public int size()
MenuItem
size
in interface MenuItem
MenuItem.size()
public void setTarget(java.lang.String target)
MenuItem
setTarget
in interface MenuItem
target
- TargetMenuItem.setTarget(String)
public java.lang.String getTarget()
MenuItem
getTarget
in interface MenuItem
MenuItem.getTarget()
public java.lang.String getMenuFilter()
getMenuFilter
in interface MenuItem
public void setMenuFilter(java.lang.String menuFilter)
setMenuFilter
in interface MenuItem
menuFilter
- The filter to setpublic java.lang.String getImageRef()
getImageRef
in interface MenuItem
public void setImageRef(java.lang.String imageRef)
setImageRef
in interface MenuItem
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)
MenuItem
setPermission
in interface MenuItem
permission
- PermissionMenuItem.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()
MenuItem
getMenuId
in interface MenuItem
MenuItem.getMenuId()
public void setMenuId(java.lang.String menuid)
MenuItem
setMenuId
in interface MenuItem
menuid
- menu idMenuItem.setMenuId(java.lang.String)
public java.lang.String getTooltip()
MenuItem
getTooltip
in interface MenuItem
MenuItem.getTooltip()
public void setTooltip(java.lang.String tooltip)
MenuItem
setTooltip
in interface MenuItem
tooltip
- Tooltip textMenuItem.setTooltip(java.lang.String)
public java.lang.String getLocaleName()
MenuItem
getLocaleName
in interface MenuItem
MenuItem.getLocaleName()
public void setLocaleName(java.lang.String locale)
MenuItem
setLocaleName
in interface MenuItem
locale
- Locale Identifier or true|false
MenuItem.setLocaleName(java.lang.String)
public void setOrientation(OrientationType orientation)
MenuItem
setOrientation
in interface MenuItem
orientation
- The orientation of sub menu itemsMenuItem.setOrientation(com.cc.framework.ui.OrientationType)
public OrientationType getOrientation()
MenuItem
getOrientation
in interface MenuItem
MenuItem.getOrientation()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |