Package nextapp.echo2.app

Examples of nextapp.echo2.app.Window


        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

        this.addControl(groupName, groupName, control);
    }

    public void addSeparator(String groupName) {
        Row row = new Row();
        ColumnLayoutData layout = new ColumnLayoutData();
        layout.setHeight(new JbsExtent(15, JbsExtent.PX));
        row.setLayoutData(layout);
        this.addControl(groupName, row);
    }
View Full Code Here

        colMain.add(label);
    }
   
    public void addBlankLine() {
        Row row = new Row();
        ColumnLayoutData layout = new ColumnLayoutData();
        layout.setHeight(new JbsExtent(15,JbsExtent.PX));
        row.setLayoutData(layout);
        colMain.add(row);
    }
View Full Code Here

                    break;
                default :
                    align = Alignment.LEFT;
            }
           
            TableLayoutData layoutData = (TableLayoutData)((Label)component).getLayoutData();
            layoutData.setAlignment(new Alignment(align, Alignment.CENTER));
            ((Label)component).setLayoutData(layoutData);
        }
        return component;
    }
View Full Code Here

        //If nor group is found then create a new one:
        if (newColumn == null) {
            newColumn = new Column();
            newColumn.setId(groupName);
            newColumn.setStyleName("Default");
            AccordionPaneLayoutData layoutData = new AccordionPaneLayoutData();
            layoutData.setTitle(groupTitle);
            newColumn.setLayoutData(layoutData);
            this.add(newColumn);
        }
        return newColumn;
    }
View Full Code Here

TOP

Related Classes of nextapp.echo2.app.Window

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.