Package org.pentaho.platform.uifoundation.component.xml

Examples of org.pentaho.platform.uifoundation.component.xml.FilterPanel


      doc = XmlDom4JHelper.getDocFromFile( new File( SOLUTION_PATH + "/test/filterPanel/test.filterpanel.xml" ), null ); //$NON-NLS-1$
    } catch ( Exception ee ) {
      ee.printStackTrace();
      assertTrue( "Failed to get the document from a file.", false ); //$NON-NLS-1$
    }
    FilterPanel fp = null;
    try {
      fp = new FilterPanel( session, doc, l );
    } catch ( FilterPanelException e ) {
      e.printStackTrace();
      assertTrue( "Failed to create stream from document.", false ); //$NON-NLS-1$
    }

    Map parameterProviders = getParameterProviders();
    boolean success = false;
    List filters = fp.getFilters();
    FilterDefinition fd = null;
    fd = (FilterDefinition) filters.get( 0 );
    success = fd.populate( parameterProviders, new String[] { "huh" } ); //$NON-NLS-1$
    assertTrue( "Populate on filter session-attribute failed", success ); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.pentaho.platform.uifoundation.component.xml.FilterPanel

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.