Package com.google.gwt.user.client

Examples of com.google.gwt.user.client.WindowCloseListener


  private String pendingMessage = null;

 
  /** helps confirm the leave of the current page */
  private void _setupWindowCloseListener() {
    Window.addWindowCloseListener(new WindowCloseListener() {
      public String onWindowClosing() {
        if ( interfaceType == InterfaceType.ONTOLOGY_EDIT_NEW_VERSION
        ||   interfaceType == InterfaceType.ONTOLOGY_EDIT_NEW
        ) {
          return "If any, all edits will be lost";
View Full Code Here


        loggers = new HashMap();
        props = new HashMap();
        listeners = new PropertyChangeSupport(this);
        // add shutdown hook to ensure that the associated resource will be
        // freed when JVM exits
        Window.addWindowCloseListener(new WindowCloseListener() {
            public String onWindowClosing() {
                return null; // nothing
            }

            public void onWindowClosed() {
View Full Code Here

    return $doc;
  }-*/;

  private static void hookWindowClosing() {
    // Catch the window closing event.
    Window.addWindowCloseListener(new WindowCloseListener() {
      public void onWindowClosed() {
        detachWidgets();
      }

      public String onWindowClosing() {
View Full Code Here

    // info
    HeaderLabel header = new HeaderLabel(title, true);

    layout.add(header, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
 
    windowPanel.addWindowCloseListener(new WindowCloseListener() {
      public void onWindowClosed() {
        if(getCallback()!=null)
          getCallback().onWindowClosed();

        windowPanel = null;
View Full Code Here

    window.setAnimationEnabled(true);
    window.setSize("250px", "160px");

    window.setWidget(view);

    window.addWindowCloseListener(new WindowCloseListener() {
      public void onWindowClosed() {
        window = null;
      }

      public String onWindowClosing() {
View Full Code Here

    Label header = new Label("Instance: "+inst.getId());
    header.setStyleName("bpm-label-header");
    layout.add(header, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

    diagramWindowPanel.addWindowCloseListener(new WindowCloseListener() {
      public void onWindowClosed() {
        diagramWindowPanel = null;

      }
View Full Code Here

    instanceDataWindowPanel = new WindowPanel("Process Instance Data: "+inst.getId());
    instanceDataWindowPanel.setAnimationEnabled(true);
    instanceDataWindowPanel.setSize("320px", "240px");


    instanceDataWindowPanel.addWindowCloseListener(new WindowCloseListener() {
      public void onWindowClosed() {
        instanceDataWindowPanel = null;

      }
View Full Code Here

    header.setStyleName("bpm-label-header");
    layout.add(header, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

    // task form iframe

    windowPanel.addWindowCloseListener(new WindowCloseListener() {
      public void onWindowClosed() {
        controller.handleEvent(
            new Event(UpdateInstancesAction.ID, getCurrentDefinition())
        );
View Full Code Here

    header.setStyleName("bpm-label-header");
    layout.add(header, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
   
    // task form iframe

    windowPanel.addWindowCloseListener(new WindowCloseListener() {
      public void onWindowClosed() {
        controller.handleEvent(
            new Event(LoadTasksAction.ID, appContext.getAuthentication().getUsername())
        );
View Full Code Here

    return $doc.body;
  }-*/;

  private static void hookWindowClosing() {
    // Catch the window closing event.
    Window.addWindowCloseListener(new WindowCloseListener() {
      public void onWindowClosed() {
        // When the window is closing, detach all root panels. This will cause
        // all of their children's event listeners to be unhooked, which will
        // avoid potential memory leaks.
        for (Iterator it = rootPanels.values().iterator(); it.hasNext();) {
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.WindowCloseListener

Copyright © 2018 www.massapicom. 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.