예제 #1
0
 protected WizardPopup createPopup(WizardPopup parent, PopupStep step, Object parentValue) {
   if (step instanceof ListPopupStep) {
     return new ListPopupImpl(parent, (ListPopupStep) step, parentValue);
   } else if (step instanceof TreePopupStep) {
     return new TreePopupImpl(parent, (TreePopupStep) step, parentValue);
   } else {
     throw new IllegalArgumentException(step.getClass().toString());
   }
 }