예제 #1
0
  public void expansionStateChanged(ExpansionEvent e) {
    if (!inProgress && e.getSource() instanceof Section) {
      inProgress = true;
      boolean expand = ((Section) e.getSource()).isExpanded();

      for (Section section : sections) {
        section.setExpanded(expand);
      }

      inProgress = false;
    }
  }
 @Override
 public void expansionStateChanged(ExpansionEvent e) {
   getPreferences().putBoolean(component.ensureUuid(), e.getState());
 }