protected void addItems(List<? extends Action> actions){
  ActionContainerFactory factory=new ActionContainerFactory(null);
  for (  Action action : actions) {
    AbstractActionExt a=(AbstractActionExt)action;
    if (action.isEnabled()) {
      if (a.isStateAction())       addItem(createCheckBox((AbstractActionExt)action));
 else {
        addItem(factory.createButton(action));
      }
    }
  }
}

protected void addItems ( List < ? extends Action > actions ) { ActionContainerFactory factory = new ActionContainerFactory ( null ) ; for ( Action action : actions ) { AbstractActionExt a = ( AbstractActionExt ) action ; if ( action . isEnabled ( ) ) { if ( a . isStateAction ( ) ) addItem ( createCheckBox ( ( AbstractActionExt ) action ) ) ; else { addItem ( factory . createButton ( action ) ) ; } } } }
here : creates and adds a menuitem to the popup for every action in the list . does nothing if if the list is empty . pre : actions ! = null .
