deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.portal.context
Class AbstractModule

java.lang.Object
  extended by org.deegree.portal.context.AbstractModule

public abstract class AbstractModule
extends Object

describes the common access to modules embedded into the GUI described by general extension section of a web map context document within the deegree framework.

a module encapsulates GUI elements and/or functions that are used by the GUI. The concrete implementation of the GUI (e.g. as JSP pages) is responsible for enabling the commuication between the different modules of a context.

Version:
$Revision: 18195 $
Author:
Andreas Poth

Constructor Summary
AbstractModule(String name, String content, boolean hidden, ModuleConfiguration moduleConfiguration)
          Creates a new AbstractModule object.
 
Method Summary
 String getContent()
           
 ModuleConfiguration getModuleConfiguration()
          returns the a specific confguration for a module.
 String getName()
           
 boolean isHidden()
          returns true if the module is hidden. this will always be the case for modules that just offers functions to the context. visible modules may offere the capability to be turned to visible or not.
 void setContent(String content)
          sets the name of the page/class/file etc. containing the content of the module
 void setHidden(boolean hidden)
          sets the module to be hidden or visible. modules that only adds functions to a context will ignore this because they are always hidden
 void setModuleConfiguration(ModuleConfiguration configuration)
          sets the specific configuration for a module.
 void setName(String name)
          sets the name of a module
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractModule

public AbstractModule(String name,
                      String content,
                      boolean hidden,
                      ModuleConfiguration moduleConfiguration)
Creates a new AbstractModule object.

Parameters:
name -
content -
hidden -
moduleConfiguration -
Method Detail

getName

public String getName()
Returns:
the name of a module

setName

public void setName(String name)
sets the name of a module

Parameters:
name -

getContent

public String getContent()
Returns:
the name of the page/class/file etc. containing the content of the module

setContent

public void setContent(String content)
sets the name of the page/class/file etc. containing the content of the module

Parameters:
content -

isHidden

public boolean isHidden()
returns true if the module is hidden. this will always be the case for modules that just offers functions to the context. visible modules may offere the capability to be turned to visible or not.

Returns:
true if the module is hidden.

setHidden

public void setHidden(boolean hidden)
sets the module to be hidden or visible. modules that only adds functions to a context will ignore this because they are always hidden

Parameters:
hidden -

getModuleConfiguration

public ModuleConfiguration getModuleConfiguration()
returns the a specific confguration for a module. This may be null if the module doesn't need to be configured.

Returns:
the a specific confguration for a module

setModuleConfiguration

public void setModuleConfiguration(ModuleConfiguration configuration)
sets the specific configuration for a module.

Parameters:
configuration -

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org