org.deegree_impl.clients.context
Class GUIArea_Impl

java.lang.Object
  extended byorg.deegree_impl.clients.context.GUIArea_Impl
All Implemented Interfaces:
GUIArea, Marshallable

public class GUIArea_Impl
extends java.lang.Object
implements GUIArea, Marshallable

this interface describes the content of an area of a GUI. a GUI area contains zero ... n modules described by the Module interface. A GUI area may be can be switched to be invisible. indicated by the hidden attribute.

Version:
$Revision: 1.2 $
Author:
Andreas Poth

Field Summary
private  int area
           
private  boolean hidden
           
private  java.util.HashMap modules
           
 
Fields inherited from interface org.deegree.clients.context.GUIArea
CENTER, EAST, NORTH, SOUTH, WEST
 
Constructor Summary
GUIArea_Impl(int area, boolean hidden, Module[] modules)
          Creates a new GUIArea_Impl object.
 
Method Summary
 void addModul(Module module)
          adds a module to a GUIArea
 java.lang.String exportAsXML()
          Produces an XML-representation of this object.
 int getArea()
          returns area (north, west, east ...)
 Module getModule(java.lang.String name)
          returns a module identified by its name
 Module[] getModules()
          returns all modules of a GUIArea
 boolean isHidden()
          returns true if the GUIArea is hidden.
 Module removeModule(java.lang.String name)
          reomes a module identified by its name from the GUIArea
 void setArea(int area)
          sets the name of a module
 void setHidden(boolean hidden)
          sets the GUIArea to be hidden or visible.
 void setModules(Module[] modules)
          sets the modules of a GUIArea
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modules

private java.util.HashMap modules

hidden

private boolean hidden

area

private int area
Constructor Detail

GUIArea_Impl

public GUIArea_Impl(int area,
                    boolean hidden,
                    Module[] modules)
Creates a new GUIArea_Impl object.

Parameters:
area -
hidden -
modules -
Method Detail

getArea

public int getArea()
returns area (north, west, east ...) assigned to an instance

Specified by:
getArea in interface GUIArea
Returns:

setArea

public void setArea(int area)
sets the name of a module

Specified by:
setArea in interface GUIArea
Parameters:
area -

isHidden

public boolean isHidden()
returns true if the GUIArea is hidden.

Specified by:
isHidden in interface GUIArea
Returns:

setHidden

public void setHidden(boolean hidden)
sets the GUIArea to be hidden or visible.

Specified by:
setHidden in interface GUIArea
Parameters:
hidden -

getModule

public Module getModule(java.lang.String name)
returns a module identified by its name

Specified by:
getModule in interface GUIArea
Parameters:
name -
Returns:

getModules

public Module[] getModules()
returns all modules of a GUIArea

Specified by:
getModules in interface GUIArea
Returns:

setModules

public void setModules(Module[] modules)
sets the modules of a GUIArea

Specified by:
setModules in interface GUIArea
Parameters:
modules -

addModul

public void addModul(Module module)
adds a module to a GUIArea

Specified by:
addModul in interface GUIArea
Parameters:
module -

removeModule

public Module removeModule(java.lang.String name)
reomes a module identified by its name from the GUIArea

Specified by:
removeModule in interface GUIArea
Parameters:
name -
Returns:

exportAsXML

public java.lang.String exportAsXML()
Description copied from interface: Marshallable
Produces an XML-representation of this object.

Specified by:
exportAsXML in interface Marshallable
Returns:
XML-representation of this object