public abstract class MatrixHandlerBase extends BaseHandler
Constructor and Description |
---|
MatrixHandlerBase(java.lang.Class<?> c)
Base class for ConfigurationHandlers that deal with 2D arrays
|
Modifier and Type | Method and Description |
---|---|
abstract MatrixEditor |
CreateMatrixEditor(java.lang.Object o,
ConfigurationChangeListener configListener) |
java.awt.Component |
getEditor(java.lang.Object o,
ConfigurationChangeListener configListener,
javax.swing.JComponent parent)
Returns a JTextField.
|
canHandle, fromString, getRenderer, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultValue
public MatrixHandlerBase(java.lang.Class<?> c)
c
- Class being configuredpublic abstract MatrixEditor CreateMatrixEditor(java.lang.Object o, ConfigurationChangeListener configListener)
o
- Object being configuredconfigListener
- Listener for configuration changespublic final java.awt.Component getEditor(java.lang.Object o, ConfigurationChangeListener configListener, javax.swing.JComponent parent)
BaseHandler
getEditor
in interface ConfigurationHandler
getEditor
in class BaseHandler
o
- An object for which canHandle(o.getClass()) == trueconfigListener
- An ActionListener. The returned editor component must 1) add this listener
to the part of itself that produces an event when editing is complete, and 2) call
setProxy() with an EditorProxy through which the listener can retrieve a
new object value when editing is completeparent
- Parent componentConfigurationHandler.getEditor(java.lang.Object, ConfigurationChangeListener, JComponent)