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 voidaddColInGBL(JComponent parent, int row, int startCol, JComponent label, JComponent component)static voidaddFiller(JComponent parent, int row, int col)static voidaddFiller(JComponent parent, int row, int col, JComponent component)static voidaddFiller(JComponent parent, int row, int col, JComponent component, boolean insets)static voidaddFiller(JComponent parent, int row, int col, JComponent component, double weight, boolean insets)static voidaddRowInGBL(JComponent parent, int row, int startCol, String label, JComponent component)static voidaddRowInGBL(JComponent parent, int row, int startCol, String label, JComponent component, boolean lastRowComponent)static voidaddRowInGBL(JComponent parent, int row, int startCol, Icon icon, JComponent component)static voidaddRowInGBL(JComponent parent, int row, int startCol, Icon icon, JComponent component, JComponent component2)static voidaddRowInGBL(JComponent parent, int row, int startCol, Icon icon, JLabel label, JComponent component, JLabel label2, JComponent component2)static voidaddRowInGBL(JComponent parent, int row, int startCol, JComponent component)static voidaddRowInGBL(JComponent parent, int row, int startCol, JComponent component, boolean fillRow, boolean insets)static voidaddRowInGBL(JComponent parent, int row, int startCol, JComponent component, boolean fillRow, boolean lastComponentInRow, boolean insets)static voidaddRowInGBL(JComponent parent, int row, int startCol, JComponent label, JComponent component)static voidaddRowInGBL(JComponent parent, int row, int startCol, JComponent label, JComponent component, boolean lastRowComponent)static voidaddRowInGBL(JComponent parent, int row, int startCol, JComponent label, JComponent component, double weigthy, boolean insets)static voidaddRowInGBL(JComponent parent, int row, int startCol, JLabel label, JComponent component)static voidaddRowInGBL(JComponent parent, int row, int startCol, JLabel label, JComponent component, boolean lastRowComponent)static voidaddSingleRowWestComponent(JComponent parent, int row, JComponent component)static voidaddSpacerInGBL(JComponent parent, int row, int startCol, int height, Color color)Add a vertical space with defined heightstatic voidforceButtonDimension(JButton button)static DimensiongetButtonDimension()static DimensiongetColorButtonDimension()static DimensiongetComboDimension()static InsetsgetDefaultInsets()static JComponentgetExpandableTitleLabel(String title, JComponent[] managedComponents, boolean collapsed)static DimensiongetMaxDimension(Dimension d1, Dimension d2)static DimensiongetSpinnerDimension()static JLabelgetTitleLabel(String title)static WindowgetWindowForComponent(Component parentComponent)static voidrepackParentWindow(Component component)static voidshow(JComponent component)static voidshow(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)
-
-