Package com.jgoodies.binding.list

Examples of com.jgoodies.binding.list.SelectionInList


      ManagerRepository aManagerRepository) {
    managerRepository = aManagerRepository;
    supplierOrderViewHandlerFactory = aSupplierOrderViewHandlerFactory;
    login = aLogin;
    deviationList = new ArrayListModel();
    deviationSelectionList = new SelectionInList((ListModel) deviationList);

    labelWarning = new JLabel();
    labelWarning.setIcon(IconEnum.ICON_WARNING.getIcon());

    assemblyChangeListener = new AssemblyChangeListener();

    this.orderViewHandler = orderViewHandler;

    orderViewHandler.addListDataListener(this);

    weekSelectionList = new SelectionInList(Util.getWeeks());

    initOverdue();
    initProductAreaGroup();
  }
View Full Code Here


      }
    }
  }

  private Order getSelectedOrder(int index) {
    SelectionInList orderPanelSelectionList = orderViewHandler
        .getOrderPanelSelectionList();
    Order order = (Order) orderPanelSelectionList.getElementAt(index);
    orderViewHandler.getOrderManager().refreshObject(order);
    return order;
  }
View Full Code Here

        yearWeekAdapter.addPropertyChangeListener(viewHandler
                .getWeekChangeListener(yearWeek, window));
       
        orderPanelView=viewHandler.getOrderPanelView().buildPanel(window, "150",viewHandler.getRightClickListener(), "130", true);

        SelectionInList weekSelectionList = viewHandler
                .getWeekSelectionList(yearWeekAdapter);
        comboBoxWeeks = BasicComponentFactory.createComboBox(weekSelectionList);
        comboBoxWeeks.setSelectedItem(Util.getCurrentWeek());
        weekSelectionList.addValueChangeListener(viewHandler
                .getWeekChangeListener(yearWeek, window));

        buttonRefresh = viewHandler.getRefreshButton(window);
        buttonCancel = viewHandler.getCancelButton(window);
        buttonPrint = viewHandler.getPrintButton(window);
View Full Code Here

    comboBox.setName("ComboBoxArticleType");
    return comboBox;
  }

  public JList getListProductAreaGroup(PresentationModel presentationModel) {
    productAreaGroupSelectionList = new SelectionInList(
        presentationModel
            .getBufferedModel(ProductionUnitModel.PROPERTY_PRODUCTION_UNIT_PRODUCT_AREA_GROUP_LIST));
    productAreaGroupSelectionList.addPropertyChangeListener(
        SelectionInList.PROPERTYNAME_SELECTION_EMPTY,
        new EmptySelectionHandler());
View Full Code Here

        private ProductAreaGroup productAreaGroup;

        public SystemSetup() {
            tableNameList = new ArrayListModel();
            tableNames = new SelectionInList((ListModel) tableNameList);
           
            tableNames.addPropertyChangeListener(
                    SelectionInList.PROPERTYNAME_SELECTION_INDEX,
                    new TableNameSelectionListener());

            columnList = new ArrayListModel();
            columns = new SelectionInList((ListModel) columnList);
        }
View Full Code Here

     * @return komboboks
     */
    public JComboBox getComboBoxStartupWindow(
            PresentationModel presentationModel) {
        return BasicComponentFactory
                .createComboBox(new SelectionInList(
                        StartWindowEnum.getAll(),
                        presentationModel
                                .getBufferedModel(UserTypeModel.PROPERTY_STARTUP_WINDOW_ENUM)));
    }
View Full Code Here

    deviationViewHandlerFactory = aDeviationViewHandlerFactory;
    managerRepository = aManagerRepository;
    login = aLogin;
    transportChangeListener = new TransportChangeListener();
    yearWeek = new YearWeek();
    weekSelectionList = new SelectionInList(Util.getWeeks());
    orderViewHandlerFactory = aOrderViewHandlerFactory;
    orderViewHandler = orderViewHandlerFactory.create(true);
    orderViewHandler.addListDataListener(this);

    postShipmentList = new ArrayListModel();
    postShipmentSelectionList = new SelectionInList(
        (ListModel) postShipmentList);

    initMenus();

    presentationModelTransportSum = new PresentationModel(
View Full Code Here

        .getOrderPanelSelectedOrderIndex();
  }

  private Transportable getTransportable(final boolean setPostShipment) {
    int index = getSelectionIndex(setPostShipment);
    SelectionInList selectionInList = setPostShipment ? postShipmentSelectionList
        : orderViewHandler.getOrderPanelSelectionList();
    return (Transportable) selectionInList.getElementAt(index);
  }
View Full Code Here

    deviationViewHandlerFactory = aDeviationViewHandlerFactory;
    tableEnum = aTableEnum;
    this.applyListInterface = productionInterface;
    this.windowTitle = title;
    objectList = new ArrayListModel();
    objectSelectionList = new SelectionInList((ListModel) objectList);
    objectSelectionList.addPropertyChangeListener(
        SelectionInList.PROPERTYNAME_SELECTION_INDEX,
        new SelectionListener());

    popupMenu = new JPopupMenu();
View Full Code Here

    private JButton buttonAddAttachment;

    public AttachmentViewHandler(String aAttachmentDir) throws ProTransException {
        attachmentBaseDir = ApplicationParamUtil.findParamByName("attachment_dir");
        fileNameList = new ArrayListModel();
        fileNameSelectionList = new SelectionInList((ListModel) fileNameList);
        fileNameSelectionList.addPropertyChangeListener(SelectionInList.PROPERTYNAME_SELECTION_EMPTY,
                new EmptyListSelectionListener());
        setupPresentationModel(aAttachmentDir);
    }
View Full Code Here

TOP

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

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.