Class UrlHandlePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class UrlHandlePanel extends AbstractHandlePanel<UrlHandle>
A specialized metadata panel for the UrlHandle.

This panel exposes remote connectivity attributes, including the source URL and indicators for the network metadata cache.

Author:
anahata
See Also:
  • Field Details

    • urlField

      private final JTextField urlField
      Text field for the source remote URL.
    • cacheLabel

      private final JLabel cacheLabel
      Label for the network metadata cache status.
  • Constructor Details

    • UrlHandlePanel

      public UrlHandlePanel()
      Constructs a new UrlHandlePanel.
  • 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: Synchronizes labels with the remote URL metadata and displays the status of the internal connection cache.

      Overrides:
      refresh in class AbstractHandlePanel<UrlHandle>
    • onRefreshComplete

      protected void onRefreshComplete()
      Hook invoked after the asynchronous refresh of handle metadata is complete.

      Implementation details: Updates the cache status label based on the metadata availability in the underlying handle.

      Overrides:
      onRefreshComplete in class AbstractHandlePanel<UrlHandle>