Package com.lightcrafts.app

Examples of com.lightcrafts.app.ComboFrame


    BrowserPrintMenuItem(ComboFrame frame) {
        super(frame, "BrowserPrint");
    }

    public void actionPerformed(ActionEvent event) {
        ComboFrame frame = getComboFrame();
        AbstractImageBrowser browser = getBrowser();
        File file = browser.getLeadSelectedFile();
        if (file != null) {
            Application.print(frame, file);
        }
View Full Code Here


        // FIXME: allow printing based on browser selection
    }

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

            }
        );
    }

    void update() {
        ComboFrame frame = getComboFrame();
        Document newDoc = (frame != null) ? frame.getDocument() : null;
        Document oldDoc = docRef.get();

        if (newDoc != oldDoc) {

            JMenuItem polygonItem = (JMenuItem) get("polygon");
View Full Code Here

        emptyItem.setEnabled(false);
        add(emptyItem);
    }

    void update() {
        ComboFrame frame = getComboFrame();
        Document newDoc = (frame != null) ? frame.getDocument() : null;
        Document oldDoc = docRef.get();

        if (newDoc != oldDoc) {
            removeAll();
View Full Code Here

    EditorLayoutMenuItem(ComboFrame frame) {
        super(frame, "EditorLayout");
    }

    void update() {
        final ComboFrame frame = getComboFrame();
        setEnabled(frame != null);
    }
View Full Code Here

        setEnabled(frame != null);
    }

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

                ((UpdatableDisposableMenu) item).update();
            }
        }
        // Now that the UpdatableMenuItems have updated, it's OK for the
        // last Document to get GC'd.
        ComboFrame frame = getComboFrame();
        if (frame != null) {
            Document doc = frame.getDocument();
            put("document", doc);
        }
        else {
            put("document", null);
        }
View Full Code Here

    ManageTemplatesMenuItem(ComboFrame frame) {
        super(frame, "ManageTemplate");
    }

    public void actionPerformed(ActionEvent event) {
        ComboFrame frame = getComboFrame();
        TemplateList.showDialog(frame);
    }
View Full Code Here

        super(frame, "SaveTemplate");
    }

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

    }

    public abstract void actionPerformed(ActionEvent event);

    protected void performPreAction( ActionEvent event ) {
        final ComboFrame frame = getComboFrame();
        if ( frame != null ) {
            final Editor editor = frame.getEditor();
            editor.setMode( EditorMode.ARROW );
        }
    }
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.