Package com.adobe.granite.ui.components
Class ClientState
java.lang.Object
com.adobe.granite.ui.components.ClientState
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 -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns all attributes from the global namespace for the given selector.Deprecated.Returns all attributes from a given namespace for the given selector.Deprecated.Returns all attributes which keys are included in the attributes array from the global namespace for the given selector.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.
-
Constructor Details
-
ClientState
Deprecated.
-
-
Method Details
-
getState
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
Deprecated.Returns all attributes from a given namespace for the given selector.- Parameters:
selector
- the selectornamespace
- 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 selectorattributes
- 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 selectorattributes
- the keys of the attributes we are interested innamespace
- the namespace- Returns:
- all attributes which keys are included in the attributes array from a given namespace for the given selector
-
restoreState
Deprecated.Adds all attributes from the global namespace for the given selector to an AttrBuilder.- Parameters:
attr
- the attribute builderselector
- 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 builderselector
- the selectornamespace
- 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 builderselector
- the selectorattributes
- 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 builderselector
- the selectorattributes
- the attributesnamespace
- the namespace- Returns:
true
if the addition is successful,false
otherwise
-