Search in sources :

Example 61 with Panel

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

the class ProgressBarTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    Panel panel = new DivTestPanel("panelId");
    progressBar = new ProgressBar("anId");
    progressBar.setMarkupId(progressBar.getId());
    panel.add(progressBar);
    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 62 with Panel

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

the class AccordionTestCase method setUp.

@SuppressWarnings("deprecation")
@Override
@Before
public void setUp() {
    super.setUp();
    Panel panel = new DivTestPanel("panelId");
    accordion = new Accordion("anId");
    accordion.setMarkupId(accordion.getId());
    panel.add(accordion);
    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 63 with Panel

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

the class ResizableBehaviorTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    resizableBehavior = new ResizableBehavior();
    Panel panel = new DivTestPanel("panelId");
    WebMarkupContainer component = new WebMarkupContainer("anId");
    component.setMarkupId("anId");
    component.add(resizableBehavior);
    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 64 with Panel

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

the class PositionBehaviorTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    positionBehavior = new PositionBehavior();
    Panel panel = new DivTestPanel("panelId");
    WebMarkupContainer component = new WebMarkupContainer("anId");
    component.setMarkupId("anId");
    component.add(positionBehavior);
    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 65 with Panel

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

the class ButtonTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    Panel panel = new InputTestPanel("panelId");
    button = new WebMarkupContainer("anId");
    buttonBehavior = new ButtonBehavior();
    button.add(buttonBehavior);
    button.setMarkupId(button.getId());
    panel.add(button);
    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) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer) 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