public interface IGridBagPanel
JPanel
with GridBagLayout
and with some helper methods.IGuiFactory.newGridBagPanel()
Modifier and Type | Method and Description |
---|---|
void |
addDouble(java.awt.Component component)
Adds the specified component to this panel using our constraints but modified to take 2 horizontal cells (
gridwidth = 2 which is restored
after). |
void |
addRemainder(java.awt.Component component)
Adds the specified component to this panel using our constraints but modified to be the last in the row (
gridwidth =
which is restored after). |
void |
addSingle(java.awt.Component component)
Adds the specified component to this panel using our constraints.
|
void |
addTriple(java.awt.Component component)
Adds the specified component to this panel using our constraints but modified to take 3 horizontal cells (
gridwidth = 3 which is restored
after). |
javax.swing.JPanel |
asPanel()
Casts this instance to
JPanel . |
java.awt.GridBagConstraints |
c()
Returns the grid bag constraints used when adding components.
|
void |
defaultConstraints()
Restores the default constraints.
|
void |
nextRow()
Configures the constraints for the next row (increments
gridy ). |
javax.swing.JPanel asPanel()
JPanel
.this
as a JPanel
java.awt.GridBagConstraints c()
void defaultConstraints()
void nextRow()
gridy
).void addSingle(java.awt.Component component)
component
- component to be addedvoid addDouble(java.awt.Component component)
gridwidth = 2
which is restored
after).component
- component to be addedvoid addTriple(java.awt.Component component)
gridwidth = 3
which is restored
after).component
- component to be addedvoid addRemainder(java.awt.Component component)
gridwidth =
GridBagConstraints.REMAINDER
which is restored after).component
- component to be added
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.