javax.swing
public static class JSpinner.DefaultEditor extends JPanel implements ChangeListener, PropertyChangeListener, LayoutManager
| Constructor Summary | |
|---|---|
| DefaultEditor(JSpinner spinner)
Creates a new DefaultEditor object. | |
| Method Summary | |
|---|---|
| void | addLayoutComponent(String name, Component child)
This method does nothing. |
| void | commitEdit()
DOCUMENT ME! |
| void | dismiss(JSpinner spinner)
Removes the editor from the {@link ChangeListener} list maintained by
the specified spinner.
|
| JSpinner | getSpinner()
Returns the JSpinner component that the editor is assigned
to.
|
| JFormattedTextField | getTextField()
Returns the text field used to display and edit the current value in
the spinner.
|
| void | layoutContainer(Container parent)
Sets the bounds for the child components in this container. |
| Dimension | minimumLayoutSize(Container parent)
Calculates the minimum size for this component. |
| Dimension | preferredLayoutSize(Container parent)
Calculates the preferred size for this component. |
| void | propertyChange(PropertyChangeEvent event)
Receives notification of property changes. |
| void | removeLayoutComponent(Component child)
This method does nothing. |
| void | stateChanged(ChangeEvent event)
Receives notification of changes in the state of the {@link JSpinner}
that the editor belongs to - the content of the text field is updated
accordingly.
|
DefaultEditor object. The editor is
registered with the spinner as a {@link ChangeListener} here.
Parameters: spinner the JSpinner associated with this editor
Parameters: name the name. child the child component to add.
spinner.
Parameters: spinner the spinner (null not permitted).
JSpinner component that the editor is assigned
to.
Returns: The spinner that the editor is assigned to.
Returns: The text field.
Parameters: parent the parent container.
Parameters: parent the parent container.
Returns: The minimum size.
Parameters: parent the parent container.
Returns: The preferred size.
Parameters: event the event.
Parameters: child the child component to remove.
Parameters: event the change event.