Examples of CancelAction


Examples of fr.pingtimeout.jtail.gui.action.CancelAction

        this.fileTextField = new JTextField();
        this.fileTextField.setEditable(false);
        this.browseButton = new JButton(chooseFileAction);
        this.openButton = new JButton(indexFileAction);
        this.cancelButton = new JButton(new CancelAction() {
            @Override
            public void actionPerformed(ActionEvent actionEvent) {
                setVisible(false);
            }
        });
View Full Code Here

Examples of net.sourceforge.ganttproject.action.CancelAction

        myOkAction = new OkAction() {
            public void actionPerformed(ActionEvent e) {
                onOkPressed();
            }
        };
        myCancelAction = new CancelAction() {
            public void actionPerformed(ActionEvent e) {
                onCancelPressed();
            }
        };
        adjustButtonState();
View Full Code Here

Examples of net.sourceforge.ganttproject.action.CancelAction

        myLabel.setBorder(BorderFactory.createEmptyBorder(0,5,5,5));
      getContentPane().setLayout(new BorderLayout());
      getContentPane().add(myProgressBar, BorderLayout.CENTER);
      JPanel labelAndButton = new JPanel(new BorderLayout());
      labelAndButton.add(myLabel, BorderLayout.CENTER);
      JButton cancelButton = new JButton(new CancelAction() {
        public void actionPerformed(ActionEvent e) {
          myProgressMonitor.setCanceled(true);
          //System.err.println("\n\n"+Platform.getJobManager().currentJob().getName()+"\n\n");
          //Platform.getJobManager().currentJob().cancel();
        }
View Full Code Here

Examples of net.sourceforge.ganttproject.action.CancelAction

                    public void actionPerformed(ActionEvent e) {
                        myOptionGroup.commit();
                        myDate.commit();
                        ResourceDialogCustomColumn.this.ok();
                    }},
                new CancelAction() {
                    public void actionPerformed(ActionEvent e) {
                        myOptionGroup.rollback();
                        myDate.rollback();
                    }
        }});
View Full Code Here

Examples of net.sourceforge.ganttproject.action.CancelAction

        final OkAction okAction = new OkAction() {
            public void actionPerformed(ActionEvent e) {
                commit();
            }
        };
        final CancelAction cancelAction = new CancelAction() {
            public void actionPerformed(ActionEvent e) {
                rollback();
            }
        };
        myUIFacade.showDialog(createDialogComponent(), new Action[] { okAction,
View Full Code Here

Examples of net.sourceforge.ganttproject.action.CancelAction

                    public void actionPerformed(ActionEvent e) {
                        myOptionGroup.commit();
                        myDate.commit();
                        GanttDialogCustomColumn.this.ok();
                    }},
                new CancelAction() {
                    public void actionPerformed(ActionEvent e) {
                        myOptionGroup.rollback();
                        myDate.rollback();
                    }
        }});
View Full Code Here

Examples of net.sourceforge.ganttproject.action.CancelAction

                    public void actionPerformed(ActionEvent e) {
                        updateHolidays(dialog.getHolidays());
                    }
           
                },
                new CancelAction() {
                    public void actionPerformed(ActionEvent e) {
                    }
                }
        });
    }
View Full Code Here

Examples of net.sourceforge.ganttproject.action.CancelAction

        public void actionPerformed(ActionEvent e) {
          myGroup.commit();
          okButtonActionPerformed(e);
        }
        };
        CancelAction cancelAction = new CancelAction(){
        public void actionPerformed(ActionEvent e) {
          myGroup.rollback();
          change = false;
        }
        };
View Full Code Here

Examples of net.sourceforge.ganttproject.action.CancelAction

                              }
                          });
        }
          },
          new CancelAction() {
        public void actionPerformed(ActionEvent arg0) {
        }
          }
        };
        StringBuffer taskNames = new StringBuffer();
View Full Code Here

Examples of net.sourceforge.ganttproject.action.CancelAction

        return new ProxyOkAction(realAction, dialog, commiter);
    }

    private Action createCancelAction(final Action realAction,
            final JDialog result, final Commiter commiter) {
        return new CancelAction() {
            public void actionPerformed(ActionEvent e) {
                realAction.actionPerformed(e);
                commiter.commit();
                result.setVisible(false);
                result.dispose();
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.