Uses of Class
org.web3d.x3d.jsail.Scripting.Script
Package
Description
The Scripting component describes how Script nodes are used to effect changes in X3D worlds.
-
Uses of Script in org.web3d.x3d.jsail.Scripting
Modifier and TypeMethodDescriptionScript.addComments
(String newComment) Add comment as String to contained commentsList.Script.addComments
(String[] newComments) Add comments as String[] array to contained commentsList.Script.addComments
(CommentsBlock newCommentsBlock) Add CommentsBlock to contained commentsList.Add field to fieldList for this ScriptAdd singleton String value to MFString url field.Add singleton SFString value to MFString url field.Script.appendSourceCode
(String newSourceCode) Append source code (for example, JavaScript)Script.appendSourceCode
(StringBuilder newSourceCode) Append source code (for example, JavaScript)Script.clearField()
Utility method to clear MFNode value of fieldList field.Script.clearIS()
Utility method to clear SFNode value of IS field.Script.clearMetadata()
Utility method to clear SFNode value of metadata field.Script.clearSourceCode()
Clear all contained CDATA source code.Script.clearUrl()
Utility method to clear MFString value of url field.Script.setAutoRefresh
(double newValue) Accessor method to assign double value in seconds to inputOutput SFTime field named autoRefresh.Script.setAutoRefresh
(SFTime newValue) Assign typed object value to SFTime autoRefresh field, similar tosetAutoRefresh(double)
.Script.setAutoRefreshTimeLimit
(double newValue) Accessor method to assign double value in seconds to inputOutput SFTime field named autoRefreshTimeLimit.Script.setAutoRefreshTimeLimit
(SFTime newValue) Assign typed object value to SFTime autoRefreshTimeLimit field, similar tosetAutoRefreshTimeLimit(double)
.final Script
Script.setCssClass
(String newValue) Accessor method to assign String value to inputOutput SFString field named class.Script.setCssClass
(SFString newValue) Assign typed object value to SFString cssClass field, similar tosetCssClass(String)
.final Script
Script.setCssStyle
(String newValue) Accessor method to assign String value to inputOutput SFString field named style.Script.setCssStyle
(SFString newValue) Assign typed object value to SFString cssClass field, similar tosetCssStyle(String)
.final Script
Accessor method to assign String value to inputOutput SFString field named DEF.Assign typed object value to SFString DEF field, similar tosetDEF(String)
.Script.setDescription
(String newValue) Accessor method to assign String value to inputOutput SFString field named description.Script.setDescription
(SFString newValue) Assign typed object value to SFString description field, similar tosetDescription(String)
.Script.setDirectOutput
(boolean newValue) Accessor method to assign boolean value to initializeOnly SFBool field named directOutput.Script.setDirectOutput
(SFBool newValue) Assign typed object value to SFBool directOutput field, similar tosetDirectOutput(boolean)
.Set single child field node, replacing prior array of existing nodes (if any).Script.setFieldList
(ArrayList<field> newValue) Accessor method to assign field array (using an array consisting of properly typed nodes or ProtoInstances) to inputOutput MFNode field field.final Script
Accessor method to assign String value to inputOutput SFString field named id.Assign typed object value to SFString HtmlID field, similar tosetHtmlID(String)
.Accessor method to assign IS instance (using a properly typed node) to inputOutput SFNode field IS.Script.setLoad
(boolean newValue) Accessor method to assign boolean value to inputOutput SFBool field named load.Assign typed object value to SFBool load field, similar tosetLoad(boolean)
.Script.setMetadata
(ProtoInstance newValue) Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.Script.setMetadata
(X3DMetadataObject newValue) Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.Script.setMustEvaluate
(boolean newValue) Accessor method to assign boolean value to initializeOnly SFBool field named mustEvaluate.Script.setMustEvaluate
(SFBool newValue) Assign typed object value to SFBool mustEvaluate field, similar tosetMustEvaluate(boolean)
.Script.setSourceCode
(String newValue) Accessor method to assign String value to inputOutput SFString field named sourceCode.Script.setSourceCode
(StringBuilder newSourceCode) Set new source code (for example, JavaScript), utility method using StringBuilder.Script.setSourceCode
(SFString newValue) Assign typed object value to SFString sourceCode field, similar tosetSourceCode(String)
.Assign singleton String value to MFString url field, similar tosetUrl(String[])
.Accessor method to assign String array to inputOutput MFString field named url.Assign ArrayList value of MFString url field, similar tosetUrl(String[])
.Assign typed object value to MFString url field, similar tosetUrl(String[])
.Assign single SFString object value to MFString url field, similar tosetUrl(String[])
.final Script
Accessor method to assign String value to inputOutput SFString field named USE.Assign typed object value to SFString USE field, similar tosetUSE(String)
.Assign a USE reference to another DEF node of same node type, similar tosetUSE(String)
.Modifier and TypeMethodDescriptionAssign a USE reference to another DEF node of same node type, similar tosetUSE(String)
.