Package limelight.ui.model

Examples of limelight.ui.model.MockTextAccessor


  @Test
  public void shouldApplyChanges() throws Exception
  {
    setUpPanel();
    MockTextAccessor accessor = new MockTextAccessor();
    panel.textAccessor = accessor;

    attribute.applyChange(panel, null);

    assertEquals(true, accessor.markAsDirtyCalled);
View Full Code Here


  }

  protected void checkFontChange() throws Exception
  {
    setUpPanel();
    MockTextAccessor accessor = new MockTextAccessor();
    panel.textAccessor = accessor;

    attribute.applyChange(panel, null);

    assertEquals(true, panel.sizeChangePending);
View Full Code Here

  }

  protected void checkAlignmentChange() throws Exception
  {
    setUpPanel();
    MockTextAccessor accessor = new MockTextAccessor();
    panel.textAccessor = accessor;

    attribute.applyChange(panel, null);

    assertEquals(true, accessor.markAsNeedingLayoutCalled);
View Full Code Here

TOP

Related Classes of limelight.ui.model.MockTextAccessor

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.