Class ClassOptionEditComponent

    • Field Detail

      • editButton

        protected JButton editButton
      • midUpdate

        protected boolean midUpdate
        Flag that says the text field is in the middle of an update operation. This is to prevent two change notifications from going out when the update is implemented as a remove followed by an insert.
      • changeListeners

        protected HashSet<ChangeListener> changeListeners
        listeners that listen to changes to the chosen option.
    • Constructor Detail

      • ClassOptionEditComponent

        public ClassOptionEditComponent​(Option opt)
    • Method Detail

      • editObject

        public void editObject()
      • addChangeListener

        public void addChangeListener​(ChangeListener l)
        Adds the listener to the internal set of listeners. Gets notified when the option string changes.
        Parameters:
        l - the listener to add
      • removeChangeListener

        public void removeChangeListener​(ChangeListener l)
        Removes the listener from the internal set of listeners.
        Parameters:
        l - the listener to remove
      • notifyChangeListeners

        protected void notifyChangeListeners()
        Notifies all registered change listeners that the options have changed.