java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
cmpt213.assignment4.packagedeliveries.client.view.screens.MainScreenRight
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MainScreenRight extends JPanel
Class holds JPanel object that holds the components of the right side of the main screen.
See Also:
  • Constructor Details

    • MainScreenRight

      public MainScreenRight(PackageDeliveryControl control, Frame parent, ActionListener al)
      Constructor for this object, sets look and feel and initializes fields.
      Parameters:
      control - Control class instance.
      parent - Frame to be passed to dialogs.
      al - Action Listener that buttons will add.
  • Method Details

    • deleteAPackage

      public static void deleteAPackage(int arrayIndex, int panelItemIndex)
      Deletes a package on the UI according to state. Helps with removal of package item on UI.
      Parameters:
      panelItemIndex - PackageItem array index
      arrayIndex - PackageBase array
    • populateList

      public void populateList(Util.SCREEN_STATE currentState)
      Populates UI with list of packages according to state.
      Parameters:
      currentState - The state that the method will populate according to.