Class Layout
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.layout.Layout
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AbsoluteLayout,BorderLayout
@Entity public class Layout extends PersistentObject
This class represents the layout of aCompositeModulein a GUI. It providespropertyHints, which are (names) of recommended properties for the children of the correspondingCompositeModuleandpropertyMusts, which are (names) of required properties for the children of theCompositeModule. The values of such properties should be stored in the childModules property map. (Module.setProperties(java.util.Map))- Author:
- Nils Bühner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Layout()Explicitly adding the default constructor as this is important, e.g.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Set<java.lang.String>getPropertyHints()java.util.Set<java.lang.String>getPropertyMusts()java.lang.StringgetType()inthashCode()voidsetPropertyHints(java.util.Set<java.lang.String> propertyHints)voidsetPropertyMusts(java.util.Set<java.lang.String> propertyMusts)voidsetType(java.lang.String type)-
Methods inherited from class de.terrestris.shoguncore.model.PersistentObject
getCreated, getGroupPermissions, getId, getModified, getUserPermissions, setGroupPermissions, setModified, setUserPermissions, toString
-
-
-
-
Method Detail
-
getType
public java.lang.String getType()
- Returns:
-
setType
public void setType(java.lang.String type)
- Parameters:
type-
-
getPropertyHints
public java.util.Set<java.lang.String> getPropertyHints()
- Returns:
- the propertyHints
-
setPropertyHints
public void setPropertyHints(java.util.Set<java.lang.String> propertyHints)
- Parameters:
propertyHints- the propertyHints to set
-
getPropertyMusts
public java.util.Set<java.lang.String> getPropertyMusts()
- Returns:
- the propertyMusts
-
setPropertyMusts
public void setPropertyMusts(java.util.Set<java.lang.String> propertyMusts)
- Parameters:
propertyMusts- the propertyMusts 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
-
-