Search in sources :

Example 21 with Panel

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

the class JsQueryTestCase method setUp.

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

Example 22 with Panel

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

the class EffectBehaviorTestCase method setUp.

@Override
@Before
public void setUp() {
    super.setUp();
    effectBehavior = new EffectBehavior(new Hide());
    Panel panel = new DivTestPanel("panelId");
    component = new WebMarkupContainer("anId");
    component.setMarkupId(component.getId());
    component.setOutputMarkupId(true);
    component.add(effectBehavior);
    panel.add(component);
    tester.startComponentInPage(panel);
}
Also used : Hide(org.odlabs.wiquery.core.effects.basic.Hide) Panel(org.apache.wicket.markup.html.panel.Panel) DivTestPanel(org.odlabs.wiquery.core.commons.DivTestPanel) DivTestPanel(org.odlabs.wiquery.core.commons.DivTestPanel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer) Before(org.junit.Before)

Example 23 with Panel

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

the class JsStatementTestCase method test$Component.

/**
 * Test method for
 * {@link org.odlabs.wiquery.core.javascript.JsStatement#$(org.apache.wicket.Component)}
 * .
 */
@Test
public void test$Component() {
    final WebMarkupContainer component = new WebMarkupContainer("anId");
    Panel panel = new DivTestPanel("panelId");
    component.setMarkupId("anId");
    panel.add(component);
    tester.startComponentInPage(panel);
    assertAndLog("$('#anId');", jsStatement.$(component).render());
}
Also used : Panel(org.apache.wicket.markup.html.panel.Panel) DivTestPanel(org.odlabs.wiquery.core.commons.DivTestPanel) DivTestPanel(org.odlabs.wiquery.core.commons.DivTestPanel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer) Test(org.junit.Test)

Example 24 with Panel

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

the class JsStatementTestCase method test$ComponentString.

/**
 * Test method for
 * {@link org.odlabs.wiquery.core.javascript.JsStatement#$(org.apache.wicket.Component, java.lang.String)}
 * .
 */
@Test
public void test$ComponentString() {
    assertAndLog("$('span');", jsStatement.$(null, "span").render());
    jsStatement = new JsStatement();
    final WebMarkupContainer component = new WebMarkupContainer("anId");
    Panel panel = new DivTestPanel("panelId");
    component.setMarkupId("anId");
    panel.add(component);
    tester.startComponentInPage(panel);
    assertAndLog("$('#anId span');", jsStatement.$(component, "span").render());
}
Also used : Panel(org.apache.wicket.markup.html.panel.Panel) DivTestPanel(org.odlabs.wiquery.core.commons.DivTestPanel) DivTestPanel(org.odlabs.wiquery.core.commons.DivTestPanel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer) Test(org.junit.Test)

Example 25 with Panel

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

the class DialogTestCase method setUp.

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

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