Examples of LinkButton


Examples of org.apache.pivot.wtk.LinkButton

        return dataRenderer.getPreferredSize();
    }

    @Override
    public void paint(Graphics2D graphics) {
        LinkButton linkButton = (LinkButton)getComponent();
        int width = getWidth();
        int height = getHeight();

        Button.DataRenderer dataRenderer = linkButton.getDataRenderer();
        dataRenderer.render(linkButton.getButtonData(), linkButton, highlighted);
        dataRenderer.setSize(width, height);

        dataRenderer.paint(graphics);
    }
View Full Code Here

Examples of org.joshy.gfx.node.control.Linkbutton

                //.add(new HFlexBox().add(new Linkbutton("http://leonardosketch.org/").onClicked(openLink)))
                .add(new HFlexBox().add(new Label("Leonardo is open source, BSD licensed."+
                        " It contains software from Apache, Twitter4J, Parboiled."+
                        " Fonts from The League Of Movable Type." +
                        " Icon by VisualPharm (Ivan Boyko).").setPrefWidth(370)))
                .add(new HFlexBox().add(new Linkbutton("Click for license info").onClicked(openLink)))
                .add(new HFlexBox()
                        .add(new Label("Version"))
                        .add(new Label(Main.releaseProperties.getProperty("org.joshy.sketch.build.version"))))
                .add(new HFlexBox()
                        .add(new Label("Build number"))
View Full Code Here

Examples of org.spoutcraft.client.gui.LinkButton

    labelPlayers = new GenericLabel();
    labelPlayers.setTextColor(new Color(0xffaaaaaa));
    content.attachWidget("Spoutcraft", labelPlayers);

    linkForum = new LinkButton("Go to Forum", "");
    getScreen().attachWidget("Spoutcraft", linkForum);
    linkSite = new LinkButton("Go to Website", "");
    getScreen().attachWidget("Spoutcraft", linkSite);

    labelSpoutcraftLabel = new GenericLabel("Spoutcraft");
    content.attachWidget("Spoutcraft", labelSpoutcraftLabel);
    labels.add(labelSpoutcraftLabel);
View Full Code Here

Examples of pivot.wtk.LinkButton

        Component content =
            (Component)wtkxSerializer.readObject("pivot/tutorials/buttons/link_buttons.wtkx");

        final CardPane cardPane = (CardPane)wtkxSerializer.getObjectByName("cardPane");

        LinkButton nextButton = (LinkButton)wtkxSerializer.getObjectByName("nextButton");
        nextButton.getButtonPressListeners().add(new ButtonPressListener() {
            public void buttonPressed(Button button) {
                cardPane.setSelectedIndex(1);
            }
        });

        LinkButton previousButton = (LinkButton)wtkxSerializer.getObjectByName("previousButton");
        previousButton.getButtonPressListeners().add(new ButtonPressListener() {
            public void buttonPressed(Button button) {
                cardPane.setSelectedIndex(0);
            }
        });
View Full Code Here

Examples of pivot.wtk.LinkButton

        color = theme.getColor(13);
        disabledColor = theme.getColor(7);
    }

    public int getPreferredWidth(int height) {
        LinkButton linkButton = (LinkButton)getComponent();

        Button.DataRenderer dataRenderer = linkButton.getDataRenderer();
        dataRenderer.render(linkButton.getButtonData(), linkButton, false);

        return dataRenderer.getPreferredWidth(height);
    }
View Full Code Here

Examples of pivot.wtk.LinkButton

        return dataRenderer.getPreferredWidth(height);
    }

    public int getPreferredHeight(int width) {
        LinkButton linkButton = (LinkButton)getComponent();

        Button.DataRenderer dataRenderer = linkButton.getDataRenderer();
        dataRenderer.render(linkButton.getButtonData(), linkButton, false);

        return dataRenderer.getPreferredHeight(width);
    }
View Full Code Here

Examples of pivot.wtk.LinkButton

        return dataRenderer.getPreferredHeight(width);
    }

    public Dimensions getPreferredSize() {
        LinkButton linkButton = (LinkButton)getComponent();

        Button.DataRenderer dataRenderer = linkButton.getDataRenderer();
        dataRenderer.render(linkButton.getButtonData(), linkButton, false);

        return dataRenderer.getPreferredSize();
    }
View Full Code Here

Examples of pivot.wtk.LinkButton

        return dataRenderer.getPreferredSize();
    }

    public void paint(Graphics2D graphics) {
        LinkButton linkButton = (LinkButton)getComponent();
        int width = getWidth();
        int height = getHeight();

        Button.DataRenderer dataRenderer = linkButton.getDataRenderer();
        dataRenderer.render(linkButton.getButtonData(), linkButton, highlighted);
        dataRenderer.setSize(width, height);

        dataRenderer.paint(graphics);
    }
View Full Code Here

Examples of pivot.wtk.LinkButton

            }
        });

        Image image = Image.load(getClass().getResource("go-home.png"));

        LinkButton linkButton = null;

        linkButton = new LinkButton("ABCDE");
        flowPane.add(linkButton);
        linkButton.getComponentMouseListeners().add(new ComponentMouseListener() {
            public boolean mouseMove(Component component, int x, int y) {
                return true;
            }

            public void mouseOver(Component component) {
            }

            public void mouseOut(Component component) {
            }
        });

        linkButton = new LinkButton(image);
        flowPane.add(linkButton);

        linkButton = new LinkButton(new ButtonData(image, "12345"));
        flowPane.add(linkButton);

        window.setContent(flowPane);
        window.open(display);
    }
View Full Code Here

Examples of pivot.wtk.LinkButton

    @Override
    public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) {
        boolean consumed = super.mouseClick(component, button, x, y, count);

        if (button == Mouse.Button.LEFT) {
            LinkButton linkButton = (LinkButton)getComponent();
            linkButton.press();
        }

        return consumed;
    }
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.