Class Module
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.module.Module
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Button,CompositeModule,CoordinateTransformation,Image,Map,NominatimSearch,OverpassSearch,OverviewMap,Print,WfsSearch
@Entity public class Module extends PersistentObject
A module is the visual representation of a component in the GUI. A module can be connected to aLayoutand it stores basic properties (like border, height , width, ...).This class is the simple base class of either simple (e.g.
LayerTree) or complex (CompositeModule) subclasses and can thereby considered as a node in a tree structure of (sub-)modules.- Author:
- Nils Bühner
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetName()Map<String,Object>getProperties()StringgetXtype()inthashCode()voidsetName(String name)voidsetProperties(Map<String,Object> properties)voidsetXtype(String xtype)-
Methods inherited from class de.terrestris.shoguncore.model.PersistentObject
getCreated, getGroupPermissions, getId, getModified, getUserPermissions, setGroupPermissions, setModified, setUserPermissions, toString
-
-
-
-
Constructor Detail
-
Module
public Module()
Explicitly adding the default constructor as this is important, e.g. for Hibernate: http://goo.gl/3Cr1pw
-
Module
public Module(String name)
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name- the name to set
-
getXtype
public String getXtype()
- Returns:
- the xtype
-
setXtype
public void setXtype(String xtype)
- Parameters:
xtype- the xtype to set
-
setProperties
public void setProperties(Map<String,Object> properties)
- Parameters:
properties- the properties to set
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
-