Search in sources :

Example 1 with TextBoxPanel

use of limelight.ui.model.inputs.TextBoxPanel in project limelight by slagyr.

the class TextBox method install.

public void install(PanelEvent event) {
    textBoxPanel = new TextBoxPanel();
    propPanel = (PropPanel) event.getRecipient();
    propPanel.add(textBoxPanel);
    propPanel.getBackstage().put("text-box", this);
}
Also used : TextBoxPanel(limelight.ui.model.inputs.TextBoxPanel)

Example 2 with TextBoxPanel

use of limelight.ui.model.inputs.TextBoxPanel in project limelight by slagyr.

the class TextPanelBorderPainterTest method setUp.

@Before
public void setUp() throws Exception {
    FakeScene root = new FakeScene();
    parent = new PropPanel(new FakePropProxy());
    root.add(parent);
    stage = new MockStage();
    root.setStage(stage);
    panel = new TextBoxPanel();
    parent.add(panel);
    graphics = new MockGraphics();
    TextPanelBorderPainter.normalBorder = normalDrawable = new MockDrawable();
    TextPanelBorderPainter.focusedBorder = focusDrawable = new MockDrawable();
    painter = TextPanelBorderPainter.instance;
    parent.getStyle().setBorderColor("transparent");
}
Also used : PropPanel(limelight.ui.model.PropPanel) MockGraphics(limelight.ui.MockGraphics) TextBoxPanel(limelight.ui.model.inputs.TextBoxPanel) MockDrawable(limelight.ui.model.MockDrawable) FakeScene(limelight.ui.model.FakeScene) MockStage(limelight.ui.model.MockStage) FakePropProxy(limelight.model.api.FakePropProxy)

Example 3 with TextBoxPanel

use of limelight.ui.model.inputs.TextBoxPanel in project limelight by slagyr.

the class SingleLineTextModelTest method setUp.

@Before
public void setUp() {
    assumeTrue(TestUtil.notHeadless());
    panel = new TextBoxPanel();
    MockParentPanel parent = new MockParentPanel();
    parent.add(panel);
    parent.setSize(100, 20);
    Layouts.on(panel, panel.getDefaultLayout());
    model = panel.getModel();
    model.setTypedLayoutFactory(MockTypedLayoutFactory.instance);
}
Also used : MockParentPanel(limelight.ui.model.MockParentPanel) TextBoxPanel(limelight.ui.model.inputs.TextBoxPanel) Before(org.junit.Before)

Aggregations

TextBoxPanel (limelight.ui.model.inputs.TextBoxPanel)3 FakePropProxy (limelight.model.api.FakePropProxy)1 MockGraphics (limelight.ui.MockGraphics)1 FakeScene (limelight.ui.model.FakeScene)1 MockDrawable (limelight.ui.model.MockDrawable)1 MockParentPanel (limelight.ui.model.MockParentPanel)1 MockStage (limelight.ui.model.MockStage)1 PropPanel (limelight.ui.model.PropPanel)1 Before (org.junit.Before)1