Secure Global Desktop Administration Guide > Applets > getTotalNumberOfObjects (webtop script and webtop tray applets)
int getTotalNumberOfObjects (String objectType)
Returns the number of objects of type objectType found on the user's webtop. If the webtop is in hierarchy mode, returns the number of objects found on all open levels of the hierarchy.
objectType may be "GROUPTYPE" "ALLTYPE" "APPLICATIONTYPE" or "DOCUMENTTYPE".
This method can be used with either the webtop script applet or the webtop tray applet.
docObjects = applet.getTotalNumberOfObjects("DOCUMENTTYPE"); alert("The number of document objects on the webtop is: " + docObjects);
Displays the number of document objects on the user's webtop.
Copyright © 1997-2005 Sun Microsystems, Inc. All rights reserved.