MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Specifikace Strana 209

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 692
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 208
Components 209
Example
function getComponentChildren(componentRec)
{
var cs_Children = new Array();
if (!componentRec)
{
//read saved entries for java beans.
var javabeanListPath = dw.getSiteRoot() + JavaBeanListFile;
if (DWfile.exists(javabeanListPath))
{
}
}
else
{
if (componentRec.objectType == "Class")
{
var propertiesCompInfo = new ComponentRec("Properties",
PROPERTIES_FILENAME, true,true,"Properties","DWJavaBeansContextProperty");
propertiesCompInfo.objectType = "Properties";
var methodsCompInfo = new ComponentRec("Methods", METHODS_FILENAME,
true,true,"Methods","DWJavaBeansContextMethod");
methodsCompInfo.objectType = "Methods";
cs_Children.push(propertiesCompInfo);
cs_Children.push(methodsCompInfo);
}
else if (componentRec.objectType == "Properties")
{
var Properties =
MMJB.getProperties(componentRec.parent.getName(),componentRec.parent.classl
ocation);
if (Properties.length)
{
for (var j = 0;j < Properties.length; j++)
{
var propertiesCompInfo = new ComponentRec(Properties[j],
PROPERTIES_FILENAME, true,false,Properties[j]);
propertiesCompInfo.objectType = "Property";
cs_Children.push(propertiesCompInfo);
}
}
}
}
return cs_Children;
}
Zobrazit stránku 208
1 2 ... 204 205 206 207 208 209 210 211 212 213 214 ... 691 692

Komentáře k této Příručce

Žádné komentáře