All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tools.dynamia.viewers.TableViewComponent Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
package tools.dynamia.viewers;


import java.util.List;

/**
 * Generic interface to implement Table Views
 *
 * @param 
 */
public interface TableViewComponent extends DataSetView> {

    /**
     * Find and get a table field using filed name and row index
     *
     * @param fieldName
     * @param rowIndex
     * @param 
     * @return
     */
     ITableFieldComponent getTableFieldComponent(String fieldName, int rowIndex);

    /**
     * Find and get a table field using filed name and item component
     *
     * @param fieldName
     * @param item
     * @param 
     * @return
     */
     ITableFieldComponent getTableFieldComponent(String fieldName, Object item);

    /**
     * Clear table
     */
    void clear();

    /**
     * Show row numbers
     *
     * @param showRowNumber
     */
    void setShowRowNumber(boolean showRowNumber);

    /**
     * check is row numbers is shown
     *
     * @return
     */
    boolean isShowRowNumber();

    /**
     * Check if item is selected
     *
     * @return
     */
    boolean isListitemSelected();

    /**
     * Order by attribute
     *
     * @return
     */
    String getOrderBy();

    /**
     * Update order by attribute
     *
     * @param orderBy
     */
    void setOrderBy(String orderBy);

    /**
     * Find a footer by field name
     *
     * @param fieldName
     * @return
     */
    TableViewFooterComponent getFooter(String fieldName);

    /**
     * Find a header by field name
     *
     * @param fieldName
     * @return
     */
    TableViewHeaderComponent getHeader(String fieldName);


    /**
     * Update view
     */
    void updateUI();

    Object getSource();

    void setSource(Object source);

    int getMaxResults();

    void setMaxResults(int maxResults);

    boolean isProjection();

    void setProjection(boolean projection);

    boolean isReadonly();

    void setReadonly(boolean readonly);

    void updateSelectedItem();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy