Class ClientState

java.lang.Object
com.adobe.granite.ui.components.ClientState

@Deprecated public class ClientState extends Object
Deprecated.
CoralUI v1 specific
A class to receive the client state for DOM attributes out of Coral UI's util.state. It's purpose is to receive the values from the HTTP request and either transform it to a JSON object or to add them to an existing AttrBuilder.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getState(String selector)
    Deprecated.
    Returns all attributes from the global namespace for the given selector.
    getState(String selector, String namespace)
    Deprecated.
    Returns all attributes from a given namespace for the given selector.
    getState(String selector, String[] attributes)
    Deprecated.
    Returns all attributes which keys are included in the attributes array from the global namespace for the given selector.
    getState(String selector, String[] attributes, String namespace)
    Deprecated.
    Returns all attributes which keys are included in the attributes array from a given namespace for the given selector.
    boolean
    restoreState(AttrBuilder attr, String selector)
    Deprecated.
    Adds all attributes from the global namespace for the given selector to an AttrBuilder.
    boolean
    restoreState(AttrBuilder attr, String selector, String namespace)
    Deprecated.
    Adds all attributes from a given namespace for the given selector to an AttrBuilder.
    boolean
    restoreState(AttrBuilder attr, String selector, String[] attributes)
    Deprecated.
    Adds all attributes which keys are included in the attributes array from the global namespace for the given selector to an AttrBuilder.
    boolean
    restoreState(AttrBuilder attr, String selector, String[] attributes, String namespace)
    Deprecated.
    Adds all attributes which keys are included in the attributes array from a given namespace for the given selector to an AttrBuilder.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getState

      @CheckForNull public JSONObject getState(@Nonnull String selector)
      Deprecated.
      Returns all attributes from the global namespace for the given selector.
      Parameters:
      selector - the selector
      Returns:
      all attributes from the global namespace for the given selector
    • getState

      @CheckForNull public JSONObject getState(@Nonnull String selector, @Nonnull String namespace)
      Deprecated.
      Returns all attributes from a given namespace for the given selector.
      Parameters:
      selector - the selector
      namespace - the namespace
      Returns:
      all attributes from the given namespace for the given selector
    • getState

      @CheckForNull public JSONObject getState(@Nonnull String selector, @CheckForNull String[] attributes)
      Deprecated.
      Returns all attributes which keys are included in the attributes array from the global namespace for the given selector.
      Parameters:
      selector - the selector
      attributes - the keys of the attributes we are interested in
      Returns:
      all attributes which keys are included in the attributes array from the global namespace for the given selector
    • getState

      @CheckForNull public JSONObject getState(@Nonnull String selector, @CheckForNull String[] attributes, @Nonnull String namespace)
      Deprecated.
      Returns all attributes which keys are included in the attributes array from a given namespace for the given selector.
      Parameters:
      selector - the selector
      attributes - the keys of the attributes we are interested in
      namespace - the namespace
      Returns:
      all attributes which keys are included in the attributes array from a given namespace for the given selector
    • restoreState

      public boolean restoreState(@Nonnull AttrBuilder attr, @Nonnull String selector)
      Deprecated.
      Adds all attributes from the global namespace for the given selector to an AttrBuilder.
      Parameters:
      attr - the attribute builder
      selector - the selector
      Returns:
      true if the addition is successful, false otherwise
    • restoreState

      public boolean restoreState(@Nonnull AttrBuilder attr, @Nonnull String selector, @Nonnull String namespace)
      Deprecated.
      Adds all attributes from a given namespace for the given selector to an AttrBuilder.
      Parameters:
      attr - the attribute builder
      selector - the selector
      namespace - the namespace
      Returns:
      true if the addition is successful, false otherwise
    • restoreState

      public boolean restoreState(@Nonnull AttrBuilder attr, @Nonnull String selector, @CheckForNull String[] attributes)
      Deprecated.
      Adds all attributes which keys are included in the attributes array from the global namespace for the given selector to an AttrBuilder.
      Parameters:
      attr - the attribute builder
      selector - the selector
      attributes - the attributes
      Returns:
      true if the addition is successful, false otherwise
    • restoreState

      public boolean restoreState(@Nonnull AttrBuilder attr, @Nonnull String selector, @CheckForNull String[] attributes, @Nonnull String namespace)
      Deprecated.
      Adds all attributes which keys are included in the attributes array from a given namespace for the given selector to an AttrBuilder.
      Parameters:
      attr - the attribute builder
      selector - the selector
      attributes - the attributes
      namespace - the namespace
      Returns:
      true if the addition is successful, false otherwise