|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.wcb.foundation.ComponentDefinitionImpl
nl.gx.webmanager.wcb.foundation.MenuItemComponentDefinitionImpl
nl.gx.webmanager.wcb.elementtype.impl.ElementComponentDefinitionImpl
public class ElementComponentDefinitionImpl
This class implements additional properties for panels to the default componentdefinition.
| Field Summary |
|---|
| Fields inherited from class nl.gx.webmanager.wcb.foundation.ComponentDefinitionImpl |
|---|
LOG |
| Constructor Summary | |
|---|---|
ElementComponentDefinitionImpl(boolean isLicensed)
Constructor. |
|
ElementComponentDefinitionImpl(boolean isLicensed,
java.lang.Class elementClass)
Creates a new ElementComponentDefinitionImpl instance. |
|
| Method Summary | |
|---|---|
char |
getAccessKey()
Returns the shortcut key for in the WebManager element menu that can be used to add an element to an element holder like a page. |
java.util.HashMap<java.lang.Class<? extends Element>,Permission[]> |
getCreatePermissions()
Returns the permissions that grant the user the authorization to create an instance of the element contained by this element component. |
java.util.HashMap<java.lang.Class<? extends Element>,Permission[]> |
getDeletePermissions()
Returns the permissions that grant the user the authorization to delete an instance of the element contained by this element component. |
java.lang.String |
getLargeIcon()
Returns the location of the icon for in the WebManager toolbar that can be used to add an element to an element holder like a page. |
Permission[] |
getMenuItemPermissions()
Returns the permission that grant the right for showing the menu item |
java.lang.String |
getPresentationScope()
Returns the presentation scope for the element, is directly mapped on the scope of a presentation object. |
java.lang.String |
getSmallIcon()
Returns the icon for in the WebManager element menu that depicts the type of element. |
java.lang.String |
getStaticBackendDir()
|
java.lang.String |
getTargetMenu()
Returns the identifying value of the WebManager menu to which the panel should be added. |
void |
setAccessKey(char acceskey)
|
void |
setCreatePermissions(java.lang.Class<? extends Element> elementClass,
Permission[] permissions)
Sets the permissions that grant the user the authorization to create an instance of the element contained by this element component. |
void |
setDeletePermissions(java.lang.Class<? extends Element> elementClass,
Permission[] permissions)
Sets the permissions that grant the user the authorization to delete an instance of the element contained by this element component. |
void |
setLargeIcon(java.lang.String largeIcon)
|
void |
setPresentationScope(java.lang.String presentationScope)
|
void |
setSmallIcon(java.lang.String smallIcon)
|
void |
setTargetMenu(java.lang.String targetMenu)
basic setter |
| Methods inherited from class nl.gx.webmanager.wcb.foundation.MenuItemComponentDefinitionImpl |
|---|
getMenuTextMessageKey, getTargetMenuLocationAfter, getTargetMenuLocationBefore, setMenuTextMessageKey, setTargetMenuLocationAfter, setTargetMenuLocationBefore |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nl.gx.webmanager.wcb.elementtype.ElementComponentDefinition |
|---|
getDescription, getName |
| Methods inherited from interface nl.gx.webmanager.wcb.MenuItemComponentDefinition |
|---|
getMenuTextMessageKey, getTargetMenuLocationAfter, getTargetMenuLocationBefore |
| Constructor Detail |
|---|
public ElementComponentDefinitionImpl(boolean isLicensed)
isLicensed -
public ElementComponentDefinitionImpl(boolean isLicensed,
java.lang.Class elementClass)
ElementComponentDefinitionImpl instance.
isLicensed - Indicates whether the ElementComponent requires a license.| Method Detail |
|---|
public char getAccessKey()
ElementComponentDefinition
getAccessKey in interface ElementComponentDefinitionpublic void setAccessKey(char acceskey)
acceskey - public java.lang.String getLargeIcon()
ElementComponentDefinition
getLargeIcon in interface ElementComponentDefinitionpublic void setLargeIcon(java.lang.String largeIcon)
largeIcon - public java.lang.String getTargetMenu()
MenuItemComponentDefinition
getTargetMenu in interface MenuItemComponentDefinitiongetTargetMenu in class MenuItemComponentDefinitionImplpublic void setTargetMenu(java.lang.String targetMenu)
setTargetMenu in class MenuItemComponentDefinitionImpltargetMenu - public java.lang.String getPresentationScope()
ElementComponentDefinition
getPresentationScope in interface ElementComponentDefinitionpublic void setPresentationScope(java.lang.String presentationScope)
scope - public java.lang.String getStaticBackendDir()
public java.lang.String getSmallIcon()
ElementComponentDefinition
getSmallIcon in interface ElementComponentDefinitionpublic void setSmallIcon(java.lang.String smallIcon)
smallIcon - public Permission[] getMenuItemPermissions()
getMenuItemPermissions in interface MenuItemComponentDefinitionpublic java.util.HashMap<java.lang.Class<? extends Element>,Permission[]> getCreatePermissions()
getCreatePermissions in interface ElementComponentDefinition
public void setCreatePermissions(java.lang.Class<? extends Element> elementClass,
Permission[] permissions)
null, create permission is granted to all users
setCreatePermissions in interface ElementComponentDefinitionelementClass - Element class to set the permissions for. The permissions will
be applicable for any instances of the given class.permissions - All permissions that grant the user the authorization
to create an instance of the element contained by this element componentpublic java.util.HashMap<java.lang.Class<? extends Element>,Permission[]> getDeletePermissions()
getDeletePermissions in interface ElementComponentDefinition
public void setDeletePermissions(java.lang.Class<? extends Element> elementClass,
Permission[] permissions)
null, delete permission is granted to all users
setDeletePermissions in interface ElementComponentDefinitionelementClass - Element class to set the permissions for. The permissions will
be applicable for any instances of the given class.permissions - All permissions that grant the user the authorization
to delete an instance of the element contained by this element component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||