Package limelight.ui.model

Examples of limelight.ui.model.PropPanel$HoverOnAction


  }

  @Test
  public void aButtonParentWillAlsoGetThePushEvent() throws Exception
  {
    PropPanel parent = new PropPanel(new FakePropProxy());
    parent.add(panel);
    parent.getEventHandler().add(ButtonPushedEvent.class, action);

    new MouseClickedEvent(0, null, 0).dispatch(panel);

    assertEquals(true, action.invoked);
    assertEquals(parent, action.recipient);
View Full Code Here


    return (JavaProduction)getPeer().getProduction();
  }

  public JavaProp findProp(String id)
  {
    final PropPanel panel = getPeer().find(id);
    if(panel != null)
      return (JavaProp)panel.getProxy();
    else
      return null;
  }
View Full Code Here

    new MouseWheelEvent(modifiers, location, clickCount, scrollType, scrollAmount, wheelRotation).dispatch(owner);
  }

  private static Point pointFor(PropProxy prop, int x, int y)
  {
    final PropPanel propPanel = (PropPanel)prop.getPeer();
    Point absoluteLocation = propPanel.getAbsoluteLocation();
    int localX = absoluteLocation.x + x;
    int localY = absoluteLocation.y + y;
    return new Point(localX, localY);
  }
View Full Code Here

  public void log(Panel panel, String message)
  {
    if(panel instanceof PropPanel)
    {
      PropPanel prop = (PropPanel) panel;
      PropProxy propProxy = prop.getProxy();
      if(propProxy != null && "sandbox".equals(prop.getName()))
        System.err.println(message);
    }
  }
View Full Code Here

public class TextArea
{
  public void install(PanelEvent event)
  {
    TextAreaPanel input = new TextAreaPanel();
    final PropPanel panel = (PropPanel)event.getRecipient();
    panel.add(input);
  }
View Full Code Here

    peer = createPeer(options);
  }

  protected PropPanel createPeer(Map<String, Object> options)
  {
    return new PropPanel(this, options);
  }
View Full Code Here

TOP

Related Classes of limelight.ui.model.PropPanel$HoverOnAction

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.