Class EditorField

java.lang.Object
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

    Constructors 
    Constructor Description
    EditorField​(java.lang.Object label, javax.swing.JComponent field)  
  • Method Summary

    Modifier and Type Method Description
    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 Details

    • EditorField

      public EditorField​(java.lang.Object label, javax.swing.JComponent field)
  • Method Details

    • 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