Package swingtree.api
Class Layout.GridLayoutInstaller
java.lang.Object
swingtree.api.Layout.GridLayoutInstaller
- All Implemented Interfaces:
Layout
- Enclosing interface:
Layout
The
Whenever this layout configuration changes, it will create and re-install a new
Layout.GridLayoutInstaller layout is a layout that represents
a GridLayout layout configuration for a component,
which consists of the number of rows, number of columns, horizontal gap and vertical gap. Whenever this layout configuration changes, it will create and re-install a new
GridLayout onto the component
based on the new configuration.-
Nested Class Summary
Nested classes/interfaces inherited from interface swingtree.api.Layout
Layout.BorderLayoutInstaller, Layout.ForBoxLayout, Layout.ForFlowLayout, Layout.ForMigLayout, Layout.GridLayoutInstaller, Layout.None, Layout.Unspecific -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidinstallFor(JComponent component) Installs aGridLayoutonto the supplied component using the row count, column count, and gap sizes stored in this configuration.toString()
-
Method Details
-
hashCode
public int hashCode() -
equals
-
installFor
Installs aGridLayoutonto the supplied component using the row count, column count, and gap sizes stored in this configuration. If aGridLayoutis already installed, only the properties that have changed are updated andJComponent.revalidate()is called to trigger a layout refresh.- Specified by:
installForin interfaceLayout- Parameters:
component- The component to install theGridLayoutfor.
-
toString
-