|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.portal.context.Module
public class Module
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.
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 |
---|
public Module(String name, String content, boolean hidden, String type, int width, int height, String scrolling, String[] moduleJSList, ModuleConfiguration moduleConfiguration, ParameterList parameterList)
name
- name of the modulecontent
- the name of the page/class/file etc. containing the content of the modulehidden
- indicates if the module is visible or nottype
- width
- height
- scrolling
- moduleJSList
- moduleConfiguration
- encapsulates the access to the modules configuration (may be null)parameterList
- Method Detail |
---|
public String getName()
public void setName(String name)
name
- public String getContent()
public void setContent(String content)
content
- public boolean isHidden()
true
if the module is hidden.public void setHidden(boolean hidden)
hidden
- public ModuleConfiguration getModuleConfiguration()
null
if the
module doesn't need to be configured.public void setModuleConfiguration(ModuleConfiguration configuration)
configuration
- public ParameterList getParameter()
public void setParameter(ParameterList parameterList)
parameterList
- public void addParameter(Parameter parameter)
parameter
- public void removeParameter(String name)
name
- public void setType(String type)
org.deegree.clients.context.Module#setType(java.lang.String)
public String getType()
org.deegree.clients.context.Module#getType()
public int getWidth()
public void setWidth(int width)
width
- desired width of the modulepublic int getHeight()
public void setHeight(int height)
height
- desired width of the modulepublic String[] getModuleJSList()
public void setModuleJSList(String[] list)
list
- public String getScrolling()
true
is the module should has scrollbars in the GUI possible values
arepublic void setScrolling(String scrollable)
scrollable
- getScrolling()
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net