Class symantec.itools.db.swing.editors.JDBToolBarModelEditor
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.swing.editors.JDBToolBarModelEditor
Object
|
+----Component
|
+----Container
|
+----Panel
|
+----CustomOverrideEditorSupport
|
+----CustomOverrideVObjEditorSupport
|
+----symantec.itools.db.swing.editors.JDBToolBarModelEditor
- public class JDBToolBarModelEditor
- extends CustomOverrideVObjEditorSupport
- implements PropertyChangeListener, ListChooserEventListener
DBToolbarClassicStyleEditor is the property editor
used for editing the DbFunction buttons
- Version:
- 1.0 07/18/98
- Author:
- Adrian Diaconescu
-
customEditor
-
-
dbFunction
- The value we will be editing.
-
jRootPane
-
-
symantec.itools.db.swing.editors.JDBToolBarModelEditor()
- Default constructor
-
addPropertyChangeListener(PropertyChangeListener)
- Register a listener for the PropertyChange event.
-
cancelPressed()
- The derived class should override this method.
-
getAsText()
-
-
getCustomEditor()
- A PropertyEditor may choose to make available a full custom Component
that edits its property value.
-
getJavaInitializationString()
- This method is intended for use when generating Java code to set
the value of the property.
-
getValue()
-
-
handleEvent(ListChooserEvent)
-
-
helpPressed()
- The derived class should override this method.
-
okPressed()
- The derived class should override this method.
-
propertyChange(PropertyChangeEvent)
-
-
removePropertyChangeListener(PropertyChangeListener)
- Remove a listener for the PropertyChange event.
-
setAsText(String)
- Set the property value by parsing a given String.
-
setValue(Object)
- Set (or change) the object that is to be edited.
-
supportsCustomEditor()
-
customEditor
protected java.awt.Panel customEditor
dbFunction
protected java.lang.String[] dbFunction
- The value we will be editing.
jRootPane
protected com.sun.java.swing.JRootPane jRootPane
JDBToolBarModelEditor
public JDBToolBarModelEditor()
- Default constructor
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
- Register a listener for the PropertyChange event.
- Overrides:
- addPropertyChangeListener in class CustomOverrideEditorSupport
cancelPressed
public void cancelPressed()
- The derived class should override this method.
and at the end of the overriden method super.cancelPressed()
should be called.
- Overrides:
- cancelPressed in class CustomOverrideEditorSupport
getAsText
public java.lang.String getAsText()
-
- Returns:
- The property value as a string suitable for presentation
to a human to edit.
Returns "null" is the value can't be expressed as a string.
If a non-null value is returned, then the PropertyEditor should
be prepared to parse that string back in setAsText().
- Overrides:
- getAsText in class CustomOverrideEditorSupport
getCustomEditor
public java.awt.Component getCustomEditor()
- A PropertyEditor may choose to make available a full custom Component
that edits its property value. It is the responsibility of the
PropertyEditor to hook itself up to its editor Component itself and
to report property value changes by firing a PropertyChange event.
The higher-level code that calls getCustomEditor may either embed
the Component in some larger property sheet, or it may put it in
its own individual dialog, or ...
- Returns:
- A java.awt.Component that will allow a human to directly
edit the current property value. May be null if this is
not supported.
- Overrides:
- getCustomEditor in class CustomOverrideEditorSupport
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- This method is intended for use when generating Java code to set
the value of the property. It should return a fragment of Java code
that can be used to initialize a variable with the current property
value.
Example results are "2", "new Color(127,127,34)", "Color.orange", etc.
- Returns:
- A fragment of Java code representing an initializer for the
current value.
- Overrides:
- getJavaInitializationString in class CustomOverrideEditorSupport
getValue
public java.lang.Object getValue()
-
- Overrides:
- getValue in class CustomOverrideEditorSupport
handleEvent
public void handleEvent(ListChooserEvent e)
helpPressed
public void helpPressed()
- The derived class should override this method.
- Overrides:
- helpPressed in class CustomOverrideEditorSupport
okPressed
public void okPressed()
- The derived class should override this method.
and at the end of the overriden method super.okPressed()
should be called.
- Overrides:
- okPressed in class CustomOverrideEditorSupport
propertyChange
public void propertyChange(PropertyChangeEvent evt)
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
- Remove a listener for the PropertyChange event.
- Overrides:
- removePropertyChangeListener in class CustomOverrideEditorSupport
setAsText
public void setAsText(String val)
- Set the property value by parsing a given String.
- Overrides:
- setAsText in class CustomOverrideEditorSupport
setValue
public void setValue(Object newValue)
- Set (or change) the object that is to be edited.
- Overrides:
- setValue in class CustomOverrideEditorSupport
supportsCustomEditor
public boolean supportsCustomEditor()
-
- Returns:
- True if the propertyEditor can provide a custom editor.
- Overrides:
- supportsCustomEditor in class CustomOverrideEditorSupport
All Packages Class Hierarchy This Package Previous Next Index