Examples of MessageDialog


Examples of org.beryl.gui.MessageDialog

                  propertyModel.addRow(new PropertyTableRow(key));
                modified = true;
              }
              ((Dialog) source.getParentWidgetByClass(Dialog.class)).dispose();
            } catch (Exception e) {
              new MessageDialog(e);
            }
          }
        }, new MapDataModel());
        dialog.initDialog(frame);
        dialog.show();
      } else if (name.equals("popup")) {
        PopupMenu popup = (PopupMenu) constructWidget("PropertyPopup");
        popup.popup(event);
      } else if (name.equals("delete")) {
        TableRow rows[] = (TableRow[]) dataModel.getValue("property.value");
        for (int i = 0; i < rows.length; i++) {
          PropertyTableRow row = (PropertyTableRow) rows[i];
          propertyModel.removeRow(row);
          properties.remove(row.getValue("key"));
        }
      } else if (name.equals("clear")) {
        dataModel.setValue("property.value", new TableRow[] {
        });
        propertyModel.clear();
        properties.clear();
      } else if (name.equals("import")) {
        File file = DialogUtils.showOpenFileDialog(frame, "properties");
        if (file != null) {
          properties.load(new FileInputStream(file));
          buildModel();
        }
      } else if (name.equals("save")) {
        doSave();
      } else if (name.equals("refresh")) {
        widgetTree.refreshInternationalProperties();
      }
    } catch (Exception e) {
      new MessageDialog(e);
    }
  }
View Full Code Here

Examples of org.beryl.gui.MessageDialog

        try {
          userObject.widget.setProperty(
            (String) getValue("name"),
            PropertyFactory.getInstance().constructProperty(propertyNode));
        } catch (Exception ex) {
          new MessageDialog(ex);
        }

        WidgetTree.revalidate(userObject.widget);
      } else if (propertyNode.getNodeName().equals("layout")) {
        getPropertyAdapter().toDOM(event.getNewValue(), propertyNode);
       
        if (!propertyNode.getAttribute("type").equals("hig") && !propertyNode.getAttribute("type").equals("")) {
          propertyNode.removeAttribute("horiz");
          propertyNode.removeAttribute("vert");
          propertyNode.removeAttribute("hweights");
          propertyNode.removeAttribute("vweights");
        }

        try {
          userObject.widget.setProperty(
            "layout",
            LayoutFactory.getInstance().constructLayout(userObject.widget, propertyNode));
        } catch (Exception ex) {
          new MessageDialog(ex);
        }

        WidgetTree.revalidate(userObject.widget);
      }
    }
View Full Code Here

Examples of org.beryl.gui.MessageDialog

  public void show() {
    try {
      dialog.initDialog(parent);
      dialog.show();
    } catch (GUIException e) {
      new MessageDialog(e);
    }
  }
View Full Code Here

Examples of org.beryl.gui.MessageDialog

      } else if (name.equals("ok")) {
        doOK();
        dialog.dispose();
      }
    } catch (Exception e) {
      new MessageDialog(dialog, e);
    }
  }
View Full Code Here

Examples of org.beryl.gui.MessageDialog

      } else if (name.equals("anchor")) {
        AnchorEditor anchorEditor = new AnchorEditor(dialog, anchorElement, null);
        anchorEditor.show();
      }
    } catch (Exception e) {
      new MessageDialog(e);
    }
  }
View Full Code Here

Examples of org.beryl.gui.MessageDialog

        if (newFile != null) {
          dataModel.setValue("file", newFile);
        }
      }
    } catch (Exception ex) {
      new MessageDialog(dialog, ex);
    }
  }
View Full Code Here

Examples of org.beryl.gui.MessageDialog

        new About(frame);
      } else if (name.startsWith("insert:")) {
        widgetTree.doInsert(name.substring(7));
      }
    } catch (GUIException e) {
      new MessageDialog(e);
    }
  }
View Full Code Here

Examples of org.beryl.gui.MessageDialog

        new HelpSet(
          cl,
          HelpSet.findHelpSet(cl, "resources/builder/help/builder." + locale.toString() + ".hs")));
      new Builder();
    } catch (Exception e) {
      new MessageDialog(e);
    }
  }
View Full Code Here

Examples of org.beryl.gui.MessageDialog

         
          Builder.markModified();
        }
      }
    } catch (GUIException e) {
      new MessageDialog(e);
    }
  }
View Full Code Here

Examples of org.beryl.gui.MessageDialog

        dialog.dispose();
      } else if (event.getName().equals("cancel")) {
        dialog.dispose();
      }
    } catch (Exception e) {
      new MessageDialog(dialog, e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.