com.sas.dataselectors.export
Class RelationalExportSelectorAdapter

com.sas.dataselectors.export.RelationalExportSelectorAdapter
All Implemented Interfaces:
ExportColumnsInterface, ExportHeadersFootersInterface, ExportSelectorInterface, HTMLExportSelectorInterface

public class RelationalExportSelectorAdapter
implements ExportSelectorInterface, ExportColumnsInterface


Field Summary
 
Fields inherited from class com.sas.dataselectors.export.BaseExportSelectorAdapter
cssDefinitions, cssMediaList, cssMIMEType, cssTitle, cssURL, dataModel, footers, fromRow, headers, includeRows, isFormattedData, outputType, toRow
 
Fields inherited from interface com.sas.dataselectors.export.ExportSelectorInterface
ALL_ROWS, EXCEL_CSV_OUTPUT_TYPE, EXCEL_HTML_OUTPUT_TYPE, EXCEL_TSV_OUTPUT_TYPE, EXCEL_XML_OUTPUT_TYPE, EXPORT_TO, FORMATTED_DATA, MAX_NROWS, MIN_NROWS, NOT_REPEAT_ROW_LABELS, PARTIAL_ROWS, RAW_DATA, REPEAT_ROW_LABELS, SAVE_AS, WORD_HTML_OUTPUT_TYPE, XLSX_OUTPUT_TYPE
 
Fields inherited from interface com.sas.dataselectors.export.ExportColumnsInterface
ALL_COLUMNS, DISPLAYED_COLUMNS, SELECTED_COLUMNS
 
Constructor Summary
RelationalExportSelectorAdapter()
           
 
Method Summary
 java.util.List getAvailableColumns()
          Returns the list of quadruplets column's name/column's index/enabledImageName/disabledImageName for all the columns that are in the TableModel.
 int[] getColumns()
          Returns the indexes of the columns to export.
 int[] getCurrentlyDisplayedColumnIndexes()
          Returns the indexes of the columns that are currently displayed in the TableView that contains the data we're exporting.
 java.lang.Object getViewer()
          Returns the viewer like a TableView or a MenuBar where the displaying of this selector originated from.
 void setColumns(int[] columns)
          Sets the indexes of the columns to export.
 void setCurrentlyDisplayedColumnIndexes(int[] indexes)
          Sets the indexes of the columns that are currently displayed in the TableView that contains the data we're exporting.
 void setViewer(java.lang.Object viewer)
          Sets the viewer like a TableView or a MenuBar where the displaying of this selector originated from.
 
Methods inherited from class com.sas.dataselectors.export.BaseExportSelectorAdapter
getCSSInfo, getCssMediaList, getCssMIMEType, getCssTitle, getCssURL, getDataModel, getFooters, getFromRowCount, getHeaders, getIncludeRows, getNRows, getOutputType, getStartRow, getToRowCount, isFormattedData, isRawDataAvailable, setCssMediaList, setCssMIMEType, setCssTitle, setCssURL, setDataModel, setFooters, setFromRowCount, setHeaders, setIncludeRows, setIsFormattedData, setOutputType, setToRowCount
 
Methods inherited from interface com.sas.dataselectors.export.ExportSelectorInterface
getFromRowCount, getIncludeRows, getNRows, getOutputType, getStartRow, getToRowCount, isFormattedData, isRawDataAvailable, setFromRowCount, setIncludeRows, setIsFormattedData, setOutputType, setToRowCount
 

Constructor Detail

RelationalExportSelectorAdapter

public RelationalExportSelectorAdapter()
Method Detail

setColumns

public void setColumns(int[] columns)
Description copied from interface: ExportColumnsInterface
Sets the indexes of the columns to export.

Specified by:
setColumns in interface ExportColumnsInterface
Parameters:
columns - the indexes of the columns to export.

getColumns

public int[] getColumns()
Description copied from interface: ExportColumnsInterface
Returns the indexes of the columns to export.

Specified by:
getColumns in interface ExportColumnsInterface
Returns:
the indexes of the columns to export.

getAvailableColumns

public java.util.List getAvailableColumns()
Description copied from interface: ExportColumnsInterface
Returns the list of quadruplets column's name/column's index/enabledImageName/disabledImageName for all the columns that are in the TableModel.

Specified by:
getAvailableColumns in interface ExportColumnsInterface
Returns:
a List of String[4] elements where the first String is the column name, the second String is the index of that column in the TableModel, the third is the name of the image to display in the node when the node is enabled, the fouth is the name of the image to display in the node when the node is disabled. Example [0] = "Age" and [1] = "0" and [2] = "CategoryItemType.gif" and [3] = "CategoryItemType_disabled.gif". An empty List is returned if it cannot provide with a valid List of quadruplets column's name/column's index/enabledImageName/disabledImageName.

setViewer

public void setViewer(java.lang.Object viewer)
Description copied from interface: ExportColumnsInterface
Sets the viewer like a TableView or a MenuBar where the displaying of this selector originated from. Example when you click on the 'Export to Excel...' icon of the MenuBar or when you launch the ExportSelector directly from within a Tableview. This viewer can be needed by the selector panel for example to know what is the set of currently displayed columns.

Specified by:
setViewer in interface ExportColumnsInterface
Parameters:
viewer - the viewer where the displaying of this selector originated from.

getViewer

public java.lang.Object getViewer()
Description copied from interface: ExportColumnsInterface
Returns the viewer like a TableView or a MenuBar where the displaying of this selector originated from. Example when you click on the 'Export to Excel...' icon of the MenuBar or when you launch the ExportSelector directly from within a Tableview. This viewer can be needed by the selector panel for example to know what is the set of currently displayed columns.

Specified by:
getViewer in interface ExportColumnsInterface
Returns:
the viewer where the displaying of this selector originated from.

getCurrentlyDisplayedColumnIndexes

public int[] getCurrentlyDisplayedColumnIndexes()
Description copied from interface: ExportColumnsInterface
Returns the indexes of the columns that are currently displayed in the TableView that contains the data we're exporting.

Specified by:
getCurrentlyDisplayedColumnIndexes in interface ExportColumnsInterface
Returns:
the indexes of the columns that are currently displayed in the TableView that contains the data we're exporting.

setCurrentlyDisplayedColumnIndexes

public void setCurrentlyDisplayedColumnIndexes(int[] indexes)
Description copied from interface: ExportColumnsInterface
Sets the indexes of the columns that are currently displayed in the TableView that contains the data we're exporting.

Specified by:
setCurrentlyDisplayedColumnIndexes in interface ExportColumnsInterface
Parameters:
indexes - the indexes of the columns that are currently displayed in the TableView that contains the data we're exporting.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.