Package limelight.ui.events.panel

Examples of limelight.ui.events.panel.PanelEvent


{
  public static PropogateToParentAction instance = new PropogateToParentAction();

  public void invoke(Event event)
  {
    PanelEvent panelEvent = (PanelEvent)event;
    final Panel parent = panelEvent.getRecipient().getParent();
    if(parent != null)
      panelEvent.dispatch(parent);
  }
View Full Code Here


  {
    EventAction itemChosenAction = new EventAction()
    {
      public void invoke(Event e)
      {
        PanelEvent event = (PanelEvent)e;
        choose((PropPanel) event.getRecipient());
      }
    };

    EventAction itemSelectedAction = new EventAction()
    {
      public void invoke(Event e)
      {
        PanelEvent event = (PanelEvent)e;
        select((PropPanel) event.getRecipient());
      }
    };

    for(Object option : dropDown.getChoices())
    {
View Full Code Here

  {
    public static PushAction instance = new PushAction();

    public void invoke(Event e)
    {
      PanelEvent event = (PanelEvent)e;
      if(event.isConsumed())
        return;

      if(isPushEvent(event))
      {
        final Panel panel = event.getRecipient();
        new ButtonPushedEvent().dispatch(panel);
      }
    }
View Full Code Here

    public void invoke(Event e)
    {
      if(e.isConsumed())
        return;

      PanelEvent event = (PanelEvent) e;
      final RadioButtonPanel panel = (RadioButtonPanel) event.getRecipient();
      panel.setSelected(!panel.isSelected());
    }
View Full Code Here

  {
    public static MousePressedAction instance = new MousePressedAction();

    public void invoke(Event e)
    {
      PanelEvent event = (PanelEvent) e;
      ButtonPanel panel = (ButtonPanel) event.getRecipient();
      panel.isBeingPressed = true;
      panel.markAsDirty();
    }
View Full Code Here

  {
    public static MouseReleasedAction instance = new MouseReleasedAction();

    public void invoke(Event e)
    {
      PanelEvent event = (PanelEvent) e;
      ButtonPanel panel = (ButtonPanel) event.getRecipient();
      panel.isBeingPressed = false;
      panel.markAsDirty();
    }
View Full Code Here

  {
    private static SelectAction instance = new SelectAction();

    public void invoke(Event e)
    {
      PanelEvent event = (PanelEvent)e;
      if(event.isConsumed())
        return;

      final CheckBoxPanel panel = (CheckBoxPanel) event.getRecipient();
      panel.setSelected(!panel.isSelected());
    }
View Full Code Here

public class Devtool
{

  public void refresh(Event e)
  {
    PanelEvent event = (PanelEvent)e;
    final Production production = event.getRecipient().getRoot().getProduction();
    final List<Stage> stages = production.getTheater().getStages();
    for(Stage stage : stages)
    {
      production.openScene(stage.getScene().getResourceLoader().getRoot(), stage, new Opts());
    }
View Full Code Here

  {
    public static MouseWheelAction instance = new MouseWheelAction();

    public void invoke(Event e)
    {
      PanelEvent event = (PanelEvent) e;
      if(!(event.getRecipient() instanceof PropPanel))
        return;

      MouseWheelEvent wheelEvent = (MouseWheelEvent) event;
      PropPanel panel = (PropPanel) event.getRecipient();
      ScrollBarPanel scrollBar = wheelEvent.isVertical() ? panel.getVerticalScrollbar() : panel.getHorizontalScrollbar();
      if(scrollBar != null)
        scrollBar.setValue(scrollBar.getValue() + wheelEvent.getUnitsToScroll());
      else if(panel.getParent() != null)
        event.dispatch(panel.getParent());
    }
View Full Code Here

  {
    public static HoverOnAction instance = new HoverOnAction();

    public void invoke(Event e)
    {
      PanelEvent event = (PanelEvent) e;
      final PropPanel panel = (PropPanel) event.getRecipient();
      if(panel.getRoot() == null)
        return;
      //TODO MDM - If the prop has no surface area (perhasps it's a floater that floated out of bounds), does it still get the mouseExited event?
      if(!panel.getStyle().hasScreen())
        panel.getStyle().applyScreen(panel.getHoverStyle()); // TODO - MDM - This seems inefficient considering most of the time, there's no change in styles.
View Full Code Here

TOP

Related Classes of limelight.ui.events.panel.PanelEvent

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.