Examples of AggListEvent


Examples of org.pentaho.aggdes.ui.model.AggListEvent

  }

  public void addAgg(UIAggregate agg) {
    boolean added = list.add(agg);
    if (added) {
      fireEvent(new AggListEvent(this, AGG_ADDED, list.size() - 1));
    }
  }
View Full Code Here

Examples of org.pentaho.aggdes.ui.model.AggListEvent

        UIAggregate old = list.remove(index);
      if(index == selectedIndex){
        this.setSelectedIndex(-1);
      }
      if (old != null) {
        fireEvent(new AggListEvent(this, AGG_REMOVED, index));
      }
    } else {
      if (logger.isWarnEnabled()) {
        logger.warn("index out of bounds: " + index);
      }
View Full Code Here

Examples of org.pentaho.aggdes.ui.model.AggListEvent

  public void setSelectedIndex(int index) {
    if(selectedIndex == index){
      return;
    }
    fireEvent(new AggListEvent(this, SELECTION_CHANGING, selectedIndex));
    selectedIndex = index;
    fireEvent(new AggListEvent(this, SELECTION_CHANGED, selectedIndex));
  }
View Full Code Here

Examples of org.pentaho.aggdes.ui.model.AggListEvent

  public void aggChanged(UIAggregate agg) {
    if( ! list.contains(agg)){
      throw new IllegalArgumentException("Aggregate not in list");
    }
   
    fireEvent(new AggListEvent(this, AGG_CHANGED, list.indexOf(agg)));
  }
View Full Code Here

Examples of org.pentaho.aggdes.ui.model.AggListEvent

  }

  public void addAggs(List<UIAggregate> aggs) {
    boolean added = list.addAll(aggs);
    if (added) {
      fireEvent(new AggListEvent(this, AGGS_ADDED, list.size() - aggs.size()));
    }
  }
View Full Code Here

Examples of org.pentaho.aggdes.ui.model.AggListEvent

  }

  public void clearAggs() {
    list.clear();
    setSelectedIndex(-1);
    fireEvent(new AggListEvent(this, AGGS_CLEARED, 0));
  }
View Full Code Here

Examples of org.pentaho.aggdes.ui.model.AggListEvent

    //remove current selection
    //setSelectedIndex(-1);
   
    list.remove(agg);
    list.add(curpos+1, agg);
    fireEvent(new AggListEvent(this, AGG_CHANGED, list.indexOf(agg)));
    fireEvent(new AggListEvent(this, AGG_CHANGED, list.indexOf(agg) -1));
    setSelectedIndex(curpos+1);
  }
View Full Code Here

Examples of org.pentaho.aggdes.ui.model.AggListEvent

    //remove current selection
    //setSelectedIndex(-1);
   
    list.remove(agg);
    list.add(curpos-1, agg);
    fireEvent(new AggListEvent(this, AGG_CHANGED, list.indexOf(agg)));
    fireEvent(new AggListEvent(this, AGG_CHANGED, list.indexOf(agg) +1 ));
    setSelectedIndex(curpos-1);
  }
View Full Code Here

Examples of org.pentaho.aggdes.ui.model.AggListEvent

  }

  public void uncheckAll() {
    for(UIAggregate agg : list){
      agg.setEnabled(false);
      fireEvent(new AggListEvent(this, AGG_CHANGED, list.indexOf(agg)));
    }
  }
View Full Code Here

Examples of org.pentaho.aggdes.ui.model.AggListEvent

  }
 
  public void checkAll() {
    for(UIAggregate agg : list){
      agg.setEnabled(true);
      fireEvent(new AggListEvent(this, AGG_CHANGED, list.indexOf(agg)));
    }
   
  }
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.