|
Nengo.ca | ||||||||
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.UnitsHandler
public class UnitsHandler
ConfigurationHandler for Units values.
Constructor Summary | |
---|---|
UnitsHandler()
ConfigurationHandler for Units values. |
Method Summary | |
---|---|
java.lang.Object |
fromString(java.lang.String s)
|
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, getRenderer, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnitsHandler()
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 completeparent
- Parent component
ConfigurationHandler.getEditor(java.lang.Object, ConfigurationChangeListener, JComponent)
public java.lang.Object fromString(java.lang.String s)
fromString
in interface ConfigurationHandler
fromString
in class BaseHandler
s
- A String representation of an object, eg from toString(o) or user
input
ConfigurationHandler.fromString(java.lang.String)
public java.lang.Object getDefaultValue(java.lang.Class<?> c)
c
- A class for which canHandle(c) == true
ConfigurationHandler.getDefaultValue(java.lang.Class)
|
Nengo.ca | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |