Search in sources :

Example 26 with Panel

use of org.apache.wicket.markup.html.panel.Panel in project wiquery by WiQuery.

the class DroppableBehaviorTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    droppableBehavior = new DroppableBehavior();
    Panel panel = new DivTestPanel("panelId");
    WebMarkupContainer component = new WebMarkupContainer("anId");
    component.setMarkupId("anId");
    component.add(droppableBehavior);
    panel.add(component);
    tester.startComponentInPage(panel);
}
Also used : Panel(org.apache.wicket.markup.html.panel.Panel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer) Before(org.junit.Before)

Example 27 with Panel

use of org.apache.wicket.markup.html.panel.Panel in project wiquery by WiQuery.

the class SliderTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    Panel panel = new DivTestPanel("panelId");
    slider = new Slider("anId", 5, 10);
    slider.setMarkupId(slider.getId());
    panel.add(slider);
    tester.startComponentInPage(panel);
}
Also used : Panel(org.apache.wicket.markup.html.panel.Panel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) Before(org.junit.Before)

Example 28 with Panel

use of org.apache.wicket.markup.html.panel.Panel in project wiquery by WiQuery.

the class SortableBehaviorTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    sortableBehavior = new SortableBehavior();
    Panel panel = new DivTestPanel("panelId");
    WebMarkupContainer component = new WebMarkupContainer("anId");
    component.setMarkupId("anId");
    component.add(sortableBehavior);
    panel.add(component);
    tester.startComponentInPage(panel);
}
Also used : Panel(org.apache.wicket.markup.html.panel.Panel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer) Before(org.junit.Before)

Example 29 with Panel

use of org.apache.wicket.markup.html.panel.Panel in project wiquery by WiQuery.

the class TabsTestCase method setUp.

@SuppressWarnings("deprecation")
@Override
@Before
public void setUp() {
    super.setUp();
    Panel panel = new DivTestPanel("panelId");
    tabs = new Tabs("anId");
    tabs.setMarkupId(tabs.getId());
    panel.add(tabs);
    tester.startComponentInPage(panel);
}
Also used : Panel(org.apache.wicket.markup.html.panel.Panel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) DivTestPanel(org.odlabs.wiquery.ui.DivTestPanel) Before(org.junit.Before)

Example 30 with Panel

use of org.apache.wicket.markup.html.panel.Panel in project wiquery by WiQuery.

the class AutocompleteTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    Panel panel = new InputTestPanel("panelId");
    autocomplete = new Autocomplete<String>("anId");
    autocomplete.setMarkupId(autocomplete.getId());
    panel.add(autocomplete);
    tester.startComponentInPage(panel);
}
Also used : InputTestPanel(org.odlabs.wiquery.ui.InputTestPanel) Panel(org.apache.wicket.markup.html.panel.Panel) InputTestPanel(org.odlabs.wiquery.ui.InputTestPanel) Before(org.junit.Before)

Aggregations

Panel (org.apache.wicket.markup.html.panel.Panel)76 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)27 ArrayList (java.util.ArrayList)21 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)18 BasePanel (com.evolveum.midpoint.gui.api.component.BasePanel)16 ITab (org.apache.wicket.extensions.markup.html.tabs.ITab)16 Before (org.junit.Before)16 AbstractTab (org.apache.wicket.extensions.markup.html.tabs.AbstractTab)15 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)13 AjaxBootstrapTabbedPanel (de.agilecoders.wicket.core.markup.html.bootstrap.tabs.AjaxBootstrapTabbedPanel)12 ResourceModel (org.apache.wicket.model.ResourceModel)11 DivTestPanel (org.odlabs.wiquery.ui.DivTestPanel)11 ItemPanelSettingsBuilder (com.evolveum.midpoint.gui.impl.prism.panel.ItemPanelSettingsBuilder)10 VisibleEnableBehaviour (com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour)10 List (java.util.List)9 Test (org.junit.Test)9 IModel (org.apache.wicket.model.IModel)8 Model (org.apache.wicket.model.Model)6 ActionsPanel (org.apache.syncope.client.console.wicket.markup.html.form.ActionsPanel)5 Label (org.apache.wicket.markup.html.basic.Label)5