Package adams.gui.goe

Class WekaGenericObjectEditorPopupMenu

    • Field Detail

      • m_ChangeListeners

        protected HashSet<ChangeListener> m_ChangeListeners
        listeners that get notified when the user changes the setup.
    • Constructor Detail

      • WekaGenericObjectEditorPopupMenu

        public WekaGenericObjectEditorPopupMenu​(PropertyEditor editor,
                                                JComponent comp)
        Initializes the menu.
        Parameters:
        editor - the editor this menu belongs to
        comp - the component to use as parent
    • Method Detail

      • updateEditor

        protected boolean updateEditor​(PropertyEditor editor,
                                       JComponent comp,
                                       String str)
        Updates the editor using the string.
        Parameters:
        editor - the editor to update
        str - the string to use
      • getCanChangeClassInDialog

        protected boolean getCanChangeClassInDialog​(PropertyEditor editor)
        Returns whether the class can be changed in the editor.
        Parameters:
        editor - the editor to check
        Returns:
        true if the class can be changed
      • addChangeListener

        public void addChangeListener​(ChangeListener l)
        Adds the listener to the internal list of listeners that get notified when the user changes the setup.
        Parameters:
        l - the listener to add
      • removeChangeListener

        public void removeChangeListener​(ChangeListener l)
        Removes the listener from the internal list of listeners that get notified when the user changes the setup.
        Parameters:
        l - the listener to remove
      • notifyChangeListeners

        protected void notifyChangeListeners()
        Notifies all change listeners that the user modified the setup.