Package ptolemy.gui

Examples of ptolemy.gui.ComponentDialog


                        Query query = new Query();
                        query.addLine("delay",
                                "Time (in ms) to hold highlight", Long
                                        .toString(_lastDelayTime));

                        ComponentDialog dialog = new ComponentDialog(
                                ActorGraphFrame.this, "Delay for Animation",
                                query);

                        if (dialog.buttonPressed().equals("OK")) {
                            try {
                                _lastDelayTime = Long.parseLong(query
                                        .getStringValue("delay"));
                                _controller.setAnimationDelay(_lastDelayTime);
View Full Code Here


        public void actionPerformed(ActionEvent e) {
            Query query = new Query();
            query.setTextWidth(60);
            query.addLine("class", "Class name", _lastAttributeClassName);

            ComponentDialog dialog = new ComponentDialog(ActorGraphFrame.this,
                    "Instantiate Attribute", query);

            if (dialog.buttonPressed().equals("OK")) {
                // Get the associated Ptolemy model.
                GraphController controller = getJGraph().getGraphPane()
                        .getGraphController();
                AbstractBasicGraphModel model = (AbstractBasicGraphModel) controller
                        .getGraphModel();
View Full Code Here

            Query query = new Query();
            query.setTextWidth(60);
            query.addLine("class", "Class name", _lastEntityClassName);
            query.addLine("location", "Location (URL)", _lastLocation);

            ComponentDialog dialog = new ComponentDialog(ActorGraphFrame.this,
                    "Instantiate Entity", query);

            if (dialog.buttonPressed().equals("OK")) {
                // Get the associated Ptolemy model.
                GraphController controller = getJGraph().getGraphPane()
                        .getGraphController();
                AbstractBasicGraphModel model = (AbstractBasicGraphModel) controller
                        .getGraphModel();
View Full Code Here

    /** Create an editor for configuring the specified object.
     */
    public void createEditor(NamedObj object, Frame parent) {

        ComponentDialog dialog = null;

        FileParameter helpFileParameter = (FileParameter) object
                .getAttribute("help");

        String[] buttons = _moreButtons;
        if (helpFileParameter == null) {
            // Do not include the help button.
            buttons = _moreButtonsNoHelp;
        }

        dialog = new ComponentDialog(parent, "Edit Parameters or File",
                createEditorPane(), buttons);

        String button = dialog.buttonPressed();

        if (button.equals("Cancel")) {
            return;
        }

View Full Code Here

TOP

Related Classes of ptolemy.gui.ComponentDialog

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.