Class AbstractLegacyComponent

    • Constructor Detail

      • AbstractLegacyComponent

        public AbstractLegacyComponent()
        Deprecated.
    • Method Detail

      • getExplicitImmediateValue

        protected Boolean getExplicitImmediateValue()
        Deprecated.
        Returns the explicitly set immediate value.
        Returns:
        the explicitly set immediate value or null if setImmediate(boolean) has not been explicitly invoked
      • isImmediate

        public boolean isImmediate()
        Deprecated.
        Returns the immediate mode of the component.

        Since Vaadin 8, the default mode is immediate.

        Returns:
        true if the component is in immediate mode (explicitly or implicitly set), false if the component if not in immediate mode
      • setImmediate

        public void setImmediate​(boolean immediate)
        Deprecated.
        Sets the component's immediate mode to the specified status.

        Since Vaadin 8, the default mode is immediate.

        Parameters:
        immediate - the boolean value specifying if the component should be in the immediate mode after the call.
      • isReadOnly

        public boolean isReadOnly()
        Deprecated.
        Tests whether the component is in the read-only mode. The user can not change the value of a read-only component. As only AbstractField or LegacyField components normally have a value that can be input or changed by the user, this is mostly relevant only to field components, though not restricted to them.

        Notice that the read-only mode only affects whether the user can change the value of the component; it is possible to, for example, scroll a read-only table.

        The method will return true if the component or any of its parents is in the read-only mode.

        Overrides:
        isReadOnly in class AbstractComponent
        Returns:
        true if the component or any of its parents is in read-only mode, false if not.
        See Also:
        setReadOnly(boolean)
      • setReadOnly

        public void setReadOnly​(boolean readOnly)
        Deprecated.
        Sets the read-only mode of the component to the specified mode. The user can not change the value of a read-only component.

        As only AbstractField or LegacyField components normally have a value that can be input or changed by the user, this is mostly relevant only to field components, though not restricted to them.

        Notice that the read-only mode only affects whether the user can change the value of the component; it is possible to, for example, scroll a read-only table.

        In Vaadin 8 the read-only property is part of HasValue API.

        Overrides:
        setReadOnly in class AbstractComponent
        Parameters:
        readOnly - a boolean value specifying whether the component is put read-only mode or not