Package com.jgoodies.binding.list

Examples of com.jgoodies.binding.list.ArrayListModel


      Transportable transportable, Map<String, Object> parameters,
      ReportViewer reportViewer, WindowInterface window) {
    try {

      List<OrderLine> missing = transportable.getMissingCollies();
      ArrayListModel list = new ArrayListModel();

      Integer colliCount = prepareOrderLinesAndColliesAndGetNumberOfCollies(
          transportable, missing, list);

      reportViewer.generateProtransReport(new TransportLetterTableModel(
View Full Code Here


    private TableModel tableModel;

    final ExcelReportEnum excelReportEnum;

    public ExcelReportGenerator(final ExcelReportEnum reportEnum) {
        dataList = new ArrayListModel();
        excelReportEnum = reportEnum;
    }
View Full Code Here

        okButton = useOkButton;
        useCheckBox = checkBoxAll;
    }

    private void createObjectList(final Collection<?> objects, final Object defaultObject) {
        objectList = new ArrayListModel(objects);

        objectSelectionList = new SelectionInList((ListModel) objectList);
        if (defaultObject != null) {
            objectSelectionList.setSelection(defaultObject);
        }
View Full Code Here

    super("Brukere", applicationUserManager, aLogin.getUserType(), true);

    UserTypeManager userTypeManager = (UserTypeManager) ModelUtil
        .getBean("userTypeManager");
    userTypes = userTypeManager.findAll();
    userRoleList = new ArrayListModel();
    userRoleSelectionList = new SelectionInList((ListModel) userRoleList);
    userRoleSelectionList.addPropertyChangeListener(
        SelectionInList.PROPERTYNAME_SELECTION_EMPTY,
        new EmptyListenerUserRole());

    ProductAreaGroupManager productAreaGroupManager = (ProductAreaGroupManager) ModelUtil
        .getBean("productAreaGroupManager");
    productAreaGroups = productAreaGroupManager.findAll();
    userProductAreaGroupList = new ArrayListModel();
    userProductAreaGroupSelectionList = new SelectionInList(
        (ListModel) userProductAreaGroupList);
    userProductAreaGroupSelectionList.addPropertyChangeListener(
        SelectionInList.PROPERTYNAME_SELECTION_EMPTY,
        new EmptyListenerProductAreaGroup());
View Full Code Here

      }
      deviationFunctionList.addAll(functions);
      deviationFunctionList.add(0, null);
    }

    functionCategoryList = new ArrayListModel();
    deviationStatusList = deviationStatusManager.findAll();
    deviationStatusList.add(0, null);

    ProductAreaGroupManager productAreaGroupManager = (ProductAreaGroupManager) ModelUtil
        .getBean("productAreaGroupManager");
View Full Code Here

                        .getArticleTypeName(), null, 1,
                    null, null, null, null, deviation,
                    null, null, null, null));
          }

          ArrayListModel bufferedOrderLines = (ArrayListModel) presentationModel
              .getBufferedValue(ICostableModel.PROPERTY_ORDER_LINE_ARRAY_LIST_MODEL);
          bufferedOrderLines.addAll(newOrderLines);
          presentationModel
              .setBufferedValue(
                  ICostableModel.PROPERTY_ORDER_LINE_ARRAY_LIST_MODEL,
                  bufferedOrderLines);
View Full Code Here

        OrderLine orderLine = (OrderLine) orderLineSelectionList
            .getSelection();
        if (Util.showConfirmDialog(window.getComponent(), "Slette?",
            "Vil du virkelig slette artikkel?")) {
          if (orderLine != null) {
            ArrayListModel bufferedOrderLines = (ArrayListModel) presentationModel
                .getBufferedValue(ICostableModel.PROPERTY_ORDER_LINE_ARRAY_LIST_MODEL);
            bufferedOrderLines.remove(orderLine);
            presentationModel
                .setBufferedValue(
                    ICostableModel.PROPERTY_ORDER_LINE_ARRAY_LIST_MODEL,
                    bufferedOrderLines);
View Full Code Here

                   
                    if (orders != null && orders.size() != 0) {
                        models = new HashMap<Transport, TransportOverviewTableModel>();
                        currentWeek = transport.getTransportWeek();
                        models.put(transport, new TransportOverviewTableModel(
                                new ArrayListModel(orders), window));
                    }
                   
                } else {
                    addTransportToWeek(transport, models, productAreaGroup);
                }
View Full Code Here

                Map<Transport, TransportOverviewTableModel> models,
                ProductAreaGroup productAreaGroup) {
            List<Order> orders = transport.getOrders(productAreaGroup);
            if (orders != null && orders.size() != 0) {
                models.put(transport, new TransportOverviewTableModel(
                        new ArrayListModel(orders), window));
            }
        }
View Full Code Here

    super("Konstruksjonstype", aManagerRepository
        .getConstructionTypeManager(), aLogin.getUserType(), true);
    managerRepository = aManagerRepository;
    login = aLogin;
    isMasterOverview = masterOverview;
    attributeList = new ArrayListModel();
    attributeSelection = new SelectionInList((ListModel) attributeList);

    masterDialog = isMasterDialog;
    productAreaList = new ArrayList<ProductArea>();
    initProductAreaList();
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.