Class WorkspacePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class WorkspacePanel extends JPanel
See Also:
  • Field Details

  • Constructor Details

    • WorkspacePanel

      public WorkspacePanel(MCreator mcreator)
  • Method Details

    • addVerticalTab

      public void addVerticalTab(String id, String name, AbstractWorkspacePanel section)
      Adds a new section to this workspace as well as a vertical tab button on the left that switches to the section panel when clicked.
      Parameters:
      id - The unique identifier of the section used for reloading/filtering contained elements.
      name - The name of the section shown in the workspace.
      section - The panel representing contents of the vertical tab being added.
    • getVerticalTab

      public AbstractWorkspacePanel getVerticalTab(String id)
    • switchToVerticalTab

      public void switchToVerticalTab(AbstractWorkspacePanel panel)
    • switchToVerticalTab

      public void switchToVerticalTab(String id)
    • switchFolder

      public void switchFolder(FolderElement switchTo)
    • disableRemoving

      public void disableRemoving()
    • enableRemoving

      public void enableRemoving()
    • editCurrentlySelectedModElement

      public void editCurrentlySelectedModElement(ModElement modElement, JComponent component, int x, int y)
    • reloadElementsInCurrentTab

      public void reloadElementsInCurrentTab()
    • getMCreator

      public MCreator getMCreator()