Class SetPropertyCommand<T>

  • All Implemented Interfaces:
    ICommand

    public class SetPropertyCommand<T>
    extends ChangePropertyCommand<T>
    A command used to modify the simple property of a node. Should not be used to modify complex (object) properties, only simple property types like string, boolean, number, etc. This differs from ChangePropertyCommand in that it can be constructed from a NodePath rather than a Node and therefore can be used in AggregateCommand use-cases where there is a Create followed by a SetProperty.
    Author:
    eric.wittmann@gmail.com
    • Constructor Detail

      • SetPropertyCommand

        public SetPropertyCommand()
        Constructor.
      • SetPropertyCommand

        public SetPropertyCommand​(NodePath nodePath,
                                  String property,
                                  T newValue)
        Constructor.