Package org.openquark.cal.metadata

Examples of org.openquark.cal.metadata.ArgumentMetadata


         * @param inputNum int the input number for this PartInput
         */
        PartInput(int inputNum) {
            this.inputNum = inputNum;
            this.burntState = false;
            this.metadata = new ArgumentMetadata(CALFeatureName.getArgumentFeatureName(inputNum), GemCutter.getLocaleFromPreferences());
        }
View Full Code Here


         * @param inputNum the input number
         */
        void setInputNum(int inputNum) {
            this.inputNum = inputNum;
           
            ArgumentMetadata newMetadata = new ArgumentMetadata(CALFeatureName.getArgumentFeatureName(inputNum), this.metadata.getLocale());
            this.metadata.copyTo(newMetadata);
            this.metadata = newMetadata;
        }
View Full Code Here

                input.setInputNum(i);                    // update input #
            } else {
                input = createInputPart(i);
                input.setArgumentName(new ArgumentName(args[i].getName()));
               
                ArgumentMetadata metadata = new ArgumentMetadata(CALFeatureName.getArgumentFeatureName(i), input.getDesignMetadata().getLocale());
                metadata.setDisplayName(args[i].getName());
                input.setDesignMetadata(metadata);
            }
            newInputPartArray[i] = input;
        }
View Full Code Here

        int argsToCopy = currentArgs.length > actualArgs.length ? numArgs : currentArgs.length;
       
        System.arraycopy(currentArgs, 0, actualArgs, 0, argsToCopy);
       
        for (int i = argsToCopy; i < actualArgs.length; i++) {
            actualArgs[i] = new ArgumentMetadata(CALFeatureName.getArgumentFeatureName(i), metadata.getLocale());
        }
       
        metadata.setArguments(actualArgs);
        return true;
    }
View Full Code Here

        int argsToCopy = currentArgs.length > actualArgs.length ? numArgs : currentArgs.length;
       
        System.arraycopy(currentArgs, 0, actualArgs, 0, argsToCopy);
       
        for (int i = argsToCopy; i < actualArgs.length; i++) {
            actualArgs[i] = new ArgumentMetadata(CALFeatureName.getArgumentFeatureName(i), metadata.getLocale());
        }
       
        metadata.setArguments(actualArgs);
        return true;
    }
View Full Code Here

    /**
     * @see org.openquark.gems.client.navigator.NavEditorComponent#getValue()
     */
    @Override
    public ArgumentMetadata getValue() {
        ArgumentMetadata currentValue = (ArgumentMetadata) initialValue.copy();
        currentValue.setDisplayName(displayNameField.getText());           
        currentValue.setShortDescription(descriptionField.getText());
        return currentValue;
    }
View Full Code Here

TOP

Related Classes of org.openquark.cal.metadata.ArgumentMetadata

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.