Class SetPropertyCommand

    • Constructor Detail

      • SetPropertyCommand

        public SetPropertyCommand​(Element element,
                                  String name,
                                  Object value)
        Constructor
        Parameters:
        element - - The element object
        name - - The name
        value - - The value
    • Method Detail

      • execute

        public void execute()
      • undo

        public void undo()
      • swap

        protected Object swap()
        Swap the object
        Returns:
        The old object
      • getLocalProperty

        protected Property getLocalProperty()
        Get local property
        Returns:
        The local property
      • getLocalPropertyValue

        protected Object getLocalPropertyValue()
        Get local property value
        Returns:
        The local property value
      • getModifiedElement

        public Element getModifiedElement()
        Returns:
        the modified element or its closest relative (sibling or parent) if the element is not displayed.