Class Module
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.module.Module
-
- All Implemented Interfaces:
java.io.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(java.lang.Object obj)java.lang.StringgetName()java.util.Map<java.lang.String,java.lang.Object>getProperties()java.lang.StringgetXtype()inthashCode()voidsetName(java.lang.String name)voidsetProperties(java.util.Map<java.lang.String,java.lang.Object> properties)voidsetXtype(java.lang.String xtype)-
Methods inherited from class de.terrestris.shoguncore.model.PersistentObject
getCreated, getGroupPermissions, getId, getModified, getUserPermissions, setGroupPermissions, setModified, setUserPermissions, toString
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- the name
-
setName
public void setName(java.lang.String name)
- Parameters:
name- the name to set
-
getXtype
public java.lang.String getXtype()
- Returns:
- the xtype
-
setXtype
public void setXtype(java.lang.String xtype)
- Parameters:
xtype- the xtype to set
-
getProperties
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
- Returns:
- the properties
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
- Parameters:
properties- the properties to set
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPersistentObject- See Also:
According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classPersistentObject- See Also:
According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate
-
-