Package limelight.ui.model.inputs

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

//- 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.ui.Panel;
import limelight.ui.model.Layout;
import limelight.ui.model.PanelBase;
import limelight.ui.model.SimpleLayout;
import limelight.util.Box;

import java.util.Map;

public class InputPanelLayout extends SimpleLayout
{
  public static InputPanelLayout instance = new InputPanelLayout();

  @Override
  public void doExpansion(Panel thePanel)
  {
    PanelBase panel = (PanelBase)thePanel;
    Box bounds = panel.getParent().getChildConsumableBounds();
    panel.setLocation(bounds.x, bounds.y);
    panel.setSize(bounds.width, bounds.height);
  }

  @Override
  public void doFinalization(Panel panel)
  {
    panel.markAsDirty();
  }

  public boolean overides(Layout other)
  {
    return true;
  }
}
TOP

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

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.