Class MapEvent

    • Field Detail

      • CHANGE

        public static final int CHANGE
        A type that describes object modification events. CHANGE is a default type of new MapEvents, unless the type is specified explicitly.
        See Also:
        Constant Field Values
      • ADD

        public static final int ADD
        A type that describes object creation events.
        See Also:
        Constant Field Values
      • REMOVE

        public static final int REMOVE
        A type that describes object removal events.
        See Also:
        Constant Field Values
      • id

        protected int id
      • oldName

        protected String oldName
      • oldNameSet

        protected boolean oldNameSet
    • Constructor Detail

      • MapEvent

        public MapEvent​(Object source)
        Constructor for MapEvent.
        Parameters:
        source - event source
      • MapEvent

        public MapEvent​(Object source,
                        String oldName)
        Constructor for MapEvent.
        Parameters:
        source - event source
    • Method Detail

      • isNameChange

        public boolean isNameChange()
      • getId

        public int getId()
        Returns the id.
        Returns:
        int
      • getNewName

        public abstract String getNewName()
        Returns the newName of the object that caused this event.
      • getOldName

        public String getOldName()
        Returns the oldName.
      • setId

        public void setId​(int id)
        Sets the id.
      • setOldName

        public void setOldName​(String oldName)
        Sets the oldName.