nl.gx.webmanager.wcb.paneltype.impl
Class PanelComponentDefinitionImpl

java.lang.Object
  extended by nl.gx.webmanager.wcb.foundation.ComponentDefinitionImpl
      extended by nl.gx.webmanager.wcb.foundation.MenuItemComponentDefinitionImpl
          extended by nl.gx.webmanager.wcb.paneltype.impl.PanelComponentDefinitionImpl
All Implemented Interfaces:
ComponentDefinition, MenuItemComponentDefinition, PanelComponentDefinition

public class PanelComponentDefinitionImpl
extends MenuItemComponentDefinitionImpl
implements PanelComponentDefinition

This class implements additional properties for panels to the default componentdefinition.

Author:
bramk

Field Summary
 
Fields inherited from class nl.gx.webmanager.wcb.foundation.ComponentDefinitionImpl
LOG
 
Constructor Summary
PanelComponentDefinitionImpl(boolean isLicensed)
          Creates a new PanelComponentDefinitionImpl instance.
 
Method Summary
 char getAccessKey()
          Returns the shortcut key for in the WebManager menu that can be used to open a panel.
 int getHeight()
          Returns the default height of the panel.
 Permission[] getMenuItemPermissions()
          Return the permissions each one of them granting the right to open the panel
 int getWidth()
          Returns the default width of the panel.
 boolean isPopup()
          Returns true if this panel is a popup screen that is not shown in the WebManager menu.
 boolean isResizable()
          Returns true if the panel is resizable.
 void setAccessKey(char accessKey)
          basic setter
 void setHeight(int height)
          basic setter
 void setPopup(boolean popup)
          basic setter
 void setResizable(boolean resizable)
          basic setter
 void setWidth(int width)
          basic setter
 
Methods inherited from class nl.gx.webmanager.wcb.foundation.MenuItemComponentDefinitionImpl
getMenuTextMessageKey, getTargetMenu, getTargetMenuLocationAfter, getTargetMenuLocationBefore, setMenuTextMessageKey, setTargetMenu, setTargetMenuLocationAfter, setTargetMenuLocationBefore
 
Methods inherited from class nl.gx.webmanager.wcb.foundation.ComponentDefinitionImpl
getComponentBundleDefinition, getControllerClassName, getDependencies, getDescription, getDisplayLanguage, getEntityClassNames, getEntityFactoryClassName, getExtensions, getId, getImplementationClassName, getInstanceClassName, getInterfaceClassNames, getLanguageResourceMessage, getLanguageResourceMessages, getLanguageResources, getName, getNameSpace, getNodeType, getPermissionCategory, getPermissionsForPermissionGroups, getPersistenceManagerClassName, getProperties, getTypeId, getWrapperClassNames, isLicensed, setComponentBundleDefinition, setControllerClassName, setDependencies, setDescription, setEntityClassNames, setEntityFactoryClassName, setExtensions, setId, setImplementationClassName, setInstanceClassName, setInterfaceClassNames, setLanguageResources, setName, setNameSpace, setNodeType, setPermissionCategory, setPermissionsForPermissionGroup, setPersistenceManagerClassName, setProperties, setTypeId, setWrapperClassNames
 
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.paneltype.PanelComponentDefinition
getDescription, getName
 
Methods inherited from interface nl.gx.webmanager.wcb.MenuItemComponentDefinition
getMenuTextMessageKey, getTargetMenu, getTargetMenuLocationAfter, getTargetMenuLocationBefore
 
Methods inherited from interface nl.gx.webmanager.wcb.ComponentDefinition
getComponentBundleDefinition, getControllerClassName, getDependencies, getDisplayLanguage, getEntityClassNames, getEntityFactoryClassName, getExtensions, getId, getImplementationClassName, getInstanceClassName, getInterfaceClassNames, getLanguageResourceMessage, getLanguageResourceMessages, getLanguageResources, getNameSpace, getNodeType, getPermissionCategory, getPermissionsForPermissionGroups, getPersistenceManagerClassName, getProperties, getTypeId, getWrapperClassNames, isLicensed, setComponentBundleDefinition, setExtensions
 

Constructor Detail

PanelComponentDefinitionImpl

public PanelComponentDefinitionImpl(boolean isLicensed)
Creates a new PanelComponentDefinitionImpl instance.

Parameters:
isLicensed - Indicates whether the PanelComponent requires a license.
Method Detail

getAccessKey

public char getAccessKey()
Description copied from interface: PanelComponentDefinition
Returns the shortcut key for in the WebManager menu that can be used to open a panel.

Specified by:
getAccessKey in interface PanelComponentDefinition
Returns:
The shortcut key for in the WebManager

setAccessKey

public void setAccessKey(char accessKey)
basic setter

Parameters:
accessKey -

getHeight

public int getHeight()
Description copied from interface: PanelComponentDefinition
Returns the default height of the panel.

Specified by:
getHeight in interface PanelComponentDefinition
Returns:
the default height of the panel

setHeight

public void setHeight(int height)
basic setter

Parameters:
height -

isPopup

public boolean isPopup()
Description copied from interface: PanelComponentDefinition
Returns true if this panel is a popup screen that is not shown in the WebManager menu.

Specified by:
isPopup in interface PanelComponentDefinition
Returns:
True if this panel is a popup screen

setPopup

public void setPopup(boolean popup)
basic setter

Parameters:
popup -

isResizable

public boolean isResizable()
Description copied from interface: PanelComponentDefinition
Returns true if the panel is resizable.

Specified by:
isResizable in interface PanelComponentDefinition
Returns:
true if the panel is resizable

setResizable

public void setResizable(boolean resizable)
basic setter

Parameters:
resizable -

getWidth

public int getWidth()
Description copied from interface: PanelComponentDefinition
Returns the default width of the panel.

Specified by:
getWidth in interface PanelComponentDefinition
Returns:
the default width of the panel

setWidth

public void setWidth(int width)
basic setter

Parameters:
width -

getMenuItemPermissions

public Permission[] getMenuItemPermissions()
Return the permissions each one of them granting the right to open the panel

Specified by:
getMenuItemPermissions in interface MenuItemComponentDefinition
Returns:
array with permissions each one of them granting the right to open the panel


Copyright © 2007-2011 GX Software BV. All Rights Reserved.