Class SwingTopComponent

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class SwingTopComponent extends JPanel
Top component of the application.
See Also:
  • Constructor Details

    • SwingTopComponent

      public SwingTopComponent()
      Constructor.
  • Method Details

    • init

      public void init()
      Initializes the top component with an action to open a project.
    • addMainTab

      public void addMainTab(ProjectWindow projectWindow)
      Adds the main project tab to the tabbed pane.
      Parameters:
      projectWindow - The project window to be added as a tab.
    • addTaskTab

      public void addTaskTab(TaskWindow taskWindow)
      Adds a task tab to the tabbed pane.
      Parameters:
      taskWindow - The task window to be added as a tab.
    • removeTab

      public void removeTab(int index)
      Removes a tab at the specified index from the tabbed pane.
      Parameters:
      index -
    • removeTab

      public void removeTab(Component component)
      Removes a specific component from the tabbed pane.
      Parameters:
      component - The component to be removed.
    • requestActive

      public void requestActive(Component component)
      Requests the active component in the tabbed pane.
      Parameters:
      component - The component to be set as active.
    • requestActiveProject

      public void requestActiveProject()
      Requests the first project tab to be active.