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()
UsabilitySwingManager
createJButton
in interface UsabilitySwingManager
public JButton createJButton(Action action)
UsabilitySwingManager
Action
supplied.createJButton
in interface UsabilitySwingManager
action
- the Action
used to specify the new button.public JButton createJButton(Icon icon)
UsabilitySwingManager
createJButton
in interface UsabilitySwingManager
icon
- the Icon image to display on the button.public JButton createJButton(String text)
UsabilitySwingManager
createJButton
in interface UsabilitySwingManager
text
- the text of the button.public JButton createJButton(String text, Icon icon)
UsabilitySwingManager
createJButton
in interface UsabilitySwingManager
text
- the text of the button.icon
- the Icon image to display on the button.public JButton createJToolButton(String text)
UsabilitySwingManager
createJToolButton
in interface UsabilitySwingManager
text
- 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)
UsabilitySwingManager
createJTextArea
in interface UsabilitySwingManager
text
- the text componentpublic JTextArea createJTextArea(String text, int maxWidth)
UsabilitySwingManager
createJTextArea
in interface UsabilitySwingManager
text
- the text componentpublic JSpinner createJNullSpinner(int dataType, Object value, int defaultMaximumWidth)
UsabilitySwingManager
createJNullSpinner
in interface UsabilitySwingManager
value
- the initial valuepublic JSpinner createJNullSpinner(int dataType, Object value)
UsabilitySwingManager
createJNullSpinner
in interface UsabilitySwingManager
value
- the initial valuepublic DefaultDynFieldEditor createNullSpinnerEditor(FocusListener listener, DynField dynField, Locale locale)
createNullSpinnerEditor
in interface UsabilitySwingManager
public Component createJBlank(int width, int height)
UsabilitySwingManager
createJBlank
in interface UsabilitySwingManager