Package org.joshy.gfx.stage

Examples of org.joshy.gfx.stage.Stage.hide()


        } else {
            final Stage stage = Stage.createStage();
            stage.setTitle(getString("trackingDialog.title").toString());
            Callback<ActionEvent> noResponse = new Callback<ActionEvent>() {
                public void call(ActionEvent actionEvent) throws Exception {
                    stage.hide();
                    settings.setProperty(TRACKING_PERMISSIONS,"false");
                }
            };
            Callback<ActionEvent> yesResponse = new Callback<ActionEvent>() {
                public void call(ActionEvent actionEvent) throws Exception {
View Full Code Here


                    settings.setProperty(TRACKING_PERMISSIONS,"false");
                }
            };
            Callback<ActionEvent> yesResponse = new Callback<ActionEvent>() {
                public void call(ActionEvent actionEvent) throws Exception {
                    stage.hide();
                    settings.setProperty(TRACKING_PERMISSIONS,"true");
                }
            };
            Callback<ActionEvent> whatResponse = new Callback<ActionEvent>() {
                public void call(ActionEvent actionEvent) throws Exception {
View Full Code Here

                .setBoxAlign(VFlexBox.Align.Stretch)
                .add(new Label(s))
                .add(new ScrollPane(log),1)
                .add(new Button("Close").onClicked(new Callback<ActionEvent>(){
            public void call(ActionEvent actionEvent) throws Exception {
                stage.hide();
            }
        }))
        );
        stage.centerOnScreen();
    }
View Full Code Here

        width.setPrefWidth(100);
        final Textbox height = new Textbox("600");
        height.setPrefWidth(100);
        Callback<ActionEvent> canceled = new Callback<ActionEvent>() {
            public void call(ActionEvent event) {
                dialog.hide();
            }
        };

        Callback<ActionEvent> okay = new Callback<ActionEvent>() {
            public void call(ActionEvent event) {
View Full Code Here

            }
        };

        Callback<ActionEvent> okay = new Callback<ActionEvent>() {
            public void call(ActionEvent event) {
                dialog.hide();
                double dwidth = Double.parseDouble(width.getText());
                double dheight = Double.parseDouble(height.getText());
                SketchDocument doc = new SketchDocument();
                doc.setDocBoundsActive(true);
                doc.setUnits(CanvasDocument.LengthUnits.Pixels);
View Full Code Here

                OSUtil.openBrowser("http://leonardosketch.org/download-source/");
            }
        };
        Callback closeStage = new Callback<ActionEvent>() {
            public void call(ActionEvent actionEvent) throws Exception {
                stage.hide();
            }
        };
       
        //leonardo sketch
        stage.setContent(new VFlexBox().setBoxAlign(VFlexBox.Align.Stretch)
View Full Code Here

                stage.setWidth(800);
                stage.setHeight(600);

                EventBus.getSystem().addListener(SystemMenuEvent.Quit, new Callback<Event>() {
                    public void call(Event event) throws Exception {
                        stage.hide();
                        System.exit(0);
                    }
                });

            }
View Full Code Here

        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

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

        } else {
            u.p("a new release!");
            final Stage stage = Stage.createStage();
            Callback<ActionEvent> dismiss = new Callback<ActionEvent>() {
                public void call(ActionEvent actionEvent) throws Exception {
                    stage.hide();
                }
            };
            Callback<ActionEvent> skipVersion = new Callback<ActionEvent>() {
                public void call(ActionEvent actionEvent) throws Exception {
                    stage.hide();
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.