Package com.eclipsesource.tabris.passepartout.internal.instruction

Examples of com.eclipsesource.tabris.passepartout.internal.instruction.BackgroundInstruction


  }

  @Test
  public void testAppliesBackground() {
    Color color = shell.getDisplay().getSystemColor( SWT.COLOR_BLUE );
    Rule rule = PassePartout.when( new AlwaysTrueContidtion() ).then( new BackgroundInstruction( color ) );
    ResourceImpl resource = new ResourceImpl( rule );

    resource.bindTo( shell );

    assertEquals( color, shell.getBackground() );
View Full Code Here


   * </p>
   *
   * @param color the background to set. Must not be <code>null</code>.
   */
  public static Instruction background( Color color ) {
    return new BackgroundInstruction( color );
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.passepartout.internal.instruction.BackgroundInstruction

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.