|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.projectforge.web.MenuItemDef
public class MenuItemDef
The menu is defined once. The user's personal menu is calculated by this menu definitions (which menu entries are visible and which not).
| Constructor Summary | |
|---|---|
MenuItemDef()
|
|
MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
Class<? extends org.apache.wicket.Page> pageClass,
ProjectForgeGroup... visibleForGroups)
|
|
MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
Class<? extends org.apache.wicket.Page> pageClass,
String[] params,
ProjectForgeGroup... visibleForGroups)
|
|
MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
Class<? extends org.apache.wicket.Page> pageClass,
String[] params,
UserRightId requiredRightId,
UserRightValue... requiredRightValues)
|
|
MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
Class<? extends org.apache.wicket.Page> pageClass,
UserRightId requiredRightId,
UserRightValue... requiredRightValues)
|
|
MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
ProjectForgeGroup... visibleForGroups)
A menu entry without a link (e. g. a parent menu entry). |
|
MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
String url,
boolean newWindow,
ProjectForgeGroup... visibleForGroups)
|
|
MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
String url,
boolean newWindow,
UserRightId requiredRightId,
UserRightValue... requiredRightValues)
|
|
MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
String url,
ProjectForgeGroup... visibleForGroups)
|
|
MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
String url,
UserRightId requiredRightId,
UserRightValue... requiredRightValues)
|
|
| Method Summary | |
|---|---|
protected void |
afterMenuEntryCreation(MenuEntry createdMenuEntry,
MenuBuilderContext context)
Override this method if some modifications needed after a menu entry for an user's menu is created. |
protected MenuEntry |
createMenuEntry(Menu menu,
MenuBuilderContext context)
|
String |
getI18nKey()
|
String |
getId()
|
int |
getMobileMenuOrderNumber()
Order number for sorting menu entries (mobile menu). |
Class<? extends org.apache.wicket.Page> |
getMobilePageClass()
|
MenuItemDef |
getMobileParentMenu()
|
int |
getOrderNumber()
Order number for sorting menu entries. |
Class<? extends org.apache.wicket.Page> |
getPageClass()
|
String[] |
getParams()
|
MenuItemDef |
getParent()
|
UserRightId |
getRequiredRightId()
|
UserRightValue[] |
getRequiredRightValues()
|
String |
getUrl()
|
ProjectForgeGroup[] |
getVisibleForGroups()
|
boolean |
hasRight(AccessChecker accessChecker,
PFUserDO loggedInUser)
|
boolean |
hasUrl()
|
boolean |
isLink()
|
boolean |
isNewWindow()
|
boolean |
isVisible()
|
protected boolean |
isVisible(MenuBuilderContext context)
Overwrite this if you need special access checking. |
boolean |
isWicketPage()
|
void |
setDesktopMenuSupport(boolean desktopMenuSupport)
If set to false then this menu entry will not be displayed in the classical web menu version. |
MenuItemDef |
setMobileMenu(Class<? extends org.apache.wicket.Page> mobilePageClass,
int mobileMenuOrderNumber)
Adds the given menu entry as root menu entry. |
MenuItemDef |
setMobileMenu(MenuItemDef mobileParentEntry,
Class<? extends org.apache.wicket.Page> mobilePageClass,
int mobileMenuOrderNumber)
TODO: Not yet supported. |
void |
setMobileMenuSupport(boolean mobileMenuSupport)
Will be automatically set if any setter regarding mobile menu properties is calles (with not-null params), default is false. |
MenuItemDef |
setVisible(boolean visible)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MenuItemDef()
public MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
Class<? extends org.apache.wicket.Page> pageClass,
UserRightId requiredRightId,
UserRightValue... requiredRightValues)
parent - The parent menu entryid - The unique idorderNumber - The order of the sibling menu entries is done implemented by this order number (ascending order).i18nKey - For displaying the menu entry localized.pageClass - The linked page class (if the user clicks on this menu entry).requiredRightId - Reduce the visibility of this menu entry (if wanted): which user right is required?requiredRightValues - Reducing the visibility: which right values are required?
public MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
Class<? extends org.apache.wicket.Page> pageClass,
String[] params,
UserRightId requiredRightId,
UserRightValue... requiredRightValues)
parent - The parent menu entryid - The unique idorderNumber - The order of the sibling menu entries is done implemented by this order number (ascending order).i18nKey - For displaying the menu entry localized.pageClass - The linked page class (if the user clicks on this menu entry).params - Parameters used when calling the pageClass (PageParameters).requiredRightId - Reduce the visibility of this menu entry (if wanted): which user right is required?requiredRightValues - Reducing the visibility: which right values are required?
public MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
Class<? extends org.apache.wicket.Page> pageClass,
ProjectForgeGroup... visibleForGroups)
parent - The parent menu entryid - The unique idorderNumber - The order of the sibling menu entries is done implemented by this order number (ascending order).i18nKey - For displaying the menu entry localized.pageClass - The linked page class (if the user clicks on this menu entry).visibleForGroups - Reduce the visibility of this menu entry (if wanted).
public MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
Class<? extends org.apache.wicket.Page> pageClass,
String[] params,
ProjectForgeGroup... visibleForGroups)
parent - The parent menu entryid - The unique idorderNumber - The order of the sibling menu entries is done implemented by this order number (ascending order).i18nKey - For displaying the menu entry localized.pageClass - The linked page class (if the user clicks on this menu entry).params - Parameters used when calling the pageClass (PageParameters).visibleForGroups - Reduce the visibility of this menu entry (if wanted).
public MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
String url,
ProjectForgeGroup... visibleForGroups)
parent - The parent menu entryid - The unique idorderNumber - The order of the sibling menu entries is done implemented by this order number (ascending order).i18nKey - For displaying the menu entry localized.url - The linked url (if the user clicks on this menu entry).visibleForGroups - Reduce the visibility of this menu entry (if wanted).
public MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
String url,
boolean newWindow,
ProjectForgeGroup... visibleForGroups)
parent - The parent menu entryid - The unique idorderNumber - The order of the sibling menu entries is done implemented by this order number (ascending order).i18nKey - For displaying the menu entry localized.url - The linked url (if the user clicks on this menu entry).newWindow - If true, then the link will be opened in a new browser window.visibleForGroups - Reduce the visibility of this menu entry (if wanted).
public MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
ProjectForgeGroup... visibleForGroups)
parent - The parent menu entryid - The unique idorderNumber - The order of the sibling menu entries is done implemented by this order number (ascending order).i18nKey - For displaying the menu entry localized.visibleForGroups - Reduce the visibility of this menu entry (if wanted).
public MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
String url,
UserRightId requiredRightId,
UserRightValue... requiredRightValues)
parent - The parent menu entryid - The unique idorderNumber - The order of the sibling menu entries is done implemented by this order number (ascending order).i18nKey - For displaying the menu entry localized.url - The linked url (if the user clicks on this menu entry).requiredRightId - Reduce the visibility of this menu entry (if wanted): which user right is required?requiredRightValues - Reducing the visibility: which right values are required?
public MenuItemDef(MenuItemDef parent,
String id,
int orderNumber,
String i18nKey,
String url,
boolean newWindow,
UserRightId requiredRightId,
UserRightValue... requiredRightValues)
parent - The parent menu entryid - The unique idorderNumber - The order of the sibling menu entries is done implemented by this order number (ascending order).i18nKey - For displaying the menu entry localized.url - The linked url (if the user clicks on this menu entry).newWindow - If true, then the link will be opened in a new browser window.requiredRightId - Reduce the visibility of this menu entry (if wanted): which user right is required?requiredRightValues - Reducing the visibility: which right values are required?| Method Detail |
|---|
protected boolean isVisible(MenuBuilderContext context)
context -
public boolean isVisible()
public MenuItemDef setVisible(boolean visible)
visible -
protected MenuEntry createMenuEntry(Menu menu,
MenuBuilderContext context)
protected void afterMenuEntryCreation(MenuEntry createdMenuEntry,
MenuBuilderContext context)
createdMenuEntry - The fresh created menu entry (is never null).context - public MenuItemDef getParent()
public String getId()
public int getOrderNumber()
public void setDesktopMenuSupport(boolean desktopMenuSupport)
desktopMenuSupport - public void setMobileMenuSupport(boolean mobileMenuSupport)
mobileMenuSupport - public int getMobileMenuOrderNumber()
public MenuItemDef getMobileParentMenu()
public MenuItemDef setMobileMenu(MenuItemDef mobileParentEntry,
Class<? extends org.apache.wicket.Page> mobilePageClass,
int mobileMenuOrderNumber)
mobileParentEntry - mobileMenuOrderNumber -
public MenuItemDef setMobileMenu(Class<? extends org.apache.wicket.Page> mobilePageClass,
int mobileMenuOrderNumber)
mobileParentEntry - mobileMenuOrderNumber -
public String getI18nKey()
public Class<? extends org.apache.wicket.Page> getPageClass()
public Class<? extends org.apache.wicket.Page> getMobilePageClass()
public boolean isWicketPage()
public boolean hasUrl()
public boolean isLink()
public String getUrl()
public String[] getParams()
public boolean isNewWindow()
public ProjectForgeGroup[] getVisibleForGroups()
public UserRightId getRequiredRightId()
public UserRightValue[] getRequiredRightValues()
public boolean hasRight(AccessChecker accessChecker,
PFUserDO loggedInUser)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||