Class SwingFactory
- java.lang.Object
-
- org.processmining.specpp.prom.mvc.swing.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 CheckboxedTextFieldcheckboxedTextField(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.JLabelcreateHeader(java.lang.String s)static javax.swing.JLabelcreateHeaderWithSubtitle(java.lang.String s, java.lang.String sub)static javax.swing.DefaultListCellRenderergetMyListCellRenderer()static javax.swing.JButtonhelp(java.lang.String hint, java.lang.String contextIndependentText)static javax.swing.JButtonhelp(java.lang.String hint, java.util.function.Supplier<java.lang.String> contextDependentText)static java.lang.Stringhtml(java.lang.String s)static javax.swing.JCheckBoxlabeledCheckBox(java.lang.String label)static javax.swing.JCheckBoxlabeledCheckBox(java.lang.String label, boolean checked)static <T> LabeledComboBox<T>labeledComboBox(java.lang.String label, T[] values)static LabeledTextFieldlabeledTextField(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.ProMTableproMTable(javax.swing.table.TableModel tableModel)static javax.swing.table.DefaultTableModelreadOnlyTableModel(java.lang.String... columnNames)static javax.swing.table.DefaultTableModelreadOnlyTableModel(java.lang.String[] columnNames, com.google.common.collect.Multimap<java.lang.Class<?>,java.lang.Integer> types)static voidresizeComboBox(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)
-
-
-
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)
-
-