Exemplo n.º 1
0
 /**
  * Removes a configuration element created listener.
  *
  * @param listener the listener.
  */
 public void removeConfigurationElementCreatedListener(
     ConfigurationElementCreatedListener listener) {
   super.removeConfigurationElementCreatedListener(listener);
   for (SchemaElementPanel panel : panels) {
     panel.removeConfigurationElementCreatedListener(listener);
   }
 }
Exemplo n.º 2
0
 /**
  * Tells whether the user chose to save the changes in the panel, to not save them or simply
  * canceled the selection in the tree.
  *
  * @return the value telling whether the user chose to save the changes in the panel, to not save
  *     them or simply canceled the selection in the tree.
  */
 public UnsavedChangesDialog.Result checkUnsavedChanges() {
   if (schemaElementPanel != null) {
     return schemaElementPanel.checkUnsavedChanges();
   }
   return UnsavedChangesDialog.Result.DO_NOT_SAVE;
 }
Exemplo n.º 3
0
 /**
  * Method used to know if there are unsaved changes or not. It is used by the schema selection
  * listener when the user changes the selection.
  *
  * @return <CODE>true</CODE> if there are unsaved changes (and so the selection of the schema
  *     should be canceled) and <CODE>false</CODE> otherwise.
  */
 public boolean mustCheckUnsavedChanges() {
   return schemaElementPanel != null && schemaElementPanel.mustCheckUnsavedChanges();
 }
Exemplo n.º 4
0
 /**
  * Removes an schema element selection listener.
  *
  * @param listener the schema element selection listener.
  */
 public void removeSchemaElementSelectionListener(SchemaElementSelectionListener listener) {
   for (SchemaElementPanel panel : panels) {
     panel.removeSchemaElementSelectionListener(listener);
   }
 }