private void addDefaultListeners() {
    searchCriteriaForGroupSubscriptionsPanel.addListener(
        Events.Collapse,
        new Listener<BaseEvent>() {
          @Override
          public void handleEvent(BaseEvent baseEvent) {
            resize(0, 0);
          }
        });
    searchCriteriaForGroupSubscriptionsPanel.addListener(
        Events.Expand,
        new Listener<BaseEvent>() {
          @Override
          public void handleEvent(BaseEvent baseEvent) {
            resize(0, 0);
          }
        });

    myGroupSubscription.addListener(
        Events.Collapse,
        new Listener<BaseEvent>() {
          @Override
          public void handleEvent(BaseEvent baseEvent) {
            resize(0, 0);
          }
        });
    myGroupSubscription.addListener(
        Events.Expand,
        new Listener<BaseEvent>() {
          @Override
          public void handleEvent(BaseEvent baseEvent) {
            resize(0, 0);
          }
        });
  }
 public void init() {
   setHeaderVisible(false);
   myGroupSubscription = new MyGroupSubscription(groupSubscriptionsContainer);
   setTopComponent(myGroupSubscription);
   searchCriteriaForGroupSubscriptionsPanel =
       new SearchCriteriaForGroupSubscriptionsPanel(groupSubscriptionsContainer);
   searchCriteriaForGroupSubscriptionsPanel.collapse();
   setBottomComponent(searchCriteriaForGroupSubscriptionsPanel);
   addDefaultListeners();
 }