java.lang.Object
is.codion.swing.common.ui.component.Components
A factory for
ComponentBuilder
instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic NumberField.Builder<BigDecimal>
static NumberField.Builder<BigDecimal>
bigDecimalField
(Value<BigDecimal> linkedValue) static ItemComboBoxBuilder<Boolean>
static ItemComboBoxBuilder<Boolean>
booleanComboBox
(Value<Boolean> linkedValue) static ItemComboBoxBuilder<Boolean>
booleanComboBox
(FilterComboBoxModel<Item<Boolean>> comboBoxModel) static ItemComboBoxBuilder<Boolean>
booleanComboBox
(FilterComboBoxModel<Item<Boolean>> comboBoxModel, Value<Boolean> linkedValue) static BorderLayoutPanelBuilder
Creates a newBorderLayoutPanelBuilder
instance using a newBorderLayout
instance with the default horizontal and vertical gap.static BorderLayoutPanelBuilder
borderLayoutPanel
(BorderLayout layout) static <B extends ButtonBuilder<Void,
JButton, B>>
ButtonBuilder<Void,JButton, B> button()
static <B extends ButtonBuilder<Void,
JButton, B>>
ButtonBuilder<Void,JButton, B> static <B extends ButtonBuilder<Void,
JButton, B>>
ButtonBuilder<Void,JButton, B> button
(Control.Builder<?, ?> controlBuilder) static <B extends ButtonBuilder<Void,
JButton, B>>
ButtonBuilder<Void,JButton, B> static ButtonPanelBuilder
static ButtonPanelBuilder
buttonPanel
(Controls controls) static ButtonPanelBuilder
buttonPanel
(Controls.ControlsBuilder controlsBuilder) static ButtonPanelBuilder
buttonPanel
(Action... actions) static FileInputPanel.Builder<byte[]>
Provides builder for a byte array based file input panel.static <B extends TextFieldBuilder<Character,
JTextField, B>>
TextFieldBuilder<Character,JTextField, B> static <B extends TextFieldBuilder<Character,
JTextField, B>>
TextFieldBuilder<Character,JTextField, B> characterField
(Value<Character> linkedValue) static CheckBoxBuilder
checkBox()
static CheckBoxBuilder
static <B extends CheckBoxMenuItemBuilder<B>>
CheckBoxMenuItemBuilder<B>static <B extends CheckBoxMenuItemBuilder<B>>
CheckBoxMenuItemBuilder<B>checkBoxMenuItem
(Value<Boolean> linkedValue) static <T,
C extends JComboBox<T>, B extends ComboBoxBuilder<T, C, B>>
ComboBoxBuilder<T,C, B> comboBox
(ComboBoxModel<T> comboBoxModel) static <T,
C extends JComboBox<T>, B extends ComboBoxBuilder<T, C, B>>
ComboBoxBuilder<T,C, B> comboBox
(ComboBoxModel<T> comboBoxModel, Value<T> linkedValue) static NumberField.Builder<Double>
static NumberField.Builder<Double>
doubleField
(Value<Double> linkedValue) static NumberSpinnerBuilder<Double>
static NumberSpinnerBuilder<Double>
doubleSpinner
(Value<Double> linkedValue) static NumberSpinnerBuilder<Double>
doubleSpinner
(SpinnerNumberModel spinnerNumberModel) static NumberSpinnerBuilder<Double>
doubleSpinner
(SpinnerNumberModel spinnerNumberModel, Value<Double> linkedValue) static PanelBuilder
flexibleGridLayoutPanel
(int rows, int columns) Creates a newPanelBuilder
instance using a newFlexibleGridLayout
with the default horizontal and vertical gap.static PanelBuilder
flowLayoutPanel
(int alignment) Creates a newPanelBuilder
instance using a newFlowLayout
with the default horizontal and vertical gap.static PanelBuilder
gridLayoutPanel
(int rows, int columns) Creates a newPanelBuilder
instance using a newGridLayout
with the default horizontal and vertical gap.static NumberField.Builder<Integer>
static NumberField.Builder<Integer>
integerField
(Value<Integer> linkedValue) static NumberSpinnerBuilder<Integer>
static NumberSpinnerBuilder<Integer>
integerSpinner
(Value<Integer> linkedValue) static NumberSpinnerBuilder<Integer>
integerSpinner
(SpinnerNumberModel spinnerNumberModel) static NumberSpinnerBuilder<Integer>
integerSpinner
(SpinnerNumberModel spinnerNumberModel, Value<Integer> linkedValue) static <T> ItemComboBoxBuilder<T>
itemComboBox
(FilterComboBoxModel<Item<T>> comboBoxModel) static <T> ItemComboBoxBuilder<T>
itemComboBox
(FilterComboBoxModel<Item<T>> comboBoxModel, Value<T> linkedValue) static <T> ItemComboBoxBuilder<T>
itemComboBox
(List<Item<T>> values) static <T> ItemComboBoxBuilder<T>
itemComboBox
(List<Item<T>> values, Value<T> linkedValue) static <T> ItemSpinnerBuilder<T>
itemSpinner
(SpinnerListModel spinnerModel) static <T> ItemSpinnerBuilder<T>
itemSpinner
(SpinnerListModel spinnerModel, Value<T> linkedValue) static <T> LabelBuilder<T>
label()
static <T> LabelBuilder<T>
label
(ValueObserver<T> linkedValueObserver) static LabelBuilder<String>
static <T> LabelBuilder<T>
static <T> ListBuilder.Factory<T>
static <T> ListBoxBuilder<T>
listBox
(ComponentValue<T, ? extends JComponent> itemValue, ValueSet<T> linkedValue) Creates aJComboBox
basedComponentValue
instance, represented by the items in the combo box (as opposed to the selected item).static <T> ListSpinnerBuilder<T>
listSpinner
(SpinnerListModel spinnerModel) static <T> ListSpinnerBuilder<T>
listSpinner
(SpinnerListModel spinnerModel, Value<T> linkedValue) static TemporalField.Builder<LocalDate>
static TemporalField.Builder<LocalDate>
localDateField
(Value<LocalDate> linkedValue) static TemporalFieldPanel.Builder<LocalDate>
static TemporalFieldPanel.Builder<LocalDate>
localDateFieldPanel
(Value<LocalDate> linkedValue) static TemporalField.Builder<LocalDateTime>
static TemporalField.Builder<LocalDateTime>
localDateTimeField
(Value<LocalDateTime> linkedValue) localDateTimeFieldPanel
(Value<LocalDateTime> linkedValue) static TemporalField.Builder<LocalTime>
static TemporalField.Builder<LocalTime>
localTimeField
(Value<LocalTime> linkedValue) static TemporalFieldPanel.Builder<LocalTime>
static TemporalFieldPanel.Builder<LocalTime>
localTimeFieldPanel
(Value<LocalTime> linkedValue) static NumberField.Builder<Long>
static NumberField.Builder<Long>
static MaskedTextFieldBuilder
static MaskedTextFieldBuilder
maskedTextField
(Value<String> linkedValue) static MenuBuilder
menu()
static MenuBuilder
static MenuBuilder
menu
(Controls.ControlsBuilder controlsBuilder) static <C extends JMenuItem,
B extends MenuItemBuilder<C, B>>
MenuItemBuilder<C,B> menuItem()
static <C extends JMenuItem,
B extends MenuItemBuilder<C, B>>
MenuItemBuilder<C,B> static <C extends JMenuItem,
B extends MenuItemBuilder<C, B>>
MenuItemBuilder<C,B> menuItem
(Control.Builder<?, ?> controlBuilder) static <C extends JMenuItem,
B extends MenuItemBuilder<C, B>>
MenuItemBuilder<C,B> static TemporalField.Builder<OffsetDateTime>
static TemporalField.Builder<OffsetDateTime>
offsetDateTimeField
(Value<OffsetDateTime> linkedValue) static PanelBuilder
panel()
static PanelBuilder
panel
(LayoutManager layout) static PanelBuilder
static PasswordFieldBuilder
static PasswordFieldBuilder
passwordField
(Value<String> linkedValue) static FileInputPanel.Builder<Path>
Provides builder for aPath
based file input panel.static ProgressBarBuilder
static ProgressBarBuilder
progressBar
(BoundedRangeModel boundedRangeModel) static RadioButtonBuilder
static RadioButtonBuilder
radioButton
(Value<Boolean> linkedValue) static <B extends RadioButtonMenuItemBuilder<B>>
RadioButtonMenuItemBuilder<B>static <B extends RadioButtonMenuItemBuilder<B>>
RadioButtonMenuItemBuilder<B>radioButtonMenuItem
(Value<Boolean> linkedValue) static ScrollPaneBuilder
scrollPane
(JComponent view) static NumberField.Builder<Short>
static NumberField.Builder<Short>
shortField
(Value<Short> linkedValue) static SliderBuilder
slider
(BoundedRangeModel boundedRangeModel) static SliderBuilder
slider
(BoundedRangeModel boundedRangeModel, Value<Integer> linkedValue) static SplitPaneBuilder
static <B extends TextFieldBuilder<String,
JTextField, B>>
TextFieldBuilder<String,JTextField, B> static <B extends TextFieldBuilder<String,
JTextField, B>>
TextFieldBuilder<String,JTextField, B> stringField
(Value<String> linkedValue) static TabbedPaneBuilder
static <T extends Temporal>
TemporalField.Builder<T>temporalField
(Class<T> temporalClass) static <T extends Temporal>
TemporalField.Builder<T>temporalField
(Class<T> temporalClass, Value<T> linkedValue) static <T extends Temporal>
TemporalFieldPanel.Builder<T>temporalFieldPanel
(Class<T> valueClass) static <T extends Temporal>
TemporalFieldPanel.Builder<T>temporalFieldPanel
(Class<T> valueClass, Value<T> linkedValue) static TextAreaBuilder
textArea()
static TextAreaBuilder
static <T,
C extends JTextField, B extends TextFieldBuilder<T, C, B>>
TextFieldBuilder<T,C, B> static <T,
C extends JTextField, B extends TextFieldBuilder<T, C, B>>
TextFieldBuilder<T,C, B> static TextFieldPanel.Builder
static TextFieldPanel.Builder
textFieldPanel
(Value<String> linkedValue) static <B extends ToggleButtonBuilder<JToggleButton,
B>>
ToggleButtonBuilder<JToggleButton,B> static <B extends ToggleButtonBuilder<JToggleButton,
B>>
ToggleButtonBuilder<JToggleButton,B> toggleButton
(Value<Boolean> linkedValue) static ToolBarBuilder
toolBar()
static ToolBarBuilder
static ToolBarBuilder
toolBar
(Controls.ControlsBuilder controlsBuilder)
-
Method Details
-
button
- Type Parameters:
B
- the builder type- Returns:
- a JButton builder
-
button
public static <B extends ButtonBuilder<Void,JButton, ButtonBuilder<Void,B>> JButton, buttonB> (Action action) - Type Parameters:
B
- the builder type- Parameters:
action
- the button action- Returns:
- a JButton builder
-
button
public static <B extends ButtonBuilder<Void,JButton, ButtonBuilder<Void,B>> JButton, buttonB> (Control control) - Type Parameters:
B
- the builder type- Parameters:
control
- the button control- Returns:
- a JButton builder
-
button
public static <B extends ButtonBuilder<Void,JButton, ButtonBuilder<Void,B>> JButton, buttonB> (Control.Builder<?, ?> controlBuilder) - Type Parameters:
B
- the builder type- Parameters:
controlBuilder
- the button control builder- Returns:
- a JButton builder
-
checkBox
- Returns:
- a JCheckBox builder
-
checkBox
- Parameters:
linkedValue
- the value to link to the check-box- Returns:
- a JCheckBox builder
-
radioButton
- Returns:
- a JRadioButton builder
-
radioButton
- Parameters:
linkedValue
- the value to link to the radion button- Returns:
- a JRadioButton builder
-
toggleButton
public static <B extends ToggleButtonBuilder<JToggleButton,B>> ToggleButtonBuilder<JToggleButton,B> toggleButton()- Type Parameters:
B
- the builder type- Returns:
- a JToggleButton builder
-
toggleButton
public static <B extends ToggleButtonBuilder<JToggleButton,B>> ToggleButtonBuilder<JToggleButton,B> toggleButton(Value<Boolean> linkedValue) - Type Parameters:
B
- the builder type- Parameters:
linkedValue
- the value to link to the button- Returns:
- a JToggleButton builder
-
checkBoxMenuItem
- Type Parameters:
B
- the builder type- Returns:
- a new JCheckBoxMenuItem builder
-
checkBoxMenuItem
public static <B extends CheckBoxMenuItemBuilder<B>> CheckBoxMenuItemBuilder<B> checkBoxMenuItem(Value<Boolean> linkedValue) - Type Parameters:
B
- the builder type- Parameters:
linkedValue
- the value to link to the component- Returns:
- a new JCheckBoxMenuItem builder
-
radioButtonMenuItem
public static <B extends RadioButtonMenuItemBuilder<B>> RadioButtonMenuItemBuilder<B> radioButtonMenuItem()- Type Parameters:
B
- the builder type- Returns:
- a new JRadioButtonMenuItem builder
-
radioButtonMenuItem
public static <B extends RadioButtonMenuItemBuilder<B>> RadioButtonMenuItemBuilder<B> radioButtonMenuItem(Value<Boolean> linkedValue) - Type Parameters:
B
- the builder type- Parameters:
linkedValue
- the value to link to the component- Returns:
- a new JRadioButtonMenuItem builder
-
booleanComboBox
- Returns:
- a boolean based JComboBox builder
-
booleanComboBox
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a boolean based JComboBox builder
-
booleanComboBox
public static ItemComboBoxBuilder<Boolean> booleanComboBox(FilterComboBoxModel<Item<Boolean>> comboBoxModel) - Parameters:
comboBoxModel
- the combo box model- Returns:
- a boolean based JComboBox builder
-
booleanComboBox
public static ItemComboBoxBuilder<Boolean> booleanComboBox(FilterComboBoxModel<Item<Boolean>> comboBoxModel, Value<Boolean> linkedValue) - Parameters:
comboBoxModel
- the combo box modellinkedValue
- the value to link to the component- Returns:
- a boolean based JComboBox builder
-
itemComboBox
- Type Parameters:
T
- the value type- Parameters:
comboBoxModel
- the combo box model- Returns:
- a
Item
based JComboBox builder
-
itemComboBox
public static <T> ItemComboBoxBuilder<T> itemComboBox(FilterComboBoxModel<Item<T>> comboBoxModel, Value<T> linkedValue) - Type Parameters:
T
- the value type- Parameters:
comboBoxModel
- the combo box modellinkedValue
- the value to link to the component- Returns:
- a
Item
based JComboBox builder
-
itemComboBox
- Type Parameters:
T
- the value type- Parameters:
values
- the values- Returns:
- a
Item
based JComboBox builder
-
itemComboBox
- Type Parameters:
T
- the value type- Parameters:
values
- the valueslinkedValue
- the value to link to the component- Returns:
- a
Item
based JComboBox builder
-
comboBox
public static <T,C extends JComboBox<T>, ComboBoxBuilder<T,B extends ComboBoxBuilder<T, C, B>> C, comboBoxB> (ComboBoxModel<T> comboBoxModel) - Type Parameters:
T
- the value typeC
- the component typeB
- the builder type- Parameters:
comboBoxModel
- the combo box model- Returns:
- a JComboBox builder
-
comboBox
public static <T,C extends JComboBox<T>, ComboBoxBuilder<T,B extends ComboBoxBuilder<T, C, B>> C, comboBoxB> (ComboBoxModel<T> comboBoxModel, Value<T> linkedValue) - Type Parameters:
T
- the value typeC
- the component typeB
- the builder type- Parameters:
comboBoxModel
- the combo box modellinkedValue
- the value to link to the component- Returns:
- a JComboBox builder
-
listBox
public static <T> ListBoxBuilder<T> listBox(ComponentValue<T, ? extends JComponent> itemValue, ValueSet<T> linkedValue) Creates aJComboBox
basedComponentValue
instance, represented by the items in the combo box (as opposed to the selected item). The provideditemValue
supplies new items to add to the combo box.KeyEvent.VK_INSERT
adds the current value to the listKeyEvent.VK_DELETE
deletes the selected item from the list.
- Type Parameters:
T
- the value type- Parameters:
itemValue
- the component value providing the items to addlinkedValue
- the value to link- Returns:
- a new
ComponentValue
-
temporalFieldPanel
public static <T extends Temporal> TemporalFieldPanel.Builder<T> temporalFieldPanel(Class<T> valueClass) - Type Parameters:
T
- the value type- Parameters:
valueClass
- the value class- Returns:
- a
TemporalFieldPanel
builder
-
temporalFieldPanel
public static <T extends Temporal> TemporalFieldPanel.Builder<T> temporalFieldPanel(Class<T> valueClass, Value<T> linkedValue) - Type Parameters:
T
- the value type- Parameters:
valueClass
- the value classlinkedValue
- the value to link to the component- Returns:
- a
TemporalFieldPanel
builder
-
localTimeFieldPanel
- Returns:
- a
LocalTime
basedTemporalFieldPanel
builder
-
localTimeFieldPanel
public static TemporalFieldPanel.Builder<LocalTime> localTimeFieldPanel(Value<LocalTime> linkedValue) - Parameters:
linkedValue
- the value to link to the component- Returns:
- a
LocalTime
basedTemporalFieldPanel
builder
-
localDateFieldPanel
- Returns:
- a
LocalDate
basedTemporalFieldPanel
builder
-
localDateFieldPanel
public static TemporalFieldPanel.Builder<LocalDate> localDateFieldPanel(Value<LocalDate> linkedValue) - Parameters:
linkedValue
- the value to link to the component- Returns:
- a
LocalDate
basedTemporalFieldPanel
builder
-
localDateTimeFieldPanel
- Returns:
- a
LocalDateTime
basedTemporalFieldPanel
builder
-
localDateTimeFieldPanel
public static TemporalFieldPanel.Builder<LocalDateTime> localDateTimeFieldPanel(Value<LocalDateTime> linkedValue) - Parameters:
linkedValue
- the value to link to the component- Returns:
- a
LocalDateTime
basedTemporalFieldPanel
builder
-
textFieldPanel
- Returns:
- a
TextFieldPanel
builder
-
textFieldPanel
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a
TextFieldPanel
builder
-
textArea
- Returns:
- a JTextArea builder
-
textArea
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a JTextArea builder
-
stringField
public static <B extends TextFieldBuilder<String,JTextField, TextFieldBuilder<String,B>> JTextField, stringField()B> - Type Parameters:
B
- the builder type- Returns:
- a JTextField builder
-
stringField
public static <B extends TextFieldBuilder<String,JTextField, TextFieldBuilder<String,B>> JTextField, stringFieldB> (Value<String> linkedValue) - Type Parameters:
B
- the builder type- Parameters:
linkedValue
- the value to link to the component- Returns:
- a JTextField builder
-
characterField
public static <B extends TextFieldBuilder<Character,JTextField, TextFieldBuilder<Character,B>> JTextField, characterField()B> - Type Parameters:
B
- the builder type- Returns:
- a JTextField builder
-
characterField
public static <B extends TextFieldBuilder<Character,JTextField, TextFieldBuilder<Character,B>> JTextField, characterFieldB> (Value<Character> linkedValue) - Type Parameters:
B
- the builder type- Parameters:
linkedValue
- the value to link to the component- Returns:
- a JTextField builder
-
textField
public static <T,C extends JTextField, TextFieldBuilder<T,B extends TextFieldBuilder<T, C, B>> C, textFieldB> (Class<T> valueClass) - Type Parameters:
T
- the value typeC
- the text field typeB
- the builder type- Parameters:
valueClass
- the value class- Returns:
- a JTextField builder
-
textField
public static <T,C extends JTextField, TextFieldBuilder<T,B extends TextFieldBuilder<T, C, B>> C, textFieldB> (Class<T> valueClass, Value<T> linkedValue) - Type Parameters:
T
- the value typeC
- the text field typeB
- the builder type- Parameters:
valueClass
- the value classlinkedValue
- the value to link to the component- Returns:
- a JTextField builder
-
localTimeField
- Returns:
- a
LocalTime
basedTemporalField
builder
-
localTimeField
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a
LocalTime
basedTemporalField
builder
-
localDateField
- Returns:
- a
LocalDate
basedTemporalField
builder
-
localDateField
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a
LocalDate
basedTemporalField
builder
-
localDateTimeField
- Returns:
- a
LocalDateTime
basedTemporalField
builder
-
localDateTimeField
public static TemporalField.Builder<LocalDateTime> localDateTimeField(Value<LocalDateTime> linkedValue) - Parameters:
linkedValue
- the value to link to the component- Returns:
- a
LocalDateTime
basedTemporalField
builder
-
offsetDateTimeField
- Returns:
- a
OffsetDateTime
basedTemporalField
builder
-
offsetDateTimeField
public static TemporalField.Builder<OffsetDateTime> offsetDateTimeField(Value<OffsetDateTime> linkedValue) - Parameters:
linkedValue
- the value to link to the component- Returns:
- a
OffsetDateTime
basedTemporalField
builder
-
temporalField
- Type Parameters:
T
- the temporal type- Parameters:
temporalClass
- the temporal class- Returns:
- a
TemporalField
builder
-
temporalField
public static <T extends Temporal> TemporalField.Builder<T> temporalField(Class<T> temporalClass, Value<T> linkedValue) - Type Parameters:
T
- the temporal type- Parameters:
temporalClass
- the temporal classlinkedValue
- the value to link to the component- Returns:
- a
TemporalField
builder
-
shortField
- Returns:
- a Short based
NumberField
builder
-
shortField
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a Short based
NumberField
builder
-
integerField
- Returns:
- a Integer based
NumberField
builder
-
integerField
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a Integer based
NumberField
builder
-
longField
- Returns:
- a Long based
NumberField
builder
-
longField
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a Long based
NumberField
builder
-
doubleField
- Returns:
- a Double based
NumberField
builder
-
doubleField
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a Double based
NumberField
builder
-
bigDecimalField
- Returns:
- a BigDecimal based
NumberField
builder
-
bigDecimalField
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a BigDecimal based
NumberField
builder
-
maskedTextField
- Returns:
- a JFormattedTextField builder
-
maskedTextField
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a JFormattedTextField builder
-
passwordField
- Returns:
- a JPasswordField builder
-
passwordField
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a JPasswordField builder
-
doubleSpinner
- Returns:
- a Double based JSpinner builder
-
doubleSpinner
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a Double based JSpinner builder
-
doubleSpinner
- Parameters:
spinnerNumberModel
- the spinner model- Returns:
- a Double based JSpinner builder
-
doubleSpinner
public static NumberSpinnerBuilder<Double> doubleSpinner(SpinnerNumberModel spinnerNumberModel, Value<Double> linkedValue) - Parameters:
spinnerNumberModel
- the spinner modellinkedValue
- the value to link to the component- Returns:
- a Double based JSpinner builder
-
integerSpinner
- Returns:
- a Integer based JSpinner builder
-
integerSpinner
- Parameters:
linkedValue
- the value to link to the component- Returns:
- a Integer based JSpinner builder
-
integerSpinner
- Parameters:
spinnerNumberModel
- the spinner model- Returns:
- a Integer based JSpinner builder
-
integerSpinner
public static NumberSpinnerBuilder<Integer> integerSpinner(SpinnerNumberModel spinnerNumberModel, Value<Integer> linkedValue) - Parameters:
spinnerNumberModel
- the spinner modellinkedValue
- the value to link to the component- Returns:
- a Integer based JSpinner builder
-
listSpinner
- Type Parameters:
T
- the value type- Parameters:
spinnerModel
- the spinner model- Returns:
- a JSpinner builder
-
listSpinner
public static <T> ListSpinnerBuilder<T> listSpinner(SpinnerListModel spinnerModel, Value<T> linkedValue) - Type Parameters:
T
- the value type- Parameters:
spinnerModel
- the spinner modellinkedValue
- the value to link to the component- Returns:
- a JSpinner builder
-
itemSpinner
- Type Parameters:
T
- the value type- Parameters:
spinnerModel
- the spinner model- Returns:
- a JSpinner builder
-
itemSpinner
public static <T> ItemSpinnerBuilder<T> itemSpinner(SpinnerListModel spinnerModel, Value<T> linkedValue) - Type Parameters:
T
- the value type- Parameters:
spinnerModel
- the spinner modellinkedValue
- the value to link to the component- Returns:
- a JSpinner builder
-
slider
- Parameters:
boundedRangeModel
- the slider model- Returns:
- a JSlider builder
-
slider
- Parameters:
boundedRangeModel
- the slider modellinkedValue
- the value to link to the component- Returns:
- a JSlider builder
-
list
- Type Parameters:
T
- the list value type- Parameters:
listModel
- the list model to base the list on- Returns:
- a new list builder factory
-
label
- Type Parameters:
T
- the type to display in the label (using value.toString() or "" for null).- Returns:
- a JLabel builder
-
label
- Type Parameters:
T
- the type to display in the label (using value.toString() or "" for null).- Parameters:
linkedValueObserver
- the value observer to link to the label text- Returns:
- a JLabel builder
-
label
- Type Parameters:
T
- the type to display in the label (using value.toString() or "" for null).- Parameters:
icon
- the label icon- Returns:
- a JLabel builder
-
label
- Parameters:
text
- the label text- Returns:
- a JLabel builder
-
panel
- Returns:
- a JPanel builder
-
panel
- Parameters:
layout
- the panel layout manager- Returns:
- a JPanel builder
-
panel
- Parameters:
panel
- the panel to configure- Returns:
- a JPanel builder
-
tabbedPane
- Returns:
- a JTabbedPane builder
-
splitPane
- Returns:
- a JSplitPane builder
-
scrollPane
- Parameters:
view
- the view component- Returns:
- a JScrollPane builder
-
progressBar
- Returns:
- an indeterminate JProgressBar builder
-
progressBar
- Parameters:
boundedRangeModel
- the model- Returns:
- a JProgressBar builder
-
pathInputPanel
Provides builder for aPath
based file input panel.- Returns:
- a
FileInputPanel
builder
-
byteArrayInputPanel
Provides builder for a byte array based file input panel.- Returns:
- a
FileInputPanel
builder
-
toolBar
- Returns:
- a
JToolBar
builder
-
toolBar
- Parameters:
controls
- the Controls- Returns:
- a
JToolBar
builder
-
toolBar
- Parameters:
controlsBuilder
- theControls.ControlsBuilder
- Returns:
- a
JToolBar
builder
-
buttonPanel
- Returns:
- a button panel builder
-
buttonPanel
- Parameters:
actions
- the actions- Returns:
- a button panel builder
-
buttonPanel
- Parameters:
controls
- the Controls- Returns:
- a button panel builder
-
buttonPanel
- Parameters:
controlsBuilder
- theControls.ControlsBuilder
- Returns:
- a button panel builder
-
borderLayoutPanel
Creates a newBorderLayoutPanelBuilder
instance using a newBorderLayout
instance with the default horizontal and vertical gap.- Returns:
- a border layout panel builder
- See Also:
-
borderLayoutPanel
- Parameters:
layout
- the layout to use- Returns:
- a new border layout panel builder
-
gridLayoutPanel
Creates a newPanelBuilder
instance using a newGridLayout
with the default horizontal and vertical gap.- Parameters:
rows
- the number of rowscolumns
- the number of columns- Returns:
- a grid layout panel builder
- See Also:
-
flexibleGridLayoutPanel
Creates a newPanelBuilder
instance using a newFlexibleGridLayout
with the default horizontal and vertical gap.- Parameters:
rows
- the number of rowscolumns
- the number of columns- Returns:
- a flexible grid layout panel builder
- See Also:
-
flowLayoutPanel
Creates a newPanelBuilder
instance using a newFlowLayout
with the default horizontal and vertical gap.- Parameters:
alignment
- the flow layout alignment- Returns:
- a flow layout panel builder
- See Also:
-