Package org.jdesktop.swingx.decorator

Examples of org.jdesktop.swingx.decorator.PatternFilter


  final void setAdditionFilters(final List<Filter> filters) {
    ProductionUnit productionUnit = (ProductionUnit) productionUnitSelectionList
        .getSelection();
    if (productionUnit != null) {
      PatternFilter filterProductionUnit = new PatternFilter(
          productionUnit.getProductionUnitName(),
          Pattern.CASE_INSENSITIVE, 8);
      filters.add(filterProductionUnit);
    }
  }
View Full Code Here


      ProductAreaGroup productAreaGroup) {
    currentProductAreaGroup = productAreaGroup;
    if (tableOrders != null) {
      List<Filter> filters = new ArrayList<Filter>();
      if (sentFilter) {
        Filter filter = new PatternFilter("Nei",
            Pattern.CASE_INSENSITIVE, tableOrders.getColumnExt(
                TransportOrderTableModel.TransportColumn.SENDT
                    .getColumnName()).getModelIndex());
        filters.add(filter);
      }
View Full Code Here

      group = null;
    }
    List<Filter> filterList = new ArrayList<Filter>();

    if (!checkBoxFilter.isSelected()) {
      Filter filterApplied = new PatternFilter("---",
          Pattern.CASE_INSENSITIVE, getApplyColumn());
      filterList.add(filterApplied);
    }
    if (!checkBoxFilterStandard.isSelected()) {
      Filter filterStandard = new PatternFilter("nei",
          Pattern.CASE_INSENSITIVE, 11);
      filterList.add(filterStandard);
    }
    if (!checkBoxFilterOwn.isSelected()) {
      Filter filterStandard = new PatternFilter("ja",
          Pattern.CASE_INSENSITIVE, 11);
      filterList.add(filterStandard);
    }
    if (group != null) {
      PatternFilter filterProductAreaGroup = new PatternFilter(
          group.getProductAreaGroupName(), Pattern.CASE_INSENSITIVE,
          getProductAreaColumn());
      filterList.add(filterProductAreaGroup);
    }
    setAdditionFilters(filterList);
View Full Code Here

          tableOrders);
      if (productAreaGroup != null
          && !productAreaGroup.getProductAreaGroupName()
              .equalsIgnoreCase("Alle")) {

        Filter[] filters = new Filter[] { new PatternFilter(
            productAreaGroup.getProductAreaGroupName(),
            Pattern.CASE_INSENSITIVE, orderPanelType.getProductAreaGroupColumn()) };
        FilterPipeline filterPipeline = new FilterPipeline(filters);
        tableOrders.setFilters(filterPipeline);
View Full Code Here

          .getValue(ProductAreaGroupModel.PROPERTY_PRODUCT_AREA_GROUP);
      if (group != null
          && !group.getProductAreaGroupName()
              .equalsIgnoreCase("Alle")) {

        Filter filter = new PatternFilter(group
            .getProductAreaGroupName(), Pattern.CASE_INSENSITIVE,
            table.getColumnExt("Produktomr�de").getModelIndex());
        FilterPipeline filterPipeline = new FilterPipeline(
            new Filter[] { filter });
        table.setFilters(filterPipeline);
View Full Code Here

    objectSelectionList.clearSelection();
   
    if(checkBoxShowInactive.isSelected()){
      table.setFilters(null);
    }else{
      Filter filterApplied = new PatternFilter("nei",
          Pattern.CASE_INSENSITIVE, 5);
      FilterPipeline filterPipeline = new FilterPipeline(filterApplied);
      table.setFilters(filterPipeline);
    }
   
View Full Code Here

  private void handleFilter() {
    if (currentProductAreaGroup != null
        && !currentProductAreaGroup.getProductAreaGroupName()
            .equalsIgnoreCase("Alle")) {
      Filter[] filters = new Filter[] { new PatternFilter(
          currentProductAreaGroup.getProductAreaGroupName(),
          Pattern.CASE_INSENSITIVE, 8) };
      FilterPipeline filterPipeline = new FilterPipeline(filters);
      tableOrders.setFilters(filterPipeline);
    } else {
View Full Code Here

   * @param presentationModel
   * @return tabell
   */
  public JXTable getTableOrderArticles(PresentationModel presentationModel) {
    // tar ikke med order som allerede er bestilt
    Filter[] filters = new Filter[] { new PatternFilter("---",
        Pattern.CASE_INSENSITIVE, 3) };
    FilterPipeline filterPipeline = new FilterPipeline(filters);

    ExternalOrder externalOrder = ((ExternalOrderModel) presentationModel
        .getBean()).getObject();
View Full Code Here

    orderViewHandler
        .handleFilter(group, OrderPanelTypeEnum.ASSEMBLY_ORDERS);

    if (group != null
        && !group.getProductAreaGroupName().equalsIgnoreCase("Alle")) {
      Filter[] filters = new Filter[] { new PatternFilter(group
          .getProductAreaGroupName(), Pattern.CASE_INSENSITIVE, 5) };
      FilterPipeline filterPipeline = new FilterPipeline(filters);
      tableDeviation.setFilters(filterPipeline);
    } else {
      tableDeviation.setFilters(null);
View Full Code Here

        : group;

    List<Filter> filterList = new ArrayList<Filter>();

    if (!checkBoxFilter.isSelected()) {
      PatternFilter filterDone = new PatternFilter("Nei",
          Pattern.CASE_INSENSITIVE, 10);
      filterList.add(filterDone);
    }
    if (group != ProductAreaGroup.UNKNOWN) {
      if (!group.getProductAreaGroupName().equalsIgnoreCase("Takstol")) {
        filterList.add(new PatternFilter(group
            .getProductAreaGroupName(), Pattern.CASE_INSENSITIVE,
            13));
      } else {
        filterList.add(new PatternFilter(".*e.*",
            Pattern.CASE_INSENSITIVE, 7));
      }

    }
    if (filterList.size() != 0) {
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.decorator.PatternFilter

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.