Modifier and Type | Class and Description |
---|---|
pack-priv static class | |
public static class | BasicComboBoxEditor.
A subclass of BasicComboBoxEditor that implements UIResource. |
Modifier and Type | Field and Description |
---|---|
protected JTextField | editor
An instance of |
private Object |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | addActionListener(ActionListener
an l)ActionListener Implements javax. |
protected JTextField | |
public void | focusGained(FocusEvent
the event to be processed e)Implements java. |
public void | focusLost(FocusEvent
the event to be processed e)Implements java. |
public Component | getEditorComponent()
Implements javax. |
public Object | |
public void | removeActionListener(ActionListener
an l)ActionListener Implements javax. |
public void | selectAll()
Implements javax. |
public void | setItem(Object
the displayed value of the editor anObject)Implements javax. |
editor | back to summary |
---|---|
protected JTextField editor An instance of |
oldValue | back to summary |
---|---|
private Object oldValue |
BasicComboBoxEditor | back to summary |
---|---|
public BasicComboBoxEditor() Constructs a new instance of |
addActionListener | back to summary |
---|---|
public void addActionListener(ActionListener l) Implements javax. Doc from javax. Add an ActionListener. An action event is generated when the edited item changes
|
createEditorComponent | back to summary |
---|---|
protected JTextField createEditorComponent() Creates the internal editor component. Override this to provide a custom implementation.
|
focusGained | back to summary |
---|---|
public void focusGained(FocusEvent e) Implements java. Doc from java. Invoked when a component gains the keyboard focus.
|
focusLost | back to summary |
---|---|
public void focusLost(FocusEvent e) Implements java. Doc from java. Invoked when a component loses the keyboard focus.
|
getEditorComponent | back to summary |
---|---|
public Component getEditorComponent() Implements javax. Doc from javax. Returns the component that should be added to the tree hierarchy for this editor
|
getItem | back to summary |
---|---|
public Object getItem() Implements javax. Doc from javax. Returns the edited item
|
removeActionListener | back to summary |
---|---|
public void removeActionListener(ActionListener l) Implements javax. Doc from javax. Remove an ActionListener
|
selectAll | back to summary |
---|---|
public void selectAll() Implements javax. Doc from javax. Ask the editor to start editing and to select everything |
setItem | back to summary |
---|---|
public void setItem(Object anObject) Implements javax. Sets the item that should be edited.
|
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | setBorder(Border
the border to be rendered for this component b)Overrides javax. |
public void | setText(String
the new text to be set s)Overrides javax. TextComponent
to the specified text.
|
BorderlessTextField | back to summary |
---|---|
public BorderlessTextField(String value, int n) |
setBorder | back to summary |
---|---|
public void setBorder(Border b) Overrides javax. Doc from javax. Sets the border of this component. The
Although technically you can set the border on any object
that inherits from This is a bound property.
|
setText | back to summary |
---|---|
public void setText(String s) Overrides javax. Doc from javax. Sets the text of this
Note that text is not a bound property, so no
|
Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans
package.
Please see java.
.
Access | Constructor and Description |
---|---|
public |
UIResource | back to summary |
---|---|
public UIResource() Constructs a |