public WgtEditOneTrigger() {
    VerticalPanel vpanel = new VerticalPanel();
    m_lstConditions.addChangeListener(this);
    m_lstConditions.setVisibleItemCount(10);
    vpanel.add(m_lstConditions);

    m_lstConditionsClass.setVisibleItemCount(1);
    for (ConditionClass conditionClass : ConditionClass.values()) {
      m_lstConditionsClass.addItem(conditionClass.name());
    }
    vpanel.add(m_lstConditionsClass);

    m_btnNewCondition.addClickHandler(this);
    vpanel.add(m_btnNewCondition);
    m_lstActions.addChangeListener(this);
    m_lstActions.setVisibleItemCount(10);
    vpanel.add(m_lstActions);

    m_lstActionsClass.setVisibleItemCount(1);
    for (ActionClass actionClass : ActionClass.values()) {
      m_lstActionsClass.addItem(actionClass.name());
    }
    vpanel.add(m_lstActionsClass);

    m_btnNewAction.addClickHandler(this);
    vpanel.add(m_btnNewAction);

    initWidget(vpanel);
  }
 /* (non-Javadoc)
  * @see com.google.gwt.user.client.ui.ClickHandler#onClick(com.google.gwt.user.client.ui.Widget)
  */
 @Override
 public void onClick(ClickEvent p_event) {
   if (getTrigger() == null) {
     return;
   }
   if (p_event.getSource() == m_btnNewCondition) {
     AnCondition condition =
         ConditionClass.valueOf(
                 m_lstConditionsClass.getItemText(m_lstConditionsClass.getSelectedIndex()))
             .newCondition();
     getTrigger().getConditions().add(condition);
     refreshConditions();
   } else if (p_event.getSource() == m_btnNewAction) {
     AnAction action =
         ActionClass.valueOf(m_lstActionsClass.getItemText(m_lstActionsClass.getSelectedIndex()))
             .newAction();
     getTrigger().getActions().add(action);
     refreshActions();
   }
 }