Пример #1
0
 public void cambiarPeriodo() {
   ValueHolder holder = new ValueHolder(periodo);
   AbstractDialog dialog = Binder.createPeriodoSelector(holder);
   dialog.open();
   if (!dialog.hasBeenCanceled()) {
     periodo = (Periodo) holder.getValue();
     load();
     updatePeriodoLabel();
   }
 }
Пример #2
0
 /** Called when user confirms the information. */
 public void doAccept() {
   String validationMessage = validateInformation();
   if (validationMessage == null) {
     super.doAccept();
   } else {
     JOptionPane.showMessageDialog(
         this,
         validationMessage,
         Strings.message("guide.dialog.error"),
         JOptionPane.ERROR_MESSAGE);
   }
 }
Пример #3
0
 /**
  * Opens a dialog.
  *
  * @param set guides set.
  */
 public void openDialog(GuidesSet set) {
   guidesSet = set;
   super.open();
 }