Package limelight.ui.model.inputs

Source Code of limelight.ui.model.inputs.PropogateToParentAction

//- Copyright © 2008-2011 8th Light, Inc. All Rights Reserved.
//- Limelight and all included source files are distributed under terms of the MIT License.

package limelight.ui.model.inputs;

import limelight.events.Event;
import limelight.events.EventAction;
import limelight.ui.Panel;
import limelight.ui.events.panel.PanelEvent;

public class PropogateToParentAction implements EventAction
{
  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);
  }
}
TOP

Related Classes of limelight.ui.model.inputs.PropogateToParentAction

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.