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()
UsabilitySwingManagercreateJButton in interface UsabilitySwingManagerpublic javax.swing.JButton createJButton(javax.swing.Action action)
UsabilitySwingManagerAction
supplied.createJButton in interface UsabilitySwingManageraction - the Action used to specify the new button.public javax.swing.JButton createJButton(javax.swing.Icon icon)
UsabilitySwingManagercreateJButton in interface UsabilitySwingManagericon - the Icon image to display on the button.public javax.swing.JButton createJButton(java.lang.String text)
UsabilitySwingManagercreateJButton in interface UsabilitySwingManagertext - the text of the button.public javax.swing.JButton createJButton(java.lang.String text,
javax.swing.Icon icon)
UsabilitySwingManagercreateJButton in interface UsabilitySwingManagertext - the text of the button.icon - the Icon image to display on the button.public javax.swing.JButton createJToolButton(java.lang.String text)
UsabilitySwingManagercreateJToolButton in interface UsabilitySwingManagertext - 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)
UsabilitySwingManagercreateJTextArea in interface UsabilitySwingManagertext - the text componentpublic javax.swing.JTextArea createJTextArea(java.lang.String text,
int maxWidth)
UsabilitySwingManagercreateJTextArea in interface UsabilitySwingManagertext - the text componentpublic javax.swing.JSpinner createJNullSpinner(int dataType,
java.lang.Object value,
int defaultMaximumWidth)
UsabilitySwingManagercreateJNullSpinner in interface UsabilitySwingManagervalue - the initial valuepublic javax.swing.JSpinner createJNullSpinner(int dataType,
java.lang.Object value)
UsabilitySwingManagercreateJNullSpinner in interface UsabilitySwingManagervalue - the initial valuepublic DefaultDynFieldEditor createNullSpinnerEditor(java.awt.event.FocusListener listener, DynField dynField, java.util.Locale locale)
createNullSpinnerEditor in interface UsabilitySwingManagerpublic java.awt.Component createJBlank(int width,
int height)
UsabilitySwingManagercreateJBlank in interface UsabilitySwingManager