Package com.jgoodies.binding.list

Examples of com.jgoodies.binding.list.ArrayListModel


      addOrderAndCosts(currentData, order);

    }
    addSalesmanData(currentData, salesmanDataList);
    presentationModel.setValue(ConfirmReport.PROPERTY_REPORT_LIST,
        new ArrayListModel(salesmanDataList));
  }
View Full Code Here


    private ArrayListModel reportBasisList;
    private ProductAreaGroup productAreaGroup;

    public ConfirmReport() {
      reportList = new ArrayListModel();
      year = Util.getCurrentYear();
      weekFrom = Util.getCurrentWeek();
      weekTo = Util.getCurrentWeek();
    }
View Full Code Here

    public final ArrayListModel getReportList() {
      return reportList;
    }

    public final void setReportList(final ArrayListModel aReportList) {
      ArrayListModel oldList = new ArrayListModel(getReportList());
      reportList.clear();
      reportList.addAll(aReportList);
      firePropertyChange(PROPERTY_REPORT_LIST, oldList, aReportList);
    }
View Full Code Here

      firePropertyChange(PROPERTY_REPORT_LIST, oldList, aReportList);
    }

    public final ArrayListModel getReportBasisList() {
      if (reportBasisList != null) {
        return new ArrayListModel(reportBasisList);
      }
      return null;
    }
View Full Code Here

  @SuppressWarnings("unchecked")
  public JXTable getTableExternalAttributes(
      PresentationModel presentationModel) {
    Set<ExternalOrderLineAttribute> externalOrderLineAttributes = (Set<ExternalOrderLineAttribute>) presentationModel
        .getValue(ExternalOrderLineModel.PROPERTY_EXTERNAL_ORDER_LINE_ATTRIBUTES);
    externalAttributeList = new ArrayListModel();
    if (externalOrderLineAttributes != null) {
      externalAttributeList.addAll(externalOrderLineAttributes);
    }
    externalAttributeSelectionList = new SelectionInList(
        (ListModel) externalAttributeList);
View Full Code Here

    deviationViewHandlerFactory = aDeviationViewHandlerFactory;
    orderViewHandlerFactory = aOrderViewHandlerFactory;
    login = aLogin;
    managerRepository = aManagerRepository;

    transportableList = new ArrayListModel();
    transportableSelectionList = new SelectionInList(
        (ListModel) transportableList);
    transportViewHandler = aTransportViewHandler;
    transportList = new ArrayListModel();
    routeDate = aRouteDate;

    transportSelectionList = new SelectionInList((ListModel) transportList);

  }
View Full Code Here

  public AccidentViewHandler(final Login aLogin,
      final ManagerRepository aManagerRepository) {
    super("Ulykker", aManagerRepository.getAccidentManager(), aLogin.getUserType(), true);
    managerRepository=aManagerRepository;
    login = aLogin;
    participantList = new ArrayListModel();
    participantSelectionList = new SelectionInList(
        (ListModel) participantList);
    participantSelectionList.addPropertyChangeListener(
        SelectionInList.PROPERTYNAME_SELECTION_EMPTY,
        new EmptySelectionhandler());
View Full Code Here

          false, accidentParticipantModel,
          new AccidentParticipantViewHandler(userType));
      Util.showEditViewable(editAccidentParticipantView, window1);

      if (!editAccidentParticipantView.isCanceled()) {
        ArrayListModel listModel = (ArrayListModel) presentationModel
            .getBufferedValue(AccidentModel.PROPERTY_PARTICIPANT_LIST);
        listModel.add(accidentParticipantModel.getObject());
        presentationModel.setBufferedValue(
            AccidentModel.PROPERTY_PARTICIPANT_LIST, listModel);
        participantList.clear();
        participantList.addAll(listModel);
      }
View Full Code Here

    public void actionPerformed(ActionEvent e) {
      if (Util.showConfirmDialog(window1.getComponent(), "Slette?",
          "Vil du virkelig slette involvert?")) {
        AccidentParticipant participant = (AccidentParticipant) participantSelectionList
            .getSelection();
        ArrayListModel list = (ArrayListModel) presentationModel
            .getBufferedValue(AccidentModel.PROPERTY_PARTICIPANT_LIST);
        list.remove(participant);
        presentationModel.setBufferedValue(
            AccidentModel.PROPERTY_PARTICIPANT_LIST, list);
        participantList.remove(participant);
      }
View Full Code Here

        .getPreventiveActionManager(), aLogin.getUserType(), true);

    login = aLogin;
    functionList = new ArrayList<JobFunction>(managerRepository
        .getJobFunctionManager().findAll());
    categoryList = new ArrayListModel();
    commentList = new ArrayListModel();
    userFullName = login.getApplicationUser().getFullName();
  }
View Full Code Here

TOP

Related Classes of com.jgoodies.binding.list.ArrayListModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.