Package com.lightcrafts.app

Examples of com.lightcrafts.app.ComboFrame


        JMenuItem minItem = MenuFactory.createMenuItem("Minimize");
        minItem.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ComboFrame frame = getComboFrame();
                    frame.setExtendedState(Frame.ICONIFIED);
                }
            }
        );
        minItem.setEnabled(frame != null);
        put("minItem", minItem);

        JMenuItem maxItem = MenuFactory.createMenuItem("Maximize");
        maxItem.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ComboFrame frame = getComboFrame();
                    int state = frame.getExtendedState();
                    // If already maximized, then unmaximize:
                    if ((state & Frame.MAXIMIZED_BOTH) != 0) {
                        frame.setExtendedState(state - Frame.MAXIMIZED_BOTH);
                    }
                    else {
                        frame.setExtendedState(Frame.MAXIMIZED_BOTH);
                    }
                }
            }
        );
        maxItem.setEnabled(frame != null);
        put("maxItem", maxItem);

        JMenuItem allItem = MenuFactory.createMenuItem("AllToFront");
        allItem.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    for (WindowMenu windowMenu : Menus) {
                        Window window = windowMenu.getComboFrame();
                        if (window != null) {
                            window.toFront();
                        }
                    }
                }
            }
        );
        put("allItem", allItem);

        if ((System.getProperty("lightcrafts.debug") != null) ||
            (System.getProperty("lightcrafts.journal") != null)) {

            addSeparator();

            JMenuItem journalItem = new JMenuItem("Event Journal");
            journalItem.addActionListener(
                new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        ComboFrame frame = getComboFrame();
                        JournalDialog.showJournalDialog(frame);
                    }
                }
            );
            put("journalItem", journalItem);
View Full Code Here


        setEnabled(frame != null);
    }

    public void actionPerformed(ActionEvent event) {
        performPreAction( event );
        final ComboFrame frame = getComboFrame();
        Application.open(frame);
    }
View Full Code Here

        setToolTipText(ToolTip);
        setEnabled(false);
    }

    public void actionPerformed(ActionEvent event) {
        final ComboFrame frame = getComboFrame();
        if ( frame != null )
            frame.getEditor().setMode( EditorMode.ARROW );
        scale.scaleUp();
    }
View Full Code Here

        setToolTipText(ToolTip);
        setEnabled(false);
    }

    public void actionPerformed(ActionEvent event) {
        final ComboFrame frame = getComboFrame();
        if ( frame != null )
            frame.getEditor().setMode( EditorMode.ARROW );
        scale.scaleDown();
    }
View Full Code Here

                    if (save == null) {
                        save = createTemplateSaveOptions(doc, export, ignoreResize);
                    }
                    doc.setSaveOptions(save);

                    ComboFrame frame = (ComboFrame) Dialog.getOwner();
                    DocumentWriter.save(doc, frame, false, Progress);
                    outFile = save.getFile();
                    outName = outFile.getName();
                    DocumentDatabase.addDocumentFile(outFile);
                } else {
View Full Code Here

         setToolTipText(ToolTip);
         setEnabled(false);
     }

     public void actionPerformed(ActionEvent event) {
         final ComboFrame frame = getComboFrame();
         if ( frame != null )
             frame.getEditor().setMode( EditorMode.ARROW );
         scale.setScale(Unity);
     }
View Full Code Here

TOP

Related Classes of com.lightcrafts.app.ComboFrame

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.