Package nextapp.echo2.app

Examples of nextapp.echo2.app.Font


    protected KeyStrokeListener createKeyStrokeListener() {
        KeyStrokeListener ks = new KeyStrokeListener();

        ks.addKeyCombination(KeyStrokeListener.ALT_MASK + KeyStrokeListener.VK_O, "OK");
        ks.addKeyCombination(KeyStrokeListener.VK_F10,"OK");
        ks.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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


        this.setToggleRolloverIcon(new ResourceImageReference(IMG_DROPDOWN));
    }

    public void addMenuItem(MenuItem menuItem) {
        menuItem.setBorder(BorderEx.NONE);
        menuItem.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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

     * @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(JbsDialogWindow.this, actionCommand));
            } catch (Throwable t) {
                logger.error("Error adding action.",t);
            }
        }
    }
View Full Code Here

        this.getTextArea().setWidth(new JbsExtent(100, JbsExtent.PERCENT));
        this.getTextArea().setHeight(new JbsExtent(200, JbsExtent.PX));

        this.setBtnSelect(new JbsButton("..."));
        this.getBtnSelect().setWidth(new JbsExtent(100, JbsExtent.PERCENT));
        this.getBtnSelect().addActionListener(new ActionListener() {

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

    }

    public void editTexts() {
        final FmLangStringsEditLong fmLangStringsEdit = new FmLangStringsEditLong(JbsL10N.getString("Language.editStrings"));
        fmLangStringsEdit.setLangStrings(this.getLangStrings());
        fmLangStringsEdit.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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

     */
    @Override
    protected KeyStrokeListener createKeyStrokeListener() {
        KeyStrokeListener ks = new KeyStrokeListener();
        ks.addKeyCombination(KeyStrokeListener.VK_ESCAPE, "CANCEL");
        ks.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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

        this.getTextArea().setWidth(new JbsExtent(100, JbsExtent.PERCENT));
        this.getTextArea().setHeight(new JbsExtent(200, JbsExtent.PX));

        this.setBtnSelect(new JbsButton("..."));
        this.getBtnSelect().setWidth(new JbsExtent(100, JbsExtent.PERCENT));
        this.getBtnSelect().addActionListener(new ActionListener() {

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

    }

    public void editTexts() {
        final FmLangStringsEditLong fmLangStringsEdit = new FmLangStringsEditLong(JbsL10N.getString("Language.editStrings"));
        fmLangStringsEdit.setLangStrings(this.getLangStrings());
        fmLangStringsEdit.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

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

     * @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

TOP

Related Classes of nextapp.echo2.app.Font

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.