Package net.sourceforge.ganttproject.action

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


        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

                    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

        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

                    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

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

        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

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

        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

Related Classes of net.sourceforge.ganttproject.action.CancelAction

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.