|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.nengo.config.handlers.BaseHandler
ca.nengo.config.handlers.BooleanHandler
public class BooleanHandler
ConfigurationHandler for Boolean values.
Constructor Summary | |
---|---|
BooleanHandler()
|
Method Summary | |
---|---|
java.lang.Object |
getDefaultValue(java.lang.Class<?> c)
|
java.awt.Component |
getEditor(java.lang.Object o,
ConfigurationChangeListener listener,
javax.swing.JComponent parent)
Returns a JTextField. |
Methods inherited from class ca.nengo.config.handlers.BaseHandler |
---|
canHandle, fromString, getRenderer, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BooleanHandler()
Method Detail |
---|
public java.awt.Component getEditor(java.lang.Object o, ConfigurationChangeListener listener, javax.swing.JComponent parent)
BaseHandler
getEditor
in interface ConfigurationHandler
getEditor
in class BaseHandler
o
- An object for which canHandle(o.getClass()) == truelistener
- 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 complete
ca.nengo.config.ConfigurationHandler#getEditor(java.lang.Object, ConfigurationChangeListener)
public java.lang.Object getDefaultValue(java.lang.Class<?> c)
c
- A class for which canHandle(c) == true
ConfigurationHandler.getDefaultValue(java.lang.Class)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |