Class SwingFactory


  • public class SwingFactory
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SwingFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> ActivatableTextBasedInputField<T> activatableTextBasedInputField​(java.lang.String label, boolean activatedByDefault, java.util.function.Function<java.lang.String,​T> parseInput, int textInputColumns)  
      static <T> CheckboxedComboBox<T> checkboxedComboBox​(java.lang.String label, boolean enabledByDefault, T[] values)  
      static CheckboxedTextField checkboxedTextField​(java.lang.String label, boolean enabledByDefault, int inputTextColumns)  
      static <T> javax.swing.JComboBox<T> comboBox​(T[] values)  
      static <T,​K>
      ComboBoxAndTextBasedInputField<T,​K>
      comboBoxAndTextBasedInputField​(java.lang.String label, K[] values, java.util.function.Function<java.lang.String,​T> parseInput, int inputTextColumns)  
      static javax.swing.JLabel createHeader​(java.lang.String s)  
      static javax.swing.JLabel createHeaderWithSubtitle​(java.lang.String s, java.lang.String sub)  
      static javax.swing.DefaultListCellRenderer getMyListCellRenderer()  
      static javax.swing.JButton help​(java.lang.String hint, java.lang.String contextIndependentText)  
      static javax.swing.JButton help​(java.lang.String hint, java.util.function.Supplier<java.lang.String> contextDependentText)  
      static java.lang.String html​(java.lang.String s)  
      static javax.swing.JCheckBox labeledCheckBox​(java.lang.String label)  
      static javax.swing.JCheckBox labeledCheckBox​(java.lang.String label, boolean checked)  
      static <T> LabeledComboBox<T> labeledComboBox​(java.lang.String label, T[] values)  
      static LabeledTextField labeledTextField​(java.lang.String label, int inputTextColumns)  
      static <T> org.processmining.framework.util.ui.widgets.ProMComboBox<T> promComboBox​(T[] values)  
      static org.processmining.framework.util.ui.widgets.ProMTable proMTable​(javax.swing.table.TableModel tableModel)  
      static javax.swing.table.DefaultTableModel readOnlyTableModel​(java.lang.String... columnNames)  
      static javax.swing.table.DefaultTableModel readOnlyTableModel​(java.lang.String[] columnNames, com.google.common.collect.Multimap<java.lang.Class<?>,​java.lang.Integer> types)  
      static void resizeComboBox​(javax.swing.JComboBox<?> heuristicComboBox, int width, int height)  
      static <T> TextBasedInputField<T> textBasedInputField​(java.lang.String label, java.util.function.Function<java.lang.String,​T> parseInput, int inputTextColumns)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SwingFactory

        public SwingFactory()
    • Method Detail

      • comboBox

        public static <T> javax.swing.JComboBox<T> comboBox​(T[] values)
      • promComboBox

        public static <T> org.processmining.framework.util.ui.widgets.ProMComboBox<T> promComboBox​(T[] values)
      • labeledComboBox

        public static <T> LabeledComboBox<T> labeledComboBox​(java.lang.String label,
                                                             T[] values)
      • help

        public static javax.swing.JButton help​(java.lang.String hint,
                                               java.lang.String contextIndependentText)
      • help

        public static javax.swing.JButton help​(java.lang.String hint,
                                               java.util.function.Supplier<java.lang.String> contextDependentText)
      • labeledTextField

        public static LabeledTextField labeledTextField​(java.lang.String label,
                                                        int inputTextColumns)
      • comboBoxAndTextBasedInputField

        public static <T,​K> ComboBoxAndTextBasedInputField<T,​K> comboBoxAndTextBasedInputField​(java.lang.String label,
                                                                                                           K[] values,
                                                                                                           java.util.function.Function<java.lang.String,​T> parseInput,
                                                                                                           int inputTextColumns)
      • textBasedInputField

        public static <T> TextBasedInputField<T> textBasedInputField​(java.lang.String label,
                                                                     java.util.function.Function<java.lang.String,​T> parseInput,
                                                                     int inputTextColumns)
      • activatableTextBasedInputField

        public static <T> ActivatableTextBasedInputField<T> activatableTextBasedInputField​(java.lang.String label,
                                                                                           boolean activatedByDefault,
                                                                                           java.util.function.Function<java.lang.String,​T> parseInput,
                                                                                           int textInputColumns)
      • checkboxedComboBox

        public static <T> CheckboxedComboBox<T> checkboxedComboBox​(java.lang.String label,
                                                                   boolean enabledByDefault,
                                                                   T[] values)
      • checkboxedTextField

        public static CheckboxedTextField checkboxedTextField​(java.lang.String label,
                                                              boolean enabledByDefault,
                                                              int inputTextColumns)
      • labeledCheckBox

        public static javax.swing.JCheckBox labeledCheckBox​(java.lang.String label)
      • labeledCheckBox

        public static javax.swing.JCheckBox labeledCheckBox​(java.lang.String label,
                                                            boolean checked)
      • proMTable

        public static org.processmining.framework.util.ui.widgets.ProMTable proMTable​(javax.swing.table.TableModel tableModel)
      • createHeader

        public static javax.swing.JLabel createHeader​(java.lang.String s)
      • createHeaderWithSubtitle

        public static javax.swing.JLabel createHeaderWithSubtitle​(java.lang.String s,
                                                                  java.lang.String sub)
      • readOnlyTableModel

        public static javax.swing.table.DefaultTableModel readOnlyTableModel​(java.lang.String... columnNames)
      • readOnlyTableModel

        public static javax.swing.table.DefaultTableModel readOnlyTableModel​(java.lang.String[] columnNames,
                                                                             com.google.common.collect.Multimap<java.lang.Class<?>,​java.lang.Integer> types)
      • html

        public static java.lang.String html​(java.lang.String s)
      • getMyListCellRenderer

        public static javax.swing.DefaultListCellRenderer getMyListCellRenderer()
      • resizeComboBox

        public static void resizeComboBox​(javax.swing.JComboBox<?> heuristicComboBox,
                                          int width,
                                          int height)