Search in sources :

Example 6 with WListItemRenderer

use of org.adempiere.webui.component.WListItemRenderer in project adempiere by adempiere.

the class WListItemRendererTest method setUp.

/**
	 * @throws java.lang.Exception
	 */
@Before
public void setUp() throws Exception {
    Vector<Object> dataRowValid = new Vector<Object>();
    Vector<Object> dataRowInvalid = new Vector<Object>();
    m_columnNames.add("Name");
    m_columnNames.add("Age");
    m_renderer = new WListItemRenderer(m_columnNames);
    dataRowValid.add("River Phoenix");
    dataRowValid.add(Integer.valueOf(23));
    m_dataValid.add(dataRowValid);
    dataRowInvalid.add("Elvis Presley");
    dataRowInvalid.add(Integer.valueOf(42));
    dataRowInvalid.add("Graceland");
    m_dataInvalid.add(dataRowInvalid);
}
Also used : WListItemRenderer(org.adempiere.webui.component.WListItemRenderer) Vector(java.util.Vector) Before(org.junit.Before)

Example 7 with WListItemRenderer

use of org.adempiere.webui.component.WListItemRenderer in project adempiere by adempiere.

the class WListItemRendererTest method testWListItemRenderer.

/**
	 * Test method for {@link org.adempiere.webui.component.WListItemRenderer#WListItemRenderer()}.
	 */
@Test
public final void testWListItemRenderer() {
    WListItemRenderer renderer = new WListItemRenderer();
    assertEquals(0, renderer.getNoColumns());
}
Also used : WListItemRenderer(org.adempiere.webui.component.WListItemRenderer) Test(org.junit.Test)

Aggregations

WListItemRenderer (org.adempiere.webui.component.WListItemRenderer)7 ArrayList (java.util.ArrayList)2 ListModelTable (org.adempiere.webui.component.ListModelTable)2 PreparedStatement (java.sql.PreparedStatement)1 ResultSet (java.sql.ResultSet)1 Timestamp (java.sql.Timestamp)1 Vector (java.util.Vector)1 ListHeader (org.adempiere.webui.component.ListHeader)1 MAcctSchema (org.compiere.model.MAcctSchema)1 MAcctSchemaElement (org.compiere.model.MAcctSchemaElement)1 MRole (org.compiere.model.MRole)1 RColumn (org.compiere.report.core.RColumn)1 RModel (org.compiere.report.core.RModel)1 KeyNamePair (org.compiere.util.KeyNamePair)1 ValueNamePair (org.compiere.util.ValueNamePair)1 MWFActivity (org.compiere.wf.MWFActivity)1 Before (org.junit.Before)1 Test (org.junit.Test)1 Listhead (org.zkoss.zul.Listhead)1 Listheader (org.zkoss.zul.Listheader)1