Package org.displaytag.properties

Examples of org.displaytag.properties.TableProperties


public class TableTotalerTest extends XMLTestCase
{

    TableModel getModel()
    {
        TableProperties props = TableProperties.getInstance(null);
        TableModel model = new TableModel(props, "", null);
        model.setRowListPage(model.getRowListFull());
        {
            HeaderCell ha = new HeaderCell();
            ha.setTitle("ColumnAnt");
View Full Code Here


    /**
     * Private constructor.
     */
    private ExportViewFactory()
    {
        TableProperties properties = TableProperties.getInstance(null);
        String[] exportTypes = properties.getExportTypes();

        if (log.isInfoEnabled())
        {
            log.info(Messages.getString("ExportViewFactory.initializing", //$NON-NLS-1$
                new Object[]{ArrayUtils.toString(exportTypes)}));
        }
        for (int j = 0; j < exportTypes.length; j++)
        {
            String className = properties.getExportClass(exportTypes[j]);
            registerExportView(exportTypes[j], className);
        }
    }
View Full Code Here

public class SubtotaledExcelTest
{

    TableModel getModel()
    {
        TableProperties props = TableProperties.getInstance(null);
        TableModel model = new TableModel(props, "", null);
        model.setRowListPage(model.getRowListFull());
        {
            HeaderCell ha = new HeaderCell();
            ha.setTitle("ColumnAnt");
View Full Code Here

        try
        {
            // table id used for logging
            this.id = id;

            TableProperties properties = model.getProperties();

            if (log.isDebugEnabled())
            {
                log.debug("[" + this.id + "] writeTable called for table [" + this.id + "]");
            }

            // Handle empty table
            boolean noItems = model.getRowListPage().size() == 0;
            if (noItems && !properties.getEmptyListShowTable())
            {
                writeEmptyListMessage(properties.getEmptyListMessage());
                return;
            }

            // search result, navigation bar and export links.
            writeTopBanner(model);
View Full Code Here

        {
            rawData.add(i);
            data.add(new Row(i, i));
        }

        TableProperties props = TableProperties.getInstance(null);
        SmartListHelper helper = new SmartListHelper(data, data.size(), 10, props, false);
        helper.setCurrentPage(1);
        List fullList = helper.getListForCurrentPage();

        TableModel model = new TableModel(props, "", null);
View Full Code Here

        {
            rawData.add(i);
            data.add(new Row(i, i));
        }

        TableProperties props = TableProperties.getInstance(null);
        SmartListHelper helper = new SmartListHelper(data, data.size(), 5, props, false);
        helper.setCurrentPage(1);
        List fullList = helper.getListForCurrentPage();

        TableModel model = new TableModel(props, "", null);
View Full Code Here

        {
            rawData.add(i);
            data.add(new Row(i, i));
        }

        TableProperties props = TableProperties.getInstance(null);
        SmartListHelper helper = new SmartListHelper(data, data.size(), 5, props, false);
        helper.setCurrentPage(2);
        List fullList = helper.getListForCurrentPage();

        TableModel model = new TableModel(props, "", null);
View Full Code Here

        try
        {
            // table id used for logging
            this.id = id;

            TableProperties properties = model.getProperties();

            if (log.isDebugEnabled())
            {
                log.debug("[" + this.id + "] writeTable called for table [" + this.id + "]");
            }

            // Handle empty table
            boolean noItems = model.getRowListPage().size() == 0;
            if (noItems && !properties.getEmptyListShowTable())
            {
                writeEmptyListMessage(properties.getEmptyListMessage());
                return;
            }

            // Put the page stuff there if it needs to be there...
            if (properties.getAddPagingBannerTop())
            {
                // search result and navigation bar
                writeTopBanner(model);
            }
View Full Code Here

    /**
     * Private constructor.
     */
    private ExportViewFactory()
    {
        TableProperties properties = TableProperties.getInstance(null);
        String[] exportTypes = properties.getExportTypes();

        if (log.isInfoEnabled())
        {
            log.info(Messages.getString("ExportViewFactory.initializing", //$NON-NLS-1$
                new Object[]{ArrayUtils.toString(exportTypes)}));
        }
        for (int j = 0; j < exportTypes.length; j++)
        {
            String className = properties.getExportClass(exportTypes[j]);
            registerExportView(exportTypes[j], className);
        }
    }
View Full Code Here

    /**
     * Private constructor.
     */
    private ExportViewFactory()
    {
        TableProperties properties = TableProperties.getInstance(null);
        String[] exportTypes = properties.getExportTypes();

        if (log.isInfoEnabled())
        {
            log.info(Messages.getString("ExportViewFactory.initializing", //$NON-NLS-1$
                new Object[]{ArrayUtils.toString(exportTypes)}));
        }
        for (int j = 0; j < exportTypes.length; j++)
        {
            String className = properties.getExportClass(exportTypes[j]);
            registerExportView(exportTypes[j], className);
        }
    }
View Full Code Here

TOP

Related Classes of org.displaytag.properties.TableProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.