ObjectTableModel.java :  » Workflow-Engines » osbl-1_0 » org » osbl » client » wings » form » Java Open Source

Java Open Source » Workflow Engines » osbl 1_0 
osbl 1_0 » org » osbl » client » wings » form » ObjectTableModel.java
package org.osbl.client.wings.form;

import org.wings.table.STableColumnModel;
import org.wingx.table.RefreshableModel;

/**
 * A TableModel that assumes, that its rows are bean style objects with identifiers. Furthermore it suspects, that the
 * implementation has sufficient information to create a consistent table column model.
 */
public interface ObjectTableModel
    extends RefreshableModel
{
    /**
     * Create a table column model, that is consistent with this table model.
     * @return a table column model.
     */
    STableColumnModel getColumnModel();

    /**
     * Return the identifier of the row at the specified index.
     * @param rowIndex
     * @return the id of row <code>rowIndex</code>
     */
    Object getRowId(int rowIndex);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.