Examples of onClicked()


Examples of org.joshy.gfx.node.control.Button.onClicked()

        VFlexBox toolbar = new VFlexBox();
        Button bt = new Button("+");

        final DocumentActions.AddNewPage act = new DocumentActions.AddNewPage(context,context.getMain());
        bt.onClicked(new Callback<ActionEvent>() {
            public void call(ActionEvent actionEvent) throws Exception {
                try {
                    act.execute();
                } catch (Exception e) {
                    e.printStackTrace();
View Full Code Here

Examples of org.joshy.gfx.node.control.Button.onClicked()

        final Iterable<? extends SNode> items = context.getSelection().items();
        VFlexBox box = new VFlexBox();
        for(Page page : context.getDocument().getPages()) {
            final String id = page.getId();
            Button bt = new Button(" " + page.getName());
            bt.onClicked(new Callback<ActionEvent>() {
                public void call(ActionEvent event) throws Exception {
                    stage.hide();
                    for(SNode node : items) {
                        node.setLinkTarget(id);
                    }
View Full Code Here

Examples of org.joshy.gfx.node.control.Button.onClicked()

            });
            box.add(bt);
        }
       
        Button cancel = new Button("cancel");
        cancel.onClicked(new Callback<ActionEvent>() {
            public void call(ActionEvent event) throws Exception {
                stage.hide();
            }
        });
        box.add(cancel);
View Full Code Here

Examples of org.joshy.gfx.node.control.Button.onClicked()

                setSelectedFill(patternList.getModel().get(n));
                popup.setVisible(false);
            }
        });
        Button addButton = new Button("add image");
        addButton.onClicked(new Callback<ActionEvent>() {
            public void call(ActionEvent actionEvent) throws Exception {
                FileDialog fd = new FileDialog((Frame) null);
                fd.setMode(FileDialog.LOAD);
                fd.setTitle("Open Pattern Image");
                fd.setVisible(true);
View Full Code Here

Examples of org.joshy.gfx.node.control.Button.onClicked()

                    }
                }
            }
        });
        Button createButton = new Button("create new");
        createButton.onClicked(new Callback<ActionEvent>() {
            public void call(ActionEvent event) throws Exception {
                final PatternBuilder builder = new PatternBuilder();
                final Stage stage = Stage.createStage();
                Callback<ActionEvent> closeAction = new Callback<ActionEvent>() {
                    public void call(ActionEvent event) throws Exception {
View Full Code Here

Examples of org.joshy.gfx.node.control.Button.onClicked()

        final PopupMenuButton switcher = new PopupMenuButton();
        final ArrayListModel<Palette> palettes = manager.colorManager.getPalettes();
        switcher.setModel(palettes);

        Button addButton = new Button("+");
        addButton.onClicked(new Callback<ActionEvent>() {
            public void call(ActionEvent actionEvent) throws Exception {
                if(!palettes.get(switcher.getSelectedIndex()).isEditable()) {
                    return;
                }
                final Stage dialog = Stage.createStage();
View Full Code Here

Examples of org.joshy.gfx.node.control.Button.onClicked()

        final Checkbox documentBounds = new Checkbox("full document bounds");
        documentBounds.setSelected(includeDocumentBounds);
        grid.addControl(documentBounds);
        grid.nextRow();
        Button cancelButton = new Button("cancel");
        cancelButton.onClicked(new Callback<ActionEvent>() {
            public void call(ActionEvent actionEvent) throws Exception {
                stage.hide();
            }
        });
        grid.addControl(cancelButton);
View Full Code Here

Examples of org.joshy.gfx.node.control.Button.onClicked()

                stage.hide();
            }
        });
        grid.addControl(cancelButton);
        Button continueButton = new Button("continue");
        continueButton.onClicked(new Callback<ActionEvent>() {
            public void call(ActionEvent actionEvent) throws Exception {
                stage.hide();
                includeBackground = backgroundCheckbox.isSelected();
                includeDocumentBounds = documentBounds.isSelected();
                SavePNGAction.super.execute();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.