public final class ControlProvider
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static javax.swing.JMenuBar |
addControlSetToMenuBar(javax.swing.JMenuBar menuBar,
ControlSet controlSet) |
static javax.swing.JCheckBox |
createCheckBox(Controls.ToggleControl toggleControl)
Creates a JCheckBox based on the given toggle control
|
static javax.swing.JCheckBoxMenuItem |
createCheckBoxMenuItem(Controls.ToggleControl toggleControl) |
static javax.swing.JPanel |
createHorizontalButtonPanel(ControlSet controlSet)
Creates a horizontally laid out panel of buttons from a control set
|
static void |
createHorizontalButtonPanel(javax.swing.JPanel panel,
ControlSet controlSet)
Creates a horizontally laid out panel of buttons from a control set and adds it to the panel
|
static javax.swing.JMenu |
createMenu(ControlSet controlSet)
Creates a menu from the given controls
|
static javax.swing.JMenuBar |
createMenuBar(ControlSet controlSet) |
static javax.swing.JMenuBar |
createMenuBar(java.util.List<ControlSet> controlSets) |
static javax.swing.JPopupMenu |
createPopupMenu(ControlSet controlSet)
Creates a popup menu from the given controls
|
static javax.swing.JRadioButtonMenuItem |
createRadioButtonMenuItem(Controls.ToggleControl toggleControl) |
static javax.swing.JToggleButton |
createToggleButton(Controls.ToggleControl toggleControl)
Creates a JToggleButton based on the given toggle control
|
static javax.swing.JToggleButton |
createToggleButton(Controls.ToggleControl toggleControl,
boolean includeCaption)
Creates a JToggleButton based on the given toggle control
|
static javax.swing.JToolBar |
createToolbar(ControlSet controlSet,
int orientation) |
static void |
createToolbar(javax.swing.JToolBar toolBar,
ControlSet controlSet)
Adds the given controls to the given tool bar
|
static javax.swing.JPanel |
createVerticalButtonPanel(ControlSet controlSet)
Creates a vertically laid out panel of buttons from a control set
|
static void |
createVerticalButtonPanel(javax.swing.JPanel panel,
ControlSet controlSet)
Creates a vertically laid out panel of buttons from a control set and adds it to the panel
|
public static void createVerticalButtonPanel(javax.swing.JPanel panel, ControlSet controlSet)
panel
- the panelcontrolSet
- the control setpublic static javax.swing.JPanel createVerticalButtonPanel(ControlSet controlSet)
controlSet
- the control setpublic static void createHorizontalButtonPanel(javax.swing.JPanel panel, ControlSet controlSet)
panel
- the panelcontrolSet
- the control setpublic static javax.swing.JPanel createHorizontalButtonPanel(ControlSet controlSet)
controlSet
- the control setpublic static javax.swing.JPopupMenu createPopupMenu(ControlSet controlSet)
controlSet
- the control setpublic static javax.swing.JMenu createMenu(ControlSet controlSet)
controlSet
- the control setpublic static javax.swing.JCheckBoxMenuItem createCheckBoxMenuItem(Controls.ToggleControl toggleControl)
toggleControl
- the toggle controlpublic static javax.swing.JRadioButtonMenuItem createRadioButtonMenuItem(Controls.ToggleControl toggleControl)
toggleControl
- the toggle controlpublic static javax.swing.JToolBar createToolbar(ControlSet controlSet, int orientation)
controlSet
- the controlsorientation
- the toolbar orientationpublic static void createToolbar(javax.swing.JToolBar toolBar, ControlSet controlSet)
toolBar
- the toolbar to add the controls tocontrolSet
- the controlspublic static javax.swing.JMenuBar createMenuBar(java.util.List<ControlSet> controlSets)
controlSets
- the controlspublic static javax.swing.JMenuBar createMenuBar(ControlSet controlSet)
controlSet
- the controlspublic static javax.swing.JMenuBar addControlSetToMenuBar(javax.swing.JMenuBar menuBar, ControlSet controlSet)
menuBar
- the menubar to add the controls tocontrolSet
- the controlspublic static javax.swing.JCheckBox createCheckBox(Controls.ToggleControl toggleControl)
toggleControl
- the toggle controlpublic static javax.swing.JToggleButton createToggleButton(Controls.ToggleControl toggleControl)
toggleControl
- the toggle controlpublic static javax.swing.JToggleButton createToggleButton(Controls.ToggleControl toggleControl, boolean includeCaption)
toggleControl
- the toggle controlincludeCaption
- if true a caption is included