Package com.eclipsesource.tabris.passepartout.internal.condition

Examples of com.eclipsesource.tabris.passepartout.internal.condition.MinWidthCondition


  public void testDeactivatesListenerOnQueryChangeAndActivatesValidOne() {
    QueryNotifier notifier = new QueryNotifier();
    QueryListener listener = mock( QueryListener.class );
    QueryListener listener2 = mock( QueryListener.class );
    QueryImpl query = new QueryImpl( new MaxWidthCondition( px( 100 ) ) );
    QueryImpl query2 = new QueryImpl( new MinWidthCondition( px( 101 ) ) );
    notifier.addQueryListener( query, listener );
    notifier.addQueryListener( query2, listener2 );

    notifier.notifyListeners( createEnvironment( new Bounds( 0, 0, 99, 0 ) ) );
    notifier.notifyListeners( createEnvironment( new Bounds( 0, 0, 199, 0 ) ) );
View Full Code Here


   * </p>
   *
   * @param minWidth the minimum width for the {@link Condition} to become valid. Must not be <code>null</code>.
   */
  public static Condition minWidth( Unit minWidth ) {
    return new MinWidthCondition( minWidth );
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.passepartout.internal.condition.MinWidthCondition

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.