Class ViewAttributes.Attributes

java.lang.Object
io.jmix.flowui.view.ViewAttributes.Attributes
Enclosing class:
ViewAttributes

public static class ViewAttributes.Attributes extends Object
Class describes attributes map that corresponds to a certain view in a browser tab.
  • Field Details

  • Constructor Details

    • Attributes

      public Attributes(String windowName)
  • Method Details

    • getWindowName

      public String getWindowName()
      Returns the name of the browser window associated with the current UI.
      Returns:
      the name of the window
    • setAttribute

      public void setAttribute(String key, Object value)
      Sets an attribute value.
      Parameters:
      key - the key under which the attribute is stored; must not be null or empty
      value - the value to associate with the specified key; can be null
      Throws:
      IllegalArgumentException - if the key is null or empty
    • getAttribute

      @Nullable public Object getAttribute(String key)
      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

      public void removeAttribute(String key)
      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:
      true if the attributes map contains no entries, false otherwise
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object