Package io.jmix.flowui.view
Class ViewAttributes.Attributes
java.lang.Object
io.jmix.flowui.view.ViewAttributes.Attributes
- Enclosing class:
- ViewAttributes
Class describes attributes map that corresponds to a certain view in a browser tab.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttribute(String key) Returns the value of an attribute associated with the specified key.Returns the name of the browser window associated with the current UI.inthashCode()booleanisEmpty()Checks if the attributes map is empty.voidremoveAttribute(String key) Removes an attribute corresponding to the specified key.voidsetAttribute(String key, Object value) Sets an attribute value.
-
Field Details
-
attributes
-
windowName
-
-
Constructor Details
-
Attributes
-
-
Method Details
-
getWindowName
Returns the name of the browser window associated with the current UI.- Returns:
- the name of the window
-
setAttribute
Sets an attribute value.- Parameters:
key- the key under which the attribute is stored; must not be null or emptyvalue- the value to associate with the specified key; can be null- Throws:
IllegalArgumentException- if the key is null or empty
-
getAttribute
Returns the value of an attribute associated with the specified key.- Parameters:
key- the key identifying the attribute to retrieve; must not be null or empty- Returns:
- the value associated with the specified key, or null if the attribute map is null or does not contain the key
-
removeAttribute
Removes an attribute corresponding to the specified key.- Parameters:
key- the key of the attribute to be removed; must not be null or empty- Throws:
IllegalArgumentException- if the key is null or empty
-
isEmpty
public boolean isEmpty()Checks if the attributes map is empty.- Returns:
trueif the attributes map contains no entries,falseotherwise
-
hashCode
public int hashCode() -
equals
-