Package org.yaac.client.widget.stat

Examples of org.yaac.client.widget.stat.CountSizeSingleFilterPanel


    chartTypeChoice.addItem("Column Chart", CHART_TYPE_COLUMN);
   
    // ================init filter configuration panel===================

    // init namespace filters   
    namespaceSingleConfig = new CountSizeSingleFilterPanel(NAMESPACE_RADIO_GROUP);
    namespaceSingleConfig.addOnChangeHandler(new CountSizeSingleFilterPanel.OnChangeHandler() {
      @Override
      public void onChange(CountSizeFilterChoice val) {
        refreshNamespaceChart();
      }
    });
   
    namespaceMultiConfig = new CountSizeMultiFilterPanel();
    namespaceMultiConfig.addOnChangeHandler(new CountSizeMultiFilterPanel.OnChangeHandler() {
      @Override
      public void onChange(Set<CountSizeFilterChoice> vals) {
        refreshNamespaceChart();
      }
    });
   
    // has to be added in this order
    namespaceChartConfig.add(namespaceSingleConfig);
    namespaceChartConfig.add(namespaceMultiConfig)
    namespaceChartConfig.setAnimationEnabled(true);
    namespaceChartConfig.showWidget(CONFIG_IDX_BAR_COLUMN)// bar chart will be selected by default
   
    // init property type filters
    propertyTypeSingleConfig = new CountSizeSingleFilterPanel(PROPERTY_TYPE_RADIO_GROUP);
    propertyTypeSingleConfig.addOnChangeHandler(new CountSizeSingleFilterPanel.OnChangeHandler() {
      @Override
      public void onChange(CountSizeFilterChoice val) {
        refreshPropertyTypeChart();
      }
View Full Code Here

TOP

Related Classes of org.yaac.client.widget.stat.CountSizeSingleFilterPanel

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.