Package net.sourceforge.ganttproject.action

Examples of net.sourceforge.ganttproject.action.GPAction


            myAddAction.setEnabled(false);
        }
      myDeleteAction.setEnabled(false==myListSelectionModel.isSelectionEmpty());
    }           
    private void init() {
      myAddAction = new GPAction(){
      protected String getIconFilePrefix() {
        return null;
      }
      protected String getLocalizedName() {
        return getI18n("add");
      }

      public void actionPerformed(ActionEvent e) {
        myIntervalsModel.add(new DateInterval(myStart.getValue(), myFinish.getValue()));
        myListModel.update();
      }
      };
      myDeleteAction = new GPAction() {
      protected String getIconFilePrefix() {
        return null;
      }
      protected String getLocalizedName() {
        return getI18n("delete");
View Full Code Here

TOP

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

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.