Examples of ArrayListModel


Examples of com.jgoodies.binding.list.ArrayListModel

    /**
     * @return ordrelinjer
     */
    public ArrayListModel getOrderLineArrayListModel() {
        return new ArrayListModel(orderLineList);
    }
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

    /**
     * Setter ordrelinjer
     * @param orderLines
     */
    public void setOrderLineArrayListModel(ArrayListModel orderLines) {
        ArrayListModel oldOrderLines = getOrderLineArrayListModel();
        this.orderLineList.clear();
        if (orderLines != null) {
            this.orderLineList.addAll(orderLines);
        }
        firePropertyChange(PROPERTY_ORDER_LINE_ARRAY_LIST_MODEL, oldOrderLines, orderLines);
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

    /**
     * @param orderLines
     */
    public void setOrderLines(ArrayListModel orderLines) {
        ArrayListModel oldines = new ArrayListModel(getOrderLineArrayListModel());
        this.orderLineList.clear();
        if (orderLines != null) {
            this.orderLineList.addAll(orderLines);
        }
        firePropertyChange(PROPERTY_ORDER_LINE_ARRAY_LIST_MODEL, oldines, orderLines);
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

  public SupplierViewHandler(Login login, ManagerRepository aManagerRepository) {
    super("Leverand�rer", aManagerRepository.getSupplierManager(), login
        .getUserType(), true);
    managerRepository = aManagerRepository;

    productAreaGroupArray = new ArrayListModel();
    productAreaGroupSelectionList = new SelectionInList(
        (ListModel) productAreaGroupArray);
   
    productAreaGroupSelectionList.addPropertyChangeListener(
        SelectionInList.PROPERTYNAME_SELECTION_EMPTY,
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

   * @return komboboks
   */
  public JComboBox getComboBoxSupplierType(PresentationModel presentationModel) {
    SupplierTypeManager supplierTypeManager = (SupplierTypeManager) ModelUtil
        .getBean("supplierTypeManager");
    supplierTypeList = new ArrayListModel(supplierTypeManager.findAll());
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            (ListModel) supplierTypeList,
            presentationModel
                .getBufferedModel(SupplierModel.PROPERTY_SUPPLIER_TYPE)));
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

    assemblyReportFactory = aAssemblyReportFactory;
    currentSupplier = aSupplier;

    this.orderViewHandler = orderViewHandlerFactory.create(true);
    this.currentYearWeek = aYearWeek;
    assemblyList = new ArrayListModel();
    assemblySelectionList = new SelectionInList((ListModel) assemblyList);
    initLists();
    initMenus();
    initMailConfig();
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

   *
   * @param order1
   */
  protected void initOrderLines(Order order1) {
    if (order1 != null) {
      orderArticleList = new ArrayListModel();
      orderManager.lazyLoadOrder(order1, new LazyLoadOrderEnum[] {
          LazyLoadOrderEnum.EXTERNAL_ORDER,
          LazyLoadOrderEnum.ORDER_LINES,
          LazyLoadOrderEnum.ORDER_COSTS });
      if (order1.getOrderLines() != null) {
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

   */
  @SuppressWarnings("unchecked")
  public JXTable getTableExternalArticles(PresentationModel presentationModel) {
    Set<ExternalOrderLine> externalOrderLines = (Set<ExternalOrderLine>) presentationModel
        .getBufferedValue(ExternalOrderModel.PROPERTY_EXTERNAL_ORDER_LINES);
    externalArticleList = new ArrayListModel();
    if (externalOrderLines != null) {
      externalArticleList.addAll(externalOrderLines);
    }
    externalArticleSelectionList = new SelectionInList(
        (ListModel) externalArticleList);
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

      SupplierOrderViewHandlerFactory aSupplierOrderViewHandlerFactory,
      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());
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

  public List<Supplier> getSuppliers(YearWeek yearWeek,
      ProductAreaGroup productAreaGroup) {
    List<Supplier> suppliers = (List<Supplier>) supplierMap
        .get(productAreaGroup);
    if (suppliers == null || suppliers.size() == 0) {
      List<Supplier> suppliersHavingAssembly = new ArrayListModel(
          managerRepository.getSupplierManager().findHavingAssembly(
              yearWeek.getYear(), yearWeek.getWeek() - 1,
              yearWeek.getWeek() + 1, productAreaGroup));
      List<Supplier> activeSuppliers = new ArrayListModel(
          managerRepository.getSupplierManager()
              .findActiveByTypeName("Montering", "postalCode",
                  productAreaGroup));
      suppliers = new ArrayListModel(CollectionUtils.union(
          suppliersHavingAssembly, activeSuppliers));
      Collections.sort(suppliers, new SupplierComparator());
      supplierMap.putAll(productAreaGroup, suppliers);
    }
    return suppliers;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.