public Vector<ScriptID> getScriptIDs(PropertyKey key) {
Vector<ScriptID> v = new Vector<ScriptID>();
Prop val;
String scriptFile, templateID;
PropertyKey tempKey = key;
ScriptID defaultScript = null;
// Find and add all applicable scripts.
while (tempKey != null) {
val = pget(tempKey);
if (defaultScript == null) {
scriptFile = val.getScriptFile();
if (scriptFile != null && scriptFile.length() != 0)
defaultScript = new ScriptID(scriptFile, datapath(tempKey), null);
}
if (Prop.hasValue(templateID = val.getID())) {
Vector<ScriptID> scriptIDs = TemplateLoader.getScriptIDs
(templateID, datapath(tempKey));