Examples of UIUpdater


Examples of com.eclipsesource.tabris.internal.ui.UIUpdater

    assertNull( actualPageConfiguration );
  }

  @Test
  public void testRemovePageConfigurationTriggersUpdate() {
    UIUpdater updater = mock( UIUpdater.class );
    UpdateUtil.registerUpdater( updater );
    UIConfiguration configuration = new UIConfiguration();
    PageConfiguration pageConfiguration = new PageConfiguration( "foo", TestPage.class );
    configuration.addPageConfiguration( pageConfiguration );
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.UIUpdater

    assertNotNull( actualDescriptor );
  }

  @Test
  public void testAddsPageTriggersUIUpdate() {
    UIUpdater updater = mock( UIUpdater.class );
    UpdateUtil.registerUpdater( updater );
    UIConfiguration configuration = new UIConfiguration();
    PageConfiguration pageConfiguration = new PageConfiguration( "foo", TestPage.class ).setTopLevel( true );

    configuration.addPageConfiguration( pageConfiguration );
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.UIUpdater

    assertNotNull( configuration.getAdapter( UIDescriptor.class ).getActionDescriptor( "foo" ) );
  }

  @Test
  public void testAddActionTriggersUIUpdate() {
    UIUpdater updater = mock( UIUpdater.class );
    UpdateUtil.registerUpdater( updater );
    UIConfiguration configuration = new UIConfiguration();

    configuration.addActionConfiguration( new ActionConfiguration( "foo", TestAction.class ) );
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.UIUpdater

    assertEquals( foreground, actualForeground );
  }

  @Test
  public void testSetForegroundTriggersUIUpdate() {
    UIUpdater updater = mock( UIUpdater.class );
    UpdateUtil.registerUpdater( updater );
    UIConfiguration configuration = new UIConfiguration();

    configuration.setForeground( 100, 100, 100 );
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.UIUpdater

    verify( updater, times( 1 ) ).update( configuration );
  }

  @Test
  public void testSetForegroundWithRGBTriggersUIUpdate() {
    UIUpdater updater = mock( UIUpdater.class );
    UpdateUtil.registerUpdater( updater );
    UIConfiguration configuration = new UIConfiguration();

    configuration.setForeground( new RGB( 100, 100, 100 ) );
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.UIUpdater

    assertEquals( background, actualBackground );
  }

  @Test
  public void testSetBackgroundTriggersUIUpdate() {
    UIUpdater updater = mock( UIUpdater.class );
    UpdateUtil.registerUpdater( updater );
    UIConfiguration configuration = new UIConfiguration();

    configuration.setBackground( 100, 100, 100 );
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.UIUpdater

    verify( updater, times( 1 ) ).update( configuration );
  }

  @Test
  public void testSetBackgroundWithRGBTriggersUIUpdate() {
    UIUpdater updater = mock( UIUpdater.class );
    UpdateUtil.registerUpdater( updater );
    UIConfiguration configuration = new UIConfiguration();

    configuration.setBackground( new RGB( 100, 100, 100 ) );
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.UIUpdater

    assertNull( configuration.getAdapter( UIDescriptor.class ).getActionDescriptor( "foo" ) );
  }

  @Test
  public void testRemoveActionTriggersUIUpdate() {
    UIUpdater updater = mock( UIUpdater.class );
    UpdateUtil.registerUpdater( updater );
    UIConfiguration configuration = new UIConfiguration();
    configuration.addActionConfiguration( new ActionConfiguration( "foo", TestAction.class ) );

    configuration.removeActionConfiguration( "foo" );
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.UIUpdater

    assertEquals( actions.get( 0 ).getId(), "bar" );
  }

  @Test
  public void testAddsActionTriggersPageUpdate() {
    UIUpdater updater = mock( UIUpdater.class );
    UpdateUtil.registerUpdater( updater );
    ActionConfiguration actionConfig = new ActionConfiguration( "bar", TestAction.class );
    PageConfiguration config = new PageConfiguration( "foo", TestPage.class );

    config.addActionConfiguration( actionConfig );
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.UIUpdater

    assertTrue( actions.isEmpty() );
  }

  @Test
  public void testRemoveActionTriggersPageUpdate() {
    UIUpdater updater = mock( UIUpdater.class );
    UpdateUtil.registerUpdater( updater );
    ActionConfiguration actionConfig = new ActionConfiguration( "bar", TestAction.class );
    PageConfiguration config = new PageConfiguration( "foo", TestPage.class );
    config.addActionConfiguration( actionConfig );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.