Class BorderLayout

  • All Implemented Interfaces:
    java.io.Serializable

    @Entity
    public class BorderLayout
    extends Layout
    This class is the representation of an border layout, where components are anchored in (predefined) regions, which are stored in the regions property.

    The order of the regions should match the order of the corresponding CompositeModule.getSubModules().

    Author:
    Nils Bühner
    See Also:
    Serialized Form
    • Constructor Detail

      • BorderLayout

        public BorderLayout()
        Explicitly adding the default constructor as this is important, e.g. for Hibernate: http://goo.gl/3Cr1pw
    • Method Detail

      • getRegions

        public java.util.List<java.lang.String> getRegions()
        Returns:
        the regions
      • setRegions

        public void setRegions​(java.util.List<java.lang.String> regions)
        Parameters:
        regions - the regions to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Layout
        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:
        equals in class Layout
        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