Class NbHandlePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class NbHandlePanel extends AbstractHandlePanel<NbHandle>
A specialized metadata panel for the NbHandle.

This panel serves as a property sheet for NetBeans-specific file metadata, visualizing IDE-level attributes such as file validity, absolute paths, and storage origin (archive vs. local filesystem).

See Also:
  • Field Details

    • validityLabel

      private final JLabel validityLabel
      Label indicating whether the IDE considers the underlying FileObject valid.
    • archiveBox

      private final JCheckBox archiveBox
      Checkbox indicating if the resource originates from a read-only archive (e.g., inside a JAR).
    • uriField

      private final JTextField uriField
      Read-only field displaying the full URI of the resource.
    • pathField

      private final JTextField pathField
      Read-only field displaying the absolute filesystem path, if applicable.
  • Constructor Details

    • NbHandlePanel

      public NbHandlePanel()
      Constructs a new metadata panel and initializes the property layout.
  • Method Details

    • refresh

      public void refresh()
      Refreshes the common metadata components. Subclasses should call this in their own refresh implementation to maintain consistency.

      Implementation details: Extracts and styles IDE-specific validity and storage attributes from the NbHandle.

      Overrides:
      refresh in class AbstractHandlePanel<NbHandle>