Record Class TopComponentInfo

java.lang.Object
java.lang.Record
uno.anahata.ai.nb.model.windows.TopComponentInfo
Record Components:
id - The unique identifier of the TopComponent.
name - The name of the TopComponent.
selected - Whether the TopComponent is currently selected.
displayName - The human-readable display name.
htmlDisplayName - The HTML-formatted display name.
tooltip - The tooltip text.
className - The fully qualified class name of the TopComponent.
mode - The windowing mode (e.g., "editor", "output").
activatedNodes - A string representation of the currently activated nodes.
supportedActions - A string representation of the supported actions.
filePath - The path to the file associated with this window, if any.
primaryFilePath - The primary file path, if different from filePath.
sizeInBytes - The size of the associated file in bytes.

public record TopComponentInfo(String id, String name, boolean selected, String displayName, String htmlDisplayName, String tooltip, String className, String mode, String activatedNodes, String supportedActions, String filePath, String primaryFilePath, long sizeInBytes) extends Record
A POJO containing detailed information about a single open TopComponent (window) in the NetBeans IDE.
  • Constructor Details

    • TopComponentInfo

      public TopComponentInfo(String id, String name, boolean selected, String displayName, String htmlDisplayName, String tooltip, String className, String mode, String activatedNodes, String supportedActions, String filePath, String primaryFilePath, long sizeInBytes)
      Creates an instance of a TopComponentInfo record class.
      Parameters:
      id - the value for the id record component
      name - the value for the name record component
      selected - the value for the selected record component
      displayName - the value for the displayName record component
      htmlDisplayName - the value for the htmlDisplayName record component
      tooltip - the value for the tooltip record component
      className - the value for the className record component
      mode - the value for the mode record component
      activatedNodes - the value for the activatedNodes record component
      supportedActions - the value for the supportedActions record component
      filePath - the value for the filePath record component
      primaryFilePath - the value for the primaryFilePath record component
      sizeInBytes - the value for the sizeInBytes record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • selected

      public boolean selected()
      Returns the value of the selected record component.
      Returns:
      the value of the selected record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • htmlDisplayName

      public String htmlDisplayName()
      Returns the value of the htmlDisplayName record component.
      Returns:
      the value of the htmlDisplayName record component
    • tooltip

      public String tooltip()
      Returns the value of the tooltip record component.
      Returns:
      the value of the tooltip record component
    • className

      public String className()
      Returns the value of the className record component.
      Returns:
      the value of the className record component
    • mode

      public String mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • activatedNodes

      public String activatedNodes()
      Returns the value of the activatedNodes record component.
      Returns:
      the value of the activatedNodes record component
    • supportedActions

      public String supportedActions()
      Returns the value of the supportedActions record component.
      Returns:
      the value of the supportedActions record component
    • filePath

      public String filePath()
      Returns the value of the filePath record component.
      Returns:
      the value of the filePath record component
    • primaryFilePath

      public String primaryFilePath()
      Returns the value of the primaryFilePath record component.
      Returns:
      the value of the primaryFilePath record component
    • sizeInBytes

      public long sizeInBytes()
      Returns the value of the sizeInBytes record component.
      Returns:
      the value of the sizeInBytes record component