Skip navigation links
oracle.ide.inspector.editor
Class ExtendedTextFieldEditorFactory
java.lang.Object
oracle.bali.inspector.editor.EditorComponentFactory
oracle.bali.inspector.editor.TextFieldEditorFactory
oracle.ide.inspector.editor.ExtendedTextFieldEditorFactory
-
public final class ExtendedTextFieldEditorFactory
- extends oracle.bali.inspector.editor.TextFieldEditorFactory
Creates a new ExtendedTextField
to be used as an inline editor for the Property Inspector. The created editor has already listeners for:
- Notification that the value of this editor should be applied if the user types text and presses "Enter"
- Notification that the value of this editor should be applied if the user types text and sets the focus to other GUI component
- Cancels edition in this editor if the user presses "Escape"
Method Summary |
boolean |
canCreateEditorFrom(java.lang.Object creationInfo)
Indicates that this factory can only create editors if the given object is a String or null . |
ExtendedTextField |
createInlineEditor(oracle.bali.inspector.PropertyEditorFactory2 propertyEditor)
Creates a ExtendedTextField with the following listeners: Notification that the value of this editor should be applied if the user types text and presses "Enter" Notification that the value of this editor should be applied if the user types text and sets the focus to other GUI component Cancels edition in this editor if the user presses "Escape" |
protected javax.swing.JTextField |
textField(java.awt.Component c, java.lang.String initialValue, oracle.bali.inspector.PropertyEditorFactory2 propertyEditor)
|
protected ExtendedTextField |
textField(java.lang.String initialValue)
|
javax.swing.JTextField |
updateInlineEditor(java.awt.Component current, oracle.bali.inspector.PropertyEditorFactory2 propertyEditor)
|
Methods inherited from class oracle.bali.inspector.editor.TextFieldEditorFactory |
isNullOrString |
Methods inherited from class oracle.bali.inspector.editor.EditorComponentFactory |
initialValueFrom |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtendedTextFieldEditorFactory
public ExtendedTextFieldEditorFactory()
canCreateEditorFrom
public boolean canCreateEditorFrom(java.lang.Object creationInfo)
- Indicates that this factory can only create editors if the given object is a
String
or null
.
-
- Overrides:
canCreateEditorFrom
in class oracle.bali.inspector.editor.TextFieldEditorFactory
-
- Parameters:
creationInfo
- contains information about the editor to create.
- Returns:
true
if the given object is a String
or null
, false
otherwise.
createInlineEditor
public ExtendedTextField createInlineEditor(oracle.bali.inspector.PropertyEditorFactory2 propertyEditor)
- Creates a
ExtendedTextField
with the following listeners:
- Notification that the value of this editor should be applied if the user types text and presses "Enter"
- Notification that the value of this editor should be applied if the user types text and sets the focus to other GUI component
- Cancels edition in this editor if the user presses "Escape"
-
- Overrides:
createInlineEditor
in class oracle.bali.inspector.editor.TextFieldEditorFactory
-
- Parameters:
propertyEditor
- the property editor containing the value of the property to be displayed in the created inline editor.
- Returns:
- the created inline editor.
updateInlineEditor
public javax.swing.JTextField updateInlineEditor(java.awt.Component current,
oracle.bali.inspector.PropertyEditorFactory2 propertyEditor)
-
- Overrides:
updateInlineEditor
in class oracle.bali.inspector.editor.TextFieldEditorFactory
textField
protected javax.swing.JTextField textField(java.awt.Component c,
java.lang.String initialValue,
oracle.bali.inspector.PropertyEditorFactory2 propertyEditor)
-
- Overrides:
textField
in class oracle.bali.inspector.editor.TextFieldEditorFactory
textField
protected ExtendedTextField textField(java.lang.String initialValue)
-
- Overrides:
textField
in class oracle.bali.inspector.editor.TextFieldEditorFactory
Skip navigation links
Copyright © 1997, 2015, Oracle. All rights reserved.