package com.onaro.sanscreen.client.view.tabular; import java.util.Set; import com.onaro.sanscreen.client.IWarningRequired; import com.onaro.sanscreen.client.view.IViewDirectorLoader; import com.onaro.sanscreen.client.view.selection.ListObjectSelectionModel.ListToObjectTranslator; public interface ITabularDirectorLoader extends IViewDirectorLoader, IWarningRequired { /** * TODO: rename this, setLoader */ public void setTabularDirectorLoaderSite(ITabularDirectorLoaderSite site); public AbstractTabularTableModel getTableModel(); public int getFlaggedColumnIndex(); /** * Gets the default sorting column. * * @return the default sorting column, -1 for no default */ public int getDefaultSortingColumn(); /** * Gets the default sorting order. * * @return true if the default sorting order is ascending */ public boolean isDefaultAscendingSorting(); /** * Get the selection types that are consumable by this tabular director loader based off the * list of producible selection types. * * TODO: JDM - Consider changing the parameter value & return value to ObjectType rather than string * we might not be able to do this easily because some views may not have ObjectType selections. * * @param producibleSelectionTypes the possible selection types being sent to this view. * @return the selection types that this view can consume. */ public Set getConsumableSelectionTypes(Set producibleSelectionTypes); /** * Get the selection types produced by this view, or null if unknown. May be an empty set. */ public Set getSelectionTypes(); public ListToObjectTranslator getListToObjectTranslator(); }