Getter and setters which allow to restore the state of view through java code.