Class AbstractWorkspacePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, IReloadableFilterable
Direct Known Subclasses:
WorkspacePanelResources, WorkspacePanelTags

public abstract class AbstractWorkspacePanel extends JPanel implements IReloadableFilterable
This class represents a section of a workspace where certain workspace elements/files can be managed.
See Also:
  • Field Details

  • Constructor Details

    • AbstractWorkspacePanel

      public AbstractWorkspacePanel(WorkspacePanel workspacePanel)
      Sole constructor.
      Parameters:
      workspacePanel - The main workspace section.
  • Method Details

    • isSupportedInWorkspace

      public boolean isSupportedInWorkspace()
      Determines whether the section will be registered but not shown in the workspace when registered.
      Returns:
      Whether the section will be registered but not shown in the workspace when registered.
    • canSwitchToSection

      public boolean canSwitchToSection()
      Determines whether clicking the tab button will actually switch the section.
      Returns:
      Whether clicking the tab button will actually switch the section.
    • createToolBarButton

      public static JButton createToolBarButton(String translationKey, ImageIcon icon)
    • createToolBarButton

      public static JButton createToolBarButton(String translationKey, ImageIcon icon, ActionListener actionListener)
    • createToolBarButton

      public static JButton createToolBarButton(String translationKey, ImageIcon icon, MouseListener mouseListener)
    • createToolBarButton

      public static JButton createToolBarButton(String translationKey, ImageIcon icon, @Nullable ActionListener actionListener, @Nullable MouseListener mouseListener)