public class DefaultUsabilitySwingManager extends Object implements UsabilitySwingManager
UsabilitySwingManager.| Constructor and Description |
|---|
DefaultUsabilitySwingManager() |
| Modifier and Type | Method and Description |
|---|---|
JPanel |
createGridBagRowPanel(JPanel gridBagPanel,
Component labelComponent,
Component fieldComponent,
Integer labelMargin,
Integer fieldMargin) |
Component |
createJBlank(int width,
int height)
Creates a JBlank panel
|
JButton |
createJButton()
Creates a button with no set text or icon.
|
JButton |
createJButton(Action action)
Creates a button where properties are taken from the
Action
supplied. |
JButton |
createJButton(Icon icon)
Creates a button with an icon.
|
JButton |
createJButton(String text)
Creates a button with text.
|
JButton |
createJButton(String text,
Icon icon)
Creates a button with initial text and icon.
|
JSpinner |
createJNullSpinner(int dataType,
Object value)
Creates a spinner component that allows null values.
|
JSpinner |
createJNullSpinner(int dataType,
Object value,
int defaultMaximumWidth)
Creates a spinner component that allows null values.
|
JTextArea |
createJTextArea(String text)
Creates a text area.
|
JTextArea |
createJTextArea(String text,
int maxWidth)
Creates a text area with a default maximum width.
|
JButton |
createJToolButton(String text)
Creates a tool button with text.
|
DefaultDynFieldEditor |
createNullSpinnerEditor(FocusListener listener,
DynField dynField,
Locale locale) |
Border |
setLightMarkedBorder(JComponent component)
Sets a new marked border returning the older border settings.
|
Border |
setLightMarkedBorder(JComponent component,
int thickness,
Color color)
Sets a new marked border returning the older border settings.
|
public JPanel createGridBagRowPanel(JPanel gridBagPanel, Component labelComponent, Component fieldComponent, Integer labelMargin, Integer fieldMargin)
public JButton createJButton()
UsabilitySwingManagercreateJButton in interface UsabilitySwingManagerpublic JButton createJButton(Action action)
UsabilitySwingManagerAction
supplied.createJButton in interface UsabilitySwingManageraction - the Action used to specify the new button.public JButton createJButton(Icon icon)
UsabilitySwingManagercreateJButton in interface UsabilitySwingManagericon - the Icon image to display on the button.public JButton createJButton(String text)
UsabilitySwingManagercreateJButton in interface UsabilitySwingManagertext - the text of the button.public JButton createJButton(String text, Icon icon)
UsabilitySwingManagercreateJButton in interface UsabilitySwingManagertext - the text of the button.icon - the Icon image to display on the button.public JButton createJToolButton(String text)
UsabilitySwingManagercreateJToolButton in interface UsabilitySwingManagertext - the text of the tool button.public Border setLightMarkedBorder(JComponent component)
component - public Border setLightMarkedBorder(JComponent component, int thickness, Color color)
component - public JTextArea createJTextArea(String text)
UsabilitySwingManagercreateJTextArea in interface UsabilitySwingManagertext - the text componentpublic JTextArea createJTextArea(String text, int maxWidth)
UsabilitySwingManagercreateJTextArea in interface UsabilitySwingManagertext - the text componentpublic JSpinner createJNullSpinner(int dataType, Object value, int defaultMaximumWidth)
UsabilitySwingManagercreateJNullSpinner in interface UsabilitySwingManagervalue - the initial valuepublic JSpinner createJNullSpinner(int dataType, Object value)
UsabilitySwingManagercreateJNullSpinner in interface UsabilitySwingManagervalue - the initial valuepublic DefaultDynFieldEditor createNullSpinnerEditor(FocusListener listener, DynField dynField, Locale locale)
createNullSpinnerEditor in interface UsabilitySwingManagerpublic Component createJBlank(int width, int height)
UsabilitySwingManagercreateJBlank in interface UsabilitySwingManager