Class FormUtils
- java.lang.Object
-
- org.saig.core.gui.swing.sldeditor.util.FormUtils
-
public class FormUtils extends Object
- Author:
- wolf
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addColInGBL(JComponent parent, int row, int startCol, JComponent label, JComponent component)
static void
addFiller(JComponent parent, int row, int col)
static void
addFiller(JComponent parent, int row, int col, JComponent component)
static void
addFiller(JComponent parent, int row, int col, JComponent component, boolean insets)
static void
addFiller(JComponent parent, int row, int col, JComponent component, double weight, boolean insets)
static void
addRowInGBL(JComponent parent, int row, int startCol, String label, JComponent component)
static void
addRowInGBL(JComponent parent, int row, int startCol, String label, JComponent component, boolean lastRowComponent)
static void
addRowInGBL(JComponent parent, int row, int startCol, Icon icon, JComponent component)
static void
addRowInGBL(JComponent parent, int row, int startCol, Icon icon, JComponent component, JComponent component2)
static void
addRowInGBL(JComponent parent, int row, int startCol, Icon icon, JLabel label, JComponent component, JLabel label2, JComponent component2)
static void
addRowInGBL(JComponent parent, int row, int startCol, JComponent component)
static void
addRowInGBL(JComponent parent, int row, int startCol, JComponent component, boolean fillRow, boolean insets)
static void
addRowInGBL(JComponent parent, int row, int startCol, JComponent component, boolean fillRow, boolean lastComponentInRow, boolean insets)
static void
addRowInGBL(JComponent parent, int row, int startCol, JComponent label, JComponent component)
static void
addRowInGBL(JComponent parent, int row, int startCol, JComponent label, JComponent component, boolean lastRowComponent)
static void
addRowInGBL(JComponent parent, int row, int startCol, JComponent label, JComponent component, double weigthy, boolean insets)
static void
addRowInGBL(JComponent parent, int row, int startCol, JLabel label, JComponent component)
static void
addRowInGBL(JComponent parent, int row, int startCol, JLabel label, JComponent component, boolean lastRowComponent)
static void
addSingleRowWestComponent(JComponent parent, int row, JComponent component)
static void
addSpacerInGBL(JComponent parent, int row, int startCol, int height, Color color)
Add a vertical space with defined heightstatic void
forceButtonDimension(JButton button)
static Dimension
getButtonDimension()
static Dimension
getColorButtonDimension()
static Dimension
getComboDimension()
static Insets
getDefaultInsets()
static JComponent
getExpandableTitleLabel(String title, JComponent[] managedComponents, boolean collapsed)
static Dimension
getMaxDimension(Dimension d1, Dimension d2)
static Dimension
getSpinnerDimension()
static JLabel
getTitleLabel(String title)
static Window
getWindowForComponent(Component parentComponent)
static void
repackParentWindow(Component component)
static void
show(JComponent component)
static void
show(JFrame frame)
-
-
-
Method Detail
-
getDefaultInsets
public static Insets getDefaultInsets()
-
addRowInGBL
public static void addRowInGBL(JComponent parent, int row, int startCol, JComponent component)
-
addRowInGBL
public static void addRowInGBL(JComponent parent, int row, int startCol, JComponent component, boolean fillRow, boolean insets)
-
addRowInGBL
public static void addRowInGBL(JComponent parent, int row, int startCol, JComponent component, boolean fillRow, boolean lastComponentInRow, boolean insets)
-
addRowInGBL
public static void addRowInGBL(JComponent parent, int row, int startCol, JLabel label, JComponent component)
-
addRowInGBL
public static void addRowInGBL(JComponent parent, int row, int startCol, String label, JComponent component)
-
addRowInGBL
public static void addRowInGBL(JComponent parent, int row, int startCol, JLabel label, JComponent component, boolean lastRowComponent)
-
addRowInGBL
public static void addRowInGBL(JComponent parent, int row, int startCol, String label, JComponent component, boolean lastRowComponent)
-
addRowInGBL
public static void addRowInGBL(JComponent parent, int row, int startCol, JComponent label, JComponent component)
-
addRowInGBL
public static void addRowInGBL(JComponent parent, int row, int startCol, JComponent label, JComponent component, boolean lastRowComponent)
-
addRowInGBL
public static void addRowInGBL(JComponent parent, int row, int startCol, JComponent label, JComponent component, double weigthy, boolean insets)
-
addRowInGBL
public static void addRowInGBL(JComponent parent, int row, int startCol, Icon icon, JComponent component)
-
addRowInGBL
public static void addRowInGBL(JComponent parent, int row, int startCol, Icon icon, JComponent component, JComponent component2)
-
addRowInGBL
public static void addRowInGBL(JComponent parent, int row, int startCol, Icon icon, JLabel label, JComponent component, JLabel label2, JComponent component2)
-
addColInGBL
public static void addColInGBL(JComponent parent, int row, int startCol, JComponent label, JComponent component)
-
addSpacerInGBL
public static void addSpacerInGBL(JComponent parent, int row, int startCol, int height, Color color)
Add a vertical space with defined height- Parameters:
parent
- the parent Componentrow
- row at which we want to add a spacestartCol
- first column at which we want to add a spaceheight
- height of the spacecolor
- color of the background in the space
-
addFiller
public static void addFiller(JComponent parent, int row, int col, JComponent component, double weight, boolean insets)
-
addFiller
public static void addFiller(JComponent parent, int row, int col, JComponent component)
-
addFiller
public static void addFiller(JComponent parent, int row, int col, JComponent component, boolean insets)
-
addFiller
public static void addFiller(JComponent parent, int row, int col)
-
addSingleRowWestComponent
public static void addSingleRowWestComponent(JComponent parent, int row, JComponent component)
-
getButtonDimension
public static Dimension getButtonDimension()
-
forceButtonDimension
public static void forceButtonDimension(JButton button)
-
getColorButtonDimension
public static Dimension getColorButtonDimension()
-
getSpinnerDimension
public static Dimension getSpinnerDimension()
-
getComboDimension
public static Dimension getComboDimension()
-
show
public static void show(JComponent component)
-
show
public static void show(JFrame frame)
-
getExpandableTitleLabel
public static JComponent getExpandableTitleLabel(String title, JComponent[] managedComponents, boolean collapsed)
-
repackParentWindow
public static void repackParentWindow(Component component)
-
-