Class FormUtils

java.lang.Object
org.saig.core.gui.swing.sldeditor.util.FormUtils

public class FormUtils extends Object
Author:
wolf
  • Method Details

    • 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 Component
      row - row at which we want to add a space
      startCol - first column at which we want to add a space
      height - height of the space
      color - 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)
    • getMaxDimension

      public static Dimension getMaxDimension(Dimension d1, Dimension d2)
    • getWindowForComponent

      public static Window getWindowForComponent(Component parentComponent)
    • getTitleLabel

      public static JLabel getTitleLabel(String title)
    • getExpandableTitleLabel

      public static JComponent getExpandableTitleLabel(String title, JComponent[] managedComponents, boolean collapsed)
    • repackParentWindow

      public static void repackParentWindow(Component component)