deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.portal.context
Class Module

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

public class Module
extends Object

this class encapsulates the basic informations of a module that is part of an area of the GUI. Other classes may extent this class by adding special attributes for more specialazied GUIs.

Version:
$Revision: 9346 $, $Date: 2007-12-27 17:39:07 +0100 (Do, 27 Dez 2007) $
Author:
Andreas Poth, last edited by: $Author: apoth $

Constructor Summary
Module(String name, String content, boolean hidden, String type, int width, int height, String scrolling, String[] moduleJSList, ModuleConfiguration moduleConfiguration, ParameterList parameterList)
          Creates a new Module_Impl object.
 
Method Summary
 void addParameter(Parameter parameter)
          adds a parameter to the list of parameters that will be passed to a class/object etc. that represents a module
 String getContent()
          returns the name of the page/class/file etc. containing the content of the module
 int getHeight()
          returns the height of the module in the GUI.
 ModuleConfiguration getModuleConfiguration()
          returns the a specific confguration for a module.
 String[] getModuleJSList()
           
 String getName()
          returns the name of a module
 ParameterList getParameter()
          returns a list of parameters that will be passed to a class/object etc. that represents a module
 String getScrolling()
          return true is the module should has scrollbars in the GUI
possible values are no yes auto default is auto
 String getType()
           
 int getWidth()
          returns the width of the module in the GUI.
 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 removeParameter(String name)
          removes a parameter to the list of parameters that will be passed to a class/object etc. that represents a module
 void setContent(String content)
          sets the name of the page/class/file etc. containing the content of the module
 void setHeight(int height)
          sets the desired height of the module in the GUI.
 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 setModuleJSList(String[] list)
           
 void setName(String name)
          sets the name of a module
 void setParameter(ParameterList parameterList)
          sets a list of parameters that will be passed to a class/object etc. that represents a module
 void setScrolling(String scrollable)
           
 void setType(String type)
           
 void setWidth(int width)
          sets the desired width of the module in the GUI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Module

public Module(String name,
              String content,
              boolean hidden,
              String type,
              int width,
              int height,
              String scrolling,
              String[] moduleJSList,
              ModuleConfiguration moduleConfiguration,
              ParameterList parameterList)
Creates a new Module_Impl object.

Parameters:
name - name of the module
content - the name of the page/class/file etc. containing the content of the module
hidden - indicates if the module is visible or not
type -
width -
height -
scrolling -
moduleJSList -
moduleConfiguration - encapsulates the access to the modules configuration (may be null)
parameterList -
Method Detail

getName

public String getName()
returns the name of a module

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

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. This may be nullif the module doesn't need to be configured.

setModuleConfiguration

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

Parameters:
configuration -

getParameter

public ParameterList getParameter()
returns a list of parameters that will be passed to a class/object etc. that represents a module

Returns:
parameters

setParameter

public void setParameter(ParameterList parameterList)
sets a list of parameters that will be passed to a class/object etc. that represents a module

Parameters:
parameterList -

addParameter

public void addParameter(Parameter parameter)
adds a parameter to the list of parameters that will be passed to a class/object etc. that represents a module

Parameters:
parameter -

removeParameter

public void removeParameter(String name)
removes a parameter to the list of parameters that will be passed to a class/object etc. that represents a module

Parameters:
name -

setType

public void setType(String type)
See Also:
org.deegree.clients.context.Module#setType(java.lang.String)

getType

public String getType()
See Also:
org.deegree.clients.context.Module#getType()

getWidth

public int getWidth()
returns the width of the module in the GUI. If '0' will be returned the GUI can set the with like it is best

Returns:
the width of the module in the GUI. If '0' will be returned the GUI can set the with like it is best

setWidth

public void setWidth(int width)
sets the desired width of the module in the GUI. If '0' ist passed the GUI can set the with like it is best

Parameters:
width - desired width of the module

getHeight

public int getHeight()
returns the height of the module in the GUI. If '0' will be returned the GUI can set the with like it is best

Returns:
the height of the module in the GUI. If '0' will be returned the GUI can set the with like it is best

setHeight

public void setHeight(int height)
sets the desired height of the module in the GUI. If '0' ist passed the GUI can set the with like it is best

Parameters:
height - desired width of the module

getModuleJSList

public String[] getModuleJSList()
Returns:
moduleJSList

setModuleJSList

public void setModuleJSList(String[] list)
Parameters:
list -

getScrolling

public String getScrolling()
return true is the module should has scrollbars in the GUI
possible values are default is auto

Returns:
true is the module should has scrollbars in the GUI possible values are

setScrolling

public void setScrolling(String scrollable)
Parameters:
scrollable -
See Also:
getScrolling()

deegree 2.2 (2008/12/22 11:33 build-3038-official)

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