Package nodebox.util

Examples of nodebox.util.HumanizedObject


            if (labelField.getText().equals(port.getDisplayLabel())) return;
            nodeAttributesDialog.setPortLabel(portName, labelField.getText());
        } else if (e.getSource() == descriptionField) {
            nodeAttributesDialog.setPortDescription(portName, descriptionField.getText());
        } else if (e.getSource() == widgetBox) {
            HumanizedObject newWidget = (HumanizedObject) widgetBox.getSelectedItem();
            if (port.getWidget() == newWidget.getObject()) return;
            nodeAttributesDialog.setPortWidget(portName, (Port.Widget) newWidget.getObject());
        } else if (e.getSource() == rangeBox) {
            HumanizedObject newRange = (HumanizedObject) rangeBox.getSelectedItem();
            if (port.getRange() == newRange.getObject()) return;
            nodeAttributesDialog.setPortRange(portName, (Port.Range) newRange.getObject());
        } else if (e.getSource() == valueField) {
            String newValue = valueField.getText();
            if (port.getValue() != null && port.getValue().toString().equals(newValue)) return;
            try {
                nodeAttributesDialog.setPortValue(portName, Port.parseValue(port.getType(), valueField.getText()));
View Full Code Here


        nodeAttributesDialog.setNodeOutputType(newValue);
    }

    private void setOutputRange() {
        Node node = getNode();
        HumanizedObject newRange = (HumanizedObject) outputRangeBox.getSelectedItem();
        if (node.getOutputRange() == newRange.getObject()) return;
        nodeAttributesDialog.setNodeOutputRange((Port.Range) newRange.getObject());
    }
View Full Code Here

TOP

Related Classes of nodebox.util.HumanizedObject

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.