com.moneydance.apps.md.extensionapi
Class EditorField

java.lang.Object
  extended by com.moneydance.apps.md.extensionapi.EditorField

public abstract class EditorField
extends java.lang.Object

An AccountEditorField represents one pairing of a label and an entry field (checkbox, text field, etc).

Since:
build 567.

Constructor Summary
EditorField(java.lang.Object label, javax.swing.JComponent field)
           
 
Method Summary
 javax.swing.JComponent getField()
          Return the GUI component that allows the user to edit a value
 java.lang.Object getLabel()
          Get the label that is to be applied to the editor field.
abstract  void saveEdits()
          Called when the editor should save the value from the field to the model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorField

public EditorField(java.lang.Object label,
                   javax.swing.JComponent field)
Method Detail

getLabel

public java.lang.Object getLabel()
Get the label that is to be applied to the editor field. If this returns a String then it will be used to construct a JLabel. If this returns a subclass of javax.swing.JComponent then the component itself will be used. If this returns null then the space where a label would normally go will be left blank.


getField

public javax.swing.JComponent getField()
Return the GUI component that allows the user to edit a value


saveEdits

public abstract void saveEdits()
Called when the editor should save the value from the field to the model