Package org.apache.beehive.netui.databinding.datagrid.api

Examples of org.apache.beehive.netui.databinding.datagrid.api.DataGridState


        forward.addActionOutput("customers", customers);
        return forward;
    }

    private List<CustomerBean> lookupCustomers() {
        DataGridState dataGridState = DataGridStateFactory.getInstance(getRequest()).getDataGridState(GRID_NAME_CUSTOMERS);

        List<CustomerBean> dataSet = _customers;

        /* implement sorting */
        final List<Sort> sorts = (List<Sort>)dataGridState.getSortModel().getSorts();
        if(sorts != null && sorts.size() < 2) {

            Sort sort = (Sort)sorts.get(0);
            SortByProperty sorter = new SortByProperty();
            dataSet = sorter.sort(sort, _customers);
View Full Code Here


    public void doTag() {
        JspContext jspContext = getJspContext();
        DataGridStateFactory factory = DataGridStateFactory.getInstance(jspContext);
        assert factory != null;

        DataGridState state = null;
        if(_config != null)
            state = factory.getDataGridState(_name, _config);
        else
            state = factory.getDataGridState(_name);
View Full Code Here

     * Create a {@link DataGridState} object.  The default implementation returned is
     * {@link DataGridState}.
     * @return a data grid state implementation
     */
    public DataGridState createDataGridState() {
        return new DataGridState();
    }
View Full Code Here

    public void doTag() {
        JspContext jspContext = getJspContext();
        DataGridStateFactory factory = DataGridStateFactory.getInstance(jspContext);
        assert factory != null;

        DataGridState state = null;
        if(_config != null)
            state = factory.getDataGridState(_name, _config);
        else
            state = factory.getDataGridState(_name);
View Full Code Here

     * Create a {@link DataGridState} object.  The default implementation returned is
     * {@link DataGridState}.
     * @return a data grid state implementation
     */
    public DataGridState createDataGridState() {
        return new DataGridState();
    }
View Full Code Here

        forward.addActionOutput("customers", customers);
        return forward;
    }

    private List<CustomerBean> lookupCustomers() {
        DataGridState dataGridState = DataGridStateFactory.getInstance(getRequest()).getDataGridState(GRID_NAME_CUSTOMERS);

        List<CustomerBean> dataSet = _customers;

        /* implement sorting */
        final List<Sort> sorts = (List<Sort>)dataGridState.getSortModel().getSorts();
        if(sorts != null && sorts.size() < 2) {

            Sort sort = (Sort)sorts.get(0);
            SortByProperty sorter = new SortByProperty();
            dataSet = sorter.sort(sort, _customers);
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.databinding.datagrid.api.DataGridState

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.