|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(java.lang.String name,
java.lang.String title,
java.lang.String content,
boolean hidden,
java.lang.String type,
int left,
int top,
int right,
int bottom,
int width,
int height,
boolean overlay,
boolean header,
boolean closable,
boolean collapsed,
java.lang.String scrolling,
java.lang.String[] moduleJSList,
ModuleConfiguration moduleConfiguration,
ParameterList parameterList)
Creates a new Module object. |
|
Module(java.lang.String name,
java.lang.String title,
java.lang.String content,
boolean hidden,
java.lang.String type,
int left,
int top,
int right,
int bottom,
int width,
int height,
boolean overlay,
boolean header,
boolean closable,
java.lang.String scrolling,
java.lang.String[] moduleJSList,
ModuleConfiguration moduleConfiguration,
ParameterList parameterList)
Deprecated. use other constructor with extra parameter for collapsed state |
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 |
int |
getBottom()
|
java.lang.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. |
int |
getLeft()
|
ModuleConfiguration |
getModuleConfiguration()
returns the a specific confguration for a module. |
java.lang.String[] |
getModuleJSList()
|
java.lang.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 |
int |
getRight()
|
java.lang.String |
getScrolling()
return true is the module should has scrollbars in the GUI possible values are no yes auto default is auto |
java.lang.String |
getTitle()
|
int |
getTop()
|
java.lang.String |
getType()
see also org.deegree.clients.context.Module#getType() |
int |
getWidth()
returns the width of the module in the GUI. |
boolean |
hasHeader()
|
boolean |
isClosable()
|
boolean |
isCollapsed()
|
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. |
boolean |
isOverlay()
|
void |
removeParameter(java.lang.String name)
removes a parameter to the list of parameters that will be passed to a class/object etc. that represents a module |
void |
setBottom(int bottom)
|
void |
setClosable(boolean closable)
|
void |
setCollapsed(boolean collapsed)
|
void |
setContent(java.lang.String content)
sets the name of the page/class/file etc. containing the content of the module |
void |
setHeader(boolean header)
|
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 |
setLeft(int left)
|
void |
setModuleConfiguration(ModuleConfiguration configuration)
sets the specific configuration for a module. |
void |
setModuleJSList(java.lang.String[] list)
|
void |
setName(java.lang.String name)
sets the name of a module |
void |
setOverlay(boolean overlay)
|
void |
setParameter(ParameterList parameterList)
sets a list of parameters that will be passed to a class/object etc. that represents a module |
void |
setRight(int right)
|
void |
setScrolling(java.lang.String scrollable)
|
void |
setTitle(java.lang.String title)
|
void |
setTop(int top)
|
void |
setType(java.lang.String type)
see also org.deegree.clients.context.Module#setType(java.lang.String) |
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 |
---|
@Deprecated public Module(java.lang.String name, java.lang.String title, java.lang.String content, boolean hidden, java.lang.String type, int left, int top, int right, int bottom, int width, int height, boolean overlay, boolean header, boolean closable, java.lang.String scrolling, java.lang.String[] moduleJSList, ModuleConfiguration moduleConfiguration, ParameterList parameterList)
public Module(java.lang.String name, java.lang.String title, java.lang.String content, boolean hidden, java.lang.String type, int left, int top, int right, int bottom, int width, int height, boolean overlay, boolean header, boolean closable, boolean collapsed, java.lang.String scrolling, java.lang.String[] moduleJSList, ModuleConfiguration moduleConfiguration, ParameterList parameterList)
name
- name of the moduletitle
- title 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
- left
- top
- right
- bottom
- width
- height
- overlay
- header
- closable
- collapsed
- the state of the module in table layout of ExtJS. default is falsescrolling
- moduleJSList
- moduleConfiguration
- encapsulates the access to the modules configuration (may be null)parameterList
- Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the title to set; if title
== null
the modules name will be used as titlepublic java.lang.String getContent()
public void setContent(java.lang.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(java.lang.String name)
name
- public void setType(java.lang.String type)
type
- to setpublic java.lang.String 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 int getBottom()
public void setBottom(int bottom)
bottom
- the bottom to setpublic int getLeft()
public void setLeft(int left)
left
- the left to setpublic int getRight()
public void setRight(int right)
right
- the right to setpublic int getTop()
public void setTop(int top)
top
- the top to setpublic boolean isClosable()
public void setClosable(boolean closable)
closable
- the closable to setpublic boolean hasHeader()
public void setHeader(boolean header)
header
- the header to setpublic boolean isOverlay()
public void setOverlay(boolean overlay)
overlay
- the overlay to setpublic java.lang.String[] getModuleJSList()
public void setModuleJSList(java.lang.String[] list)
list
- public java.lang.String getScrolling()
true
is the module should has scrollbars in the GUI possible values arepublic void setScrolling(java.lang.String scrollable)
scrollable
- getScrolling()
public void setCollapsed(boolean collapsed)
collapsed
- default value is falsepublic boolean isCollapsed()
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org