FileDocCategorySizeDatePackage
ComponentTour.javaAPI DocExample2390Wed Nov 10 12:37:52 GMT 2004com.oreilly.qtjnotebook.ch04

ComponentTour

public class ComponentTour extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        try {
            QTSessionCheck.check();
            /* use this wildcard to show all components in QT
            */
            ComponentDescription wildcard =
                new ComponentDescription(); 
            /*
            ComponentDescription wildcard =
                new ComponentDescription(StdQTConstants.movieImportType); 
            */
            ComponentIdentifier ci = null;
            while ( (ci = ComponentIdentifier.find(ci, wildcard)) != null) {
                ComponentDescription cd = ci.getInfo();
                System.out.println (cd.getName() + 
                                    " (" + 
                                    QTUtils.fromOSType (cd.getType()) +
                                    "/" +
                                    QTUtils.fromOSType (cd.getSubType()) +
                                    ") " + 
                                    cd.getInformationString());
            }
            
        } catch (QTException qte) {
            qte.printStackTrace();
        }