Package ca.nengo.ui.configurable

Examples of ca.nengo.ui.configurable.Property


    public ConfigSchema getSchema() {
        if (getFunction() != null) {
            Function func = getFunction();
            for (int i = 0; i < myProperties.length; i++) {
                Property property = myProperties[i];
                String getterName = getterNames[i];
                try {
                    Object result = func.getClass().getMethod(getterName).invoke(func);
                    property.setDefaultValue(result);
                } catch (NoSuchMethodException e) {
                  e.printStackTrace();
                } catch (SecurityException e) {
                  e.printStackTrace();
                } catch (IllegalAccessException e) {
View Full Code Here


    private boolean processPropertiesInternal(boolean setPropertyFields, boolean showMessage) {
        Iterator<PropertyInputPanel> it = propertyInputPanels.iterator();

        while (it.hasNext()) {
            PropertyInputPanel inputPanel = it.next();
            Property property = inputPanel.getDescriptor();

            if (inputPanel.isValueSet()) {
                if (setPropertyFields) {

                    myConfigManager.setProperty(property.getName(), inputPanel.getValue());
                }
            } else {
                if (showMessage) {
                    UserMessages.showWarning(property.getName() + " is not set or is incomplete");
                }
                pack();
                return false;
            }
View Full Code Here

            }
            parent = parent.getParent();
        }

        if (parent != null && parent instanceof JDialog) {
            Property pCouplingMatrix;
            if (isValueSet()) {
                /*
                 * Create a property descriptor with a set matrix
                 */
                pCouplingMatrix = new PCouplingMatrix(getValue());
View Full Code Here

        private float noiseLevel = 0.1f;
        private int NSV = -1;

        private void configure() {
            try {
                Property pNoiseLevel = new PFloat("Noise level", "Ratio of the noise amplitude to the signal amplitude", noiseLevel);
                Property pNSV = new PInt("Number of Singular Values", NSV);
                ConfigResult result = UserConfigurer.configure(
                        new Property[] { pNoiseLevel, pNSV }, TYPE_NAME, this.getDialogParent(),
                        ConfigMode.STANDARD);

                noiseLevel = (Float) result.getValue(pNoiseLevel);
View Full Code Here

TOP

Related Classes of ca.nengo.ui.configurable.Property

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.