Package complex.loadAllDocuments.helper

Examples of complex.loadAllDocuments.helper.StatusIndicator


    /** @short  Look for files in the given directory for loading.
     */
    public void checkUsingOfMediaDescriptor()
    {
        InteractionHandler xHandler   = new InteractionHandler();
        StatusIndicator    xIndicator = new StatusIndicator(StatusIndicator.SHOWSTATUS_LOG);
       
        PropertyValue[] lProps = new PropertyValue[3];

        lProps[0] = new PropertyValue();
        lProps[0].Name  = "Hidden";
        lProps[0].Value = Boolean.TRUE;

        lProps[1] = new PropertyValue();
        lProps[1].Name  = "InteractionHandler";
        lProps[1].Value = xHandler;

        lProps[2] = new PropertyValue();
        lProps[2].Name  = "StatusIndicator";
        lProps[2].Value = xIndicator;

        Enumeration aSnapshot = m_lTestFiles.elements();
        while (aSnapshot.hasMoreElements())
        {
            File   aSysFile = new File(m_sTestDocPath+fs_sys+(String)aSnapshot.nextElement());
            String sURL     = URLHelper.getFileURLFromSystemPath(aSysFile);
           
        loadURL(m_xLoader, RESULT_VALID_DOC, sURL, "_blank", 0, lProps);

            // Its not needed to reset this using states!
            // Its done internaly ...
            if (!xIndicator.wasUsed())
                failed("External progress was not used for loading.");
            if (xHandler.wasUsed())
                failed("External interaction handler was not used for loading.");
        }
    }
View Full Code Here


    /** @short  Look for files in the given directory for loading.
     */
    public void checkUsingOfMediaDescriptor()
    {
        InteractionHandler xHandler   = new InteractionHandler();
        StatusIndicator    xIndicator = new StatusIndicator(StatusIndicator.SHOWSTATUS_LOG);
       
        PropertyValue[] lProps = new PropertyValue[3];

        lProps[0] = new PropertyValue();
        lProps[0].Name  = "Hidden";
        lProps[0].Value = Boolean.TRUE;

        lProps[1] = new PropertyValue();
        lProps[1].Name  = "InteractionHandler";
        lProps[1].Value = xHandler;

        lProps[2] = new PropertyValue();
        lProps[2].Name  = "StatusIndicator";
        lProps[2].Value = xIndicator;

        Enumeration aSnapshot = m_lTestFiles.elements();
        while (aSnapshot.hasMoreElements())
        {
            File   aSysFile = new File(m_sTestDocPath+fs_sys+(String)aSnapshot.nextElement());
            String sURL     = URLHelper.getFileURLFromSystemPath(aSysFile);
           
        loadURL(m_xLoader, RESULT_VALID_DOC, sURL, "_blank", 0, lProps);

            // Its not needed to reset this using states!
            // Its done internaly ...
            if (!xIndicator.wasUsed())
                failed("External progress was not used for loading.");
            if (xHandler.wasUsed())
                failed("External interaction handler was not used for loading.");
        }
    }
View Full Code Here

    /** @short  Look for files in the given directory for loading.
     */
    public void checkUsingOfMediaDescriptor()
    {
        InteractionHandler xHandler   = new InteractionHandler();
        StatusIndicator    xIndicator = new StatusIndicator(StatusIndicator.SHOWSTATUS_LOG);
       
        PropertyValue[] lProps = new PropertyValue[3];

        lProps[0] = new PropertyValue();
        lProps[0].Name  = "Hidden";
        lProps[0].Value = Boolean.TRUE;

        lProps[1] = new PropertyValue();
        lProps[1].Name  = "InteractionHandler";
        lProps[1].Value = xHandler;

        lProps[2] = new PropertyValue();
        lProps[2].Name  = "StatusIndicator";
        lProps[2].Value = xIndicator;

        Enumeration aSnapshot = m_lTestFiles.elements();
        while (aSnapshot.hasMoreElements())
        {
            File   aSysFile = new File(m_sTestDocPath+fs_sys+(String)aSnapshot.nextElement());
            String sURL     = URLHelper.getFileURLFromSystemPath(aSysFile);
           
        loadURL(m_xLoader, RESULT_VALID_DOC, sURL, "_blank", 0, lProps);

            // Its not needed to reset this using states!
            // Its done internaly ...
            if (!xIndicator.wasUsed())
                failed("External progress was not used for loading.");
            if (xHandler.wasUsed())
                failed("External interaction handler was not used for loading.");
        }
    }
View Full Code Here

    /** @short  Look for files in the given directory for loading.
     */
    public void checkUsingOfMediaDescriptor()
    {
        InteractionHandler xHandler   = new InteractionHandler();
        StatusIndicator    xIndicator = new StatusIndicator(StatusIndicator.SHOWSTATUS_LOG);
       
        PropertyValue[] lProps = new PropertyValue[3];

        lProps[0] = new PropertyValue();
        lProps[0].Name  = "Hidden";
        lProps[0].Value = Boolean.TRUE;

        lProps[1] = new PropertyValue();
        lProps[1].Name  = "InteractionHandler";
        lProps[1].Value = xHandler;

        lProps[2] = new PropertyValue();
        lProps[2].Name  = "StatusIndicator";
        lProps[2].Value = xIndicator;

        Enumeration aSnapshot = m_lTestFiles.elements();
        while (aSnapshot.hasMoreElements())
        {
            File   aSysFile = new File(m_sTestDocPath+fs_sys+(String)aSnapshot.nextElement());
            String sURL     = URLHelper.getFileURLFromSystemPath(aSysFile);
           
        loadURL(m_xLoader, RESULT_VALID_DOC, sURL, "_blank", 0, lProps);

            // Its not needed to reset this using states!
            // Its done internaly ...
            if (!xIndicator.wasUsed())
                failed("External progress was not used for loading.");
            if (xHandler.wasUsed())
                failed("External interaction handler was not used for loading.");
        }
    }
View Full Code Here

TOP

Related Classes of complex.loadAllDocuments.helper.StatusIndicator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.