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