Package nodebox.ui

Examples of nodebox.ui.NButton


    public PortPane(NodeBoxDocument document) {
        this.document = document;
        setLayout(new BorderLayout());
        paneHeader = new PaneHeader("Ports");
        NButton metadataButton = new NButton("Metadata", getClass().getResourceAsStream("/port-metadata.png"));
        metadataButton.setActionMethod(this, "editMetadata");
        paneHeader.add(metadataButton);
        portView = new PortView(this, document);
        add(paneHeader, BorderLayout.NORTH);
        add(portView, BorderLayout.CENTER);
    }
View Full Code Here


        frameNumberPanel.setBorder(new Theme.InsetsBorder(5, 0, -4, 0));
        frameNumber = new DraggableNumber();
        frameNumber.addChangeListener(this);
        frameNumberPanel.add(frameNumber);
        add(frameNumberPanel);
        playButton = new NButton("Play", getImageStream("/animation-play.png"), getImageStream("/animation-stop.png"));
        playButton.setToolTipText("Play Animation");
        playButton.setActionMethod(this, "playAnimation");
        forcePlayButtonWidth(52);
        NButton rewindButton = new NButton("Rewind", getImageStream("/animation-rewind.png"));
        rewindButton.setToolTipText("Rewind Animation");
        rewindButton.setActionMethod(this, "rewindAnimation");
        add(playButton);
        add(rewindButton);
        setFrame(1);
    }
View Full Code Here

    private NButton checkBox;

    public ToggleControl(String nodePath, Port port) {
        super(nodePath, port);
        setLayout(new FlowLayout(FlowLayout.LEADING, 0, 0));
        checkBox = new NButton(NButton.Mode.CHECK, port.getDisplayLabel());
        checkBox.setActionMethod(this, "toggle");
        add(checkBox);
        setValueForControl(port.getValue());
        setPreferredSize(new Dimension(120, 30));
    }
View Full Code Here

TOP

Related Classes of nodebox.ui.NButton

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.