Examples of WindowCloseListener


Examples of catchemrpg.functions.WindowCloseListener

        window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        window.setBounds(0, 0, BaseVars.WINDOWWIDTH, BaseVars.WINDOWHEIGHT);
        window.setTitle(BaseVars.lang.ui$windowTitle);
        window.requestFocus();
        window.setResizable(false);
        window.addWindowListener(new WindowCloseListener());
// Create canvas for painting...
        canvas = new Canvas();
        canvas.setIgnoreRepaint(true);
        canvas.setSize(BaseVars.WINDOWWIDTH, BaseVars.WINDOWHEIGHT);
//add listeners to the canvas, not the window.       
View Full Code Here

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

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

        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

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

    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

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

    // 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

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

    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

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

    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

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

    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

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

    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

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

    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
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.