Beispiel #1
0
 /**
  * When a customer or waiter is clicked, this function calls updatedInfoPanel() from the main gui
  * so that person's information will be shown
  *
  * @param type indicates whether the person is a customer or waiter
  * @param string name of person
  */
 public void showCustomerInfo(String inp) {
   for (int i = 0; i < customers.size(); i++) {
     MarketCustomer temp = customers.get(i);
     if (temp.getName() == inp) {
       customerPanel.updateCustomer(temp);
       gui.updateCustomerInformationPanel(temp);
       customerPanel.updateCustomer(temp);
     }
   }
 }
Beispiel #2
0
  public void showFrame(final Editor editor, boolean activateErrorPanel, final boolean loading) {
    this.editor = editor;

    setLayout(editor, activateErrorPanel, loading);
    contributionListPanel.setVisible(!loading);
    loaderLabel.setVisible(loading);
    errorPanel.setVisible(activateErrorPanel);

    validate();
    repaint();
  }
Beispiel #3
0
 protected void filterLibraries(String category, List<String> filters) {
   List<Contribution> filteredLibraries = contribListing.getFilteredLibraryList(category, filters);
   contributionListPanel.filterLibraries(filteredLibraries);
 }