Examples of FilterModel


Examples of org.apache.beehive.netui.databinding.datagrid.api.filter.FilterModel

                    if(value.startsWith(namespacePrefix))
                        filters = decodeFilter(value);
                    else
                        addParam(key, value);
                }
                FilterModel filterModel = _config.createFilterModel(filters);
                _state.setFilterModel(filterModel);
            }
            else if(key.equals(PARAM_KEY_ROW)) {
                int row = DEFAULT_ROW;
                for(int i = 0; i < values.length; i++) {
View Full Code Here

Examples of org.apache.beehive.netui.databinding.datagrid.api.filter.FilterModel

     * Create a {@link FilterModel} object.  The default implementation returned is {@link FilterModel}.
     * @param filters the list of filters for a data grid
     * @return a filter model
     */
    public FilterModel createFilterModel(List/*<Filter>*/ filters) {
        return new FilterModel(filters);
    }
View Full Code Here

Examples of org.apache.beehive.netui.databinding.datagrid.api.filter.FilterModel

        assert tableRenderer != null;

        ArrayList/*<String>*/ styleClasses = new ArrayList/*<String>*/();

        /* todo: refactor.  add a chain of style decorators here; easier to extend this way. */
        FilterModel filterModel = dataGridModel.getState().getFilterModel();
        if(filterModel.isFiltered(_headerCellModel.getFilterExpression()))
            styleClasses.add(dataGridModel.getStyleModel().getHeaderCellFilteredClass());

        SortModel sortModel = dataGridModel.getState().getSortModel();
        if(sortModel.isSorted(_headerCellModel.getSortExpression()))
            styleClasses.add(dataGridModel.getStyleModel().getHeaderCellSortedClass());
View Full Code Here

Examples of org.apache.log4j.chainsaw.filter.FilterModel

        table.getSelectionModel().setSelectionInterval(0, 0);
    }
  }

  public static void main(String[] args) {
    FilterModel filterModel = new FilterModel();
    RuleColorizer colorizer = new RuleColorizer();

    ColorPanel p = new ColorPanel(colorizer, filterModel);
    final JFrame f = new JFrame();
View Full Code Here

Examples of org.apache.log4j.chainsaw.filter.FilterModel

    panel.add(
      new JLabel("Enter expression for new tab:  "), BorderLayout.NORTH);

    final JTextField textField = new JTextField();
    textField.addKeyListener(
      new ExpressionRuleContext(new FilterModel(), textField));
    panel.add(textField, BorderLayout.CENTER);

    JButton ok = new JButton("OK");
    JButton close = new JButton("Close");
    JPanel lowerPanel = new JPanel();
View Full Code Here

Examples of org.apache.log4j.chainsaw.filter.FilterModel

  public RuleTest(String inFixText) {
    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    getContentPane().setLayout(new BorderLayout());

    filterModel = new FilterModel();

    final List eventList = new ArrayList();
    MDC.put("entry1", "123");
    eventList.add(
      new LoggingEvent(
View Full Code Here

Examples of org.apache.log4j.chainsaw.filter.FilterModel

        table.getSelectionModel().setSelectionInterval(0, 0);
    }
  }

  public static void main(String[] args) {
    FilterModel filterModel = new FilterModel();
    RuleColorizer colorizer = new RuleColorizer();

    ColorPanel p = new ColorPanel(colorizer, filterModel);
    final JFrame f = new JFrame();
View Full Code Here

Examples of org.apache.log4j.chainsaw.filter.FilterModel

    panel.add(
      new JLabel("Enter expression for new tab:  "), BorderLayout.NORTH);

    final JTextField textField = new JTextField();
    textField.addKeyListener(
      new ExpressionRuleContext(new FilterModel(), textField));
    panel.add(textField, BorderLayout.CENTER);

    JButton ok = new JButton("OK");
    JButton close = new JButton("Close");
    JPanel lowerPanel = new JPanel();
View Full Code Here

Examples of org.gephi.filters.api.FilterModel

    public FilterModel getModel() {
        return model;
    }

    public synchronized FilterModel getModel(Workspace workspace) {
        FilterModel filterModel = workspace.getLookup().lookup(FilterModel.class);
        if (filterModel == null) {
            filterModel = new FilterModelImpl(workspace);
            workspace.add(filterModel);
        }
        return filterModel;
View Full Code Here

Examples of org.gephi.filters.api.FilterModel

        return isSelected() ? "<b>" + (query.getName()) + "</b>" : query.getName();
    }

    private boolean isSelected() {
        FilterController fc = Lookup.getDefault().lookup(FilterController.class);
        FilterModel fm = fc.getModel();
        return (fm.isFiltering() || fm.isSelecting()) && fc.getModel().getCurrentQuery() == query;
        //return FiltersTopComponent.findInstance().getUiModel().getSelectedRoot() == query;
    }
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.