Package adams.gui.goe

Class EditorHelper


  • public class EditorHelper
    extends Object
    Helper class for GOE editors.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • EditorHelper

        public EditorHelper()
    • Method Detail

      • findView

        public static JComponent findView​(PropertyEditor editor)
        Tries to determine a view for the editor.
        Parameters:
        editor - the editor to get the view for
        Returns:
        the view, null if failed to determine one
      • simpleEdit

        public static Object simpleEdit​(Container parent,
                                        Object obj,
                                        String title)
        Brings up the dialog for editing the Object.
        Parameters:
        parent - the parent for the dialog
        obj - the object to edit
        title - the title of the dialog
        Returns:
        the new object, null if canceled