Package nextapp.echo2.app.update

Examples of nextapp.echo2.app.update.UpdateManager


     * @param actionCommand
     */
    protected void addAction(String actionCommand) {
        EventListener[] listeners = listenerList.getListeners(ActionListener.class);
        for (int i = 0; i < listeners.length; i++) {
            ActionListener actionListener = (ActionListener) listeners[i];
            try {
                actionListener.actionPerformed(new ActionEvent(PnEditJbsObject.this, actionCommand));
            } catch (Throwable t) {
                logger.error("Error adding action.",t);
            }
        }
    }
View Full Code Here


    protected void fillToolpane() {
        super.fillToolpane();
     
        JbsObjectToolPaneButton btnGoogleMaps = new JbsObjectToolPaneButton("globe.png", JbsL10N.getString("Address.showMap"), true);
        btnGoogleMaps.setToolTipText(JbsL10N.getString("Address.showMapTooltip"));
        btnGoogleMaps.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                Address address = (Address) getSelectedJbsBaseObject();
                JbsGoogleMapsWindow window = new JbsGoogleMapsWindow();
                window.setAddress(address);
                window.showForm();
            }
        });
        this.getToolPane().addControl(JbsL10N.getString(PnListModule.TOOLPANEGROUP_ACTIONS), btnGoogleMaps);

        JbsObjectToolPaneButton btnGoogleRoute = new JbsObjectToolPaneButton("globe.png", JbsL10N.getString("Address.showRoute"), true);
        btnGoogleRoute.setToolTipText(JbsL10N.getString("Address.showRouteTooltip"));
        btnGoogleRoute.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                Address startAddress = new Address();

                startAddress.setStreet(ClientGlobals.getCompany().getStreet());
                startAddress.setZip(ClientGlobals.getCompany().getZip());
                startAddress.setCity(ClientGlobals.getCompany().getCity());

                Address endAddress = (Address) getSelectedJbsBaseObject();
                JbsGoogleMapsWindow window = new JbsGoogleMapsWindow();

                window.setRouteAddress(startAddress, endAddress);
                window.showForm();
            }
        });
        this.getToolPane().addControl(JbsL10N.getString(PnListModule.TOOLPANEGROUP_ACTIONS), btnGoogleRoute);

        JbsObjectToolPaneButton btnGoogle = new JbsObjectToolPaneButton("globe.png", JbsL10N.getString("Address.showGooglePersonInfo"), true);
        btnGoogle.setToolTipText(JbsL10N.getString("Address.showGooglePersonInfoTooltip"));
        btnGoogle.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                Address address = (Address) getSelectedJbsBaseObject();
                JbsGoogleWindow window = new JbsGoogleWindow();
                window.setPerson(address);
                window.showForm();
            }
        });
        this.getToolPane().addControl(JbsL10N.getString(PnListModule.TOOLPANEGROUP_ACTIONS), btnGoogle);
       
        JbsObjectToolPaneButton btnMassLetters = new JbsObjectToolPaneButton("letter.png", JbsL10N.getString("Address.createMassLettersTitle"), false);
        btnMassLetters.setToolTipText(JbsL10N.getString("Address.createMassLettersTooltip"));
        btnMassLetters.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                printLetters();
            }
        });
View Full Code Here

        try {
            MassLetterWizard massLetterWizard = new MassLetterWizard();
            massLetterWizard.setContactFilter(this.getFilter(), this.getContactType());

            FmWizard fmWizard = new FmWizard(massLetterWizard, JbsL10N.getString("MassLetterWizard.title"));
            fmWizard.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    logger.debug("Reloading");
                    reload();
                }
View Full Code Here

        this.getKeyStrokeListener().addKeyCombination(KeyStrokeListener.VK_UP, "UP");
        this.getKeyStrokeListener().addKeyCombination(KeyStrokeListener.VK_RETURN, "EDIT");
        this.getKeyStrokeListener().addKeyCombination(KeyStrokeListener.ALT_MASK + KeyStrokeListener.VK_E);
        this.getKeyStrokeListener().addKeyCombination(KeyStrokeListener.VK_PAGE_DOWN, "NEXTPAGE");
        this.getKeyStrokeListener().addKeyCombination(KeyStrokeListener.VK_PAGE_UP, "PREVIUOSPAGE");
        this.getKeyStrokeListener().addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                logger.debug(arg0.getActionCommand());
View Full Code Here

        this.tbMain = new JbsToolbar();
        this.pnMain = new ContentPane();
       
        this.btnNew = new JbsObjectToolPaneButton("add.png",JbsL10N.getString("StdList.newCaption"),false);
        this.btnNew.setToolTipText(JbsL10N.getString("StdList.newTooltip"));
        this.btnNew.addActionListener(new ActionListener() {
       
            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                newJbsObject();
            }
        });

        this.btnDelete = new JbsObjectToolPaneButton("remove.png", JbsL10N.getString("StdList.deleteCaption"),true);
        this.btnDelete.setToolTipText(JbsL10N.getString("StdList.deleteTooltip"));
        this.btnDelete.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                deleteJbsObject();
            }
        });

        this.btnEdit = new JbsObjectToolPaneButton("edit.png",JbsL10N.getString("StdList.editCaption"),true);
        this.btnEdit.setToolTipText(JbsL10N.getString("StdList.editTooltip"));
        this.btnEdit.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                editJbsObject();
View Full Code Here

    //fmEdit.showForm(getApplicationInstance());
    }
   
    public void deleteJbsObject() {
        JbsOptionPane msgDelete = JbsOptionPane.showConfirmDialog(this, JbsL10N.getString("Generic.deleteRequest"), JbsL10N.getString("Generic.delete"), JbsOptionPane.YES_NO_OPTION);
        msgDelete.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                if (arg0.getActionCommand().equals(JbsOptionPane.YES_OPTION)) {
                    try {
                        doDeleteJbsObject(getSelectedJbsBaseObject());
View Full Code Here

        final int labelCount = messageColumn.getComponentCount();
       
        JbsButton btnDetails = null;
        if (exception!=null) {
            btnDetails = new JbsButton("Details...");
            btnDetails.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    showException(exception);
                }
            });
View Full Code Here

     * @param e
     */
    public void actionPerformed(ActionEvent e) {
        EventListener[] listeners = listenerList.getListeners(ActionListener.class);
        for (int i = 0; i < listeners.length; i++) {
            ActionListener actionListener = (ActionListener) listeners[i];
            try {
                actionListener.actionPerformed(
                        new ActionEvent(JbsOptionPane.this, getActionCommand((Component) e.getSource())));
            } catch (Throwable t) {
                ExceptionHandler.handle(t);
            }
        }
View Full Code Here

 
  protected void addCompany() {
    fmSelectCompany = new FmJbsBaseObjectList(JbsL10N.getString("JbsCompany.selectCompany"));
    fmSelectCompany.setPnList(new PnCompanyList());
    fmSelectCompany.showForm();
    fmSelectCompany.addActionListener(new ActionListener() {
     
      private static final long serialVersionUID = 1L;

      public void actionPerformed(ActionEvent arg0) {
        if (arg0.getActionCommand().equals(JbsDialogWindowOKCancel.ACTION_OK)) {
View Full Code Here

  protected void createComponents() {
    lbCompanies= new LbCompanies();
   
    btnAdd = new JbsButton("+");
    btnAdd.setWidth(new JbsExtent(20));
    btnAdd.addActionListener(new ActionListener() {

      private static final long serialVersionUID = 1L;

      public void actionPerformed(ActionEvent arg0) {
        addCompany();
      }
     
    });
   
    btnDelete = new JbsButton("-");
    btnDelete.setWidth(new JbsExtent(20));
    btnDelete.addActionListener(new ActionListener() {

      private static final long serialVersionUID = 1L;

      public void actionPerformed(ActionEvent arg0) {
        deleteCompany();
View Full Code Here

TOP

Related Classes of nextapp.echo2.app.update.UpdateManager

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.