|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.TransferHandler
jigcell.compare.impl.Transferer
jigcell.compare.impl.DataSource
jigcell.compare.data.DataGenerator
jigcell.compare.data.EditableDataGenerator
jigcell.compare.data.ProgrammableDataGenerator
jigcell.compare.transform.Transform
jigcell.compare.transform.SelectColumnsTransform
public class SelectColumnsTransform
A transform that selects a set of columns out of an existing generator.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jigcell.compare.data.EditableDataGenerator |
|---|
EditableDataGenerator.EditableDataGeneratorDelegate |
| Nested classes/interfaces inherited from interface jigcell.compare.IDataSource |
|---|
IDataSource.Option |
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_COLUMNS
Attribute for the selected columns |
protected java.lang.String[] |
columnNames
Last updated values for the column names |
protected static java.lang.String |
NAME_TRANSFORM
Display name for this transform |
protected boolean |
needToClear
Whether there is an outstanding clear caused by a flush to process |
| Fields inherited from class jigcell.compare.transform.Transform |
|---|
allowContextInsertion, allowContextRemoval, container, context |
| Fields inherited from class jigcell.compare.data.ProgrammableDataGenerator |
|---|
allowDescriptionQuery, callStack, listenerList |
| Fields inherited from class jigcell.compare.data.DataGenerator |
|---|
COMPARATOR_NAME, DESCRIPTION_READ, SEPARATOR_ESCAPE, SPECIAL_CHARS |
| Fields inherited from class jigcell.compare.impl.DataSource |
|---|
OPTIONS_LOCK, SEPARATOR_PAIR, SEPARATOR_PART, SEPARATORS |
| Fields inherited from class jigcell.compare.impl.Transferer |
|---|
CSV_FOOTER, CSV_LINEPOSTPEND, CSV_LINEPREPEND, CSV_LINESEPARATOR, HTML_FOOTER, HTML_HEADPOSTPEND, HTML_HEADPREPEND, HTML_HEADSEPARATOR, HTML_LINEPOSTPEND, HTML_LINEPREPEND, HTML_LINESEPARATOR |
| Fields inherited from class javax.swing.TransferHandler |
|---|
COPY, COPY_OR_MOVE, MOVE, NONE |
| Fields inherited from interface jigcell.compare.transform.ITransform |
|---|
OPTION_ANNOTATION, OPTION_COMPATIBLE, OPTION_NEXTSTATEMENT, OPTION_PREVIOUSSTATEMENT, OPTION_TRANSFORM, PROPERTY_TRANSFORM_EDIT, RESOURCE_TRANSFORMS |
| Fields inherited from interface jigcell.compare.IProgrammableDataGenerator |
|---|
METHOD_GENERATE, OPTION_COMPARE, OPTION_INPUTTYPECHECKER, OPTION_OUTPUTTYPECHECKER |
| Fields inherited from interface jigcell.compare.IDataGenerator |
|---|
ATTRIBUTE_COMMENT, ATTRIBUTE_GUID, PROPERTY_GENERATOR_EDIT, RESOURCE_GENERATORS |
| Fields inherited from interface jigcell.compare.IReadableDataSource |
|---|
OPTION_READDESCRIPTION, OPTION_READICON |
| Fields inherited from interface jigcell.compare.IDataSource |
|---|
OPTION_NAME |
| Fields inherited from interface jigcell.compare.IWriteableDataSource |
|---|
OPTION_WRITEDESCRIPTION, OPTION_WRITEICON |
| Constructor Summary | |
|---|---|
SelectColumnsTransform()
Creates a new transform to select columns from a larger set of data. |
|
| Method Summary | |
|---|---|
void |
clear()
Nulls out the stored element. |
protected IDataElement |
evaluate(IDataElement input)
Evaluates the transform. |
void |
flush()
Destroys all work leading into this generator. |
ITransformAnnotation |
getAnnotation()
An annotation object for this generator. |
java.lang.String |
getColumnName(long column)
The name of a column to select from. |
java.lang.String[] |
getColumnNames()
The names of the columns to select from. |
IDataElement |
getColumns()
The selected columns. |
static java.lang.Object |
getCustomizableInstances()
Generates an instance. |
ITypeChecker |
getInputTypeChecker()
Type checker that can validate the input to this generator. |
ITypeChecker |
getOutputTypeChecker()
Type checker that can validate the output from this generator. |
protected long |
getSelectedIndex(long column)
The index of a selected column in the columns to select from. |
java.lang.String |
getSelectedName(long column)
The name of a selected column. |
void |
setColumns(java.lang.String columns)
Sets the selected columns. |
| Methods inherited from class jigcell.compare.data.EditableDataGenerator |
|---|
getPredictedCompatibility, getPredictedCompatibility, isSet, setAttribute, setComment, setElement, setElement, setOption, setState, write |
| Methods inherited from class jigcell.compare.data.DataGenerator |
|---|
clone, compareByName, copy, generateGUID, getAttribute, getComment, getCopiedFrom, getName, getPredictedContents, getTransferData, isCopy, isCopyRelated, read, setCopyName, setName, toString |
| Methods inherited from class jigcell.compare.impl.Transferer |
|---|
addExtension, addFlavor, createCSVTable, createFormattedTable, createHTMLTable, getExceptionRecorder, getExpectedClasses, getExpectedClasses, getExpectedClasses, getFlavors, getFlavors, getPreferredExtensions, getPreferredExtensions, getTransferClass, getTransferDataFlavors, getTransferFlavor, isDataFlavorSupported, transfer |
| Methods inherited from class javax.swing.TransferHandler |
|---|
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getSourceActions, getVisualRepresentation, importData |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jigcell.compare.IProgrammableDataGenerator |
|---|
addEvaluationListener, getCallStack, getElement, getEvaluationLock, getInterface, peekElement, removeEvaluationListener |
| Methods inherited from interface jigcell.compare.IEditableDataGenerator |
|---|
setComment, setCopyName, setElement, setName |
| Methods inherited from interface jigcell.compare.IDataGenerator |
|---|
copy, getAttribute, getComment, getCopiedFrom, getElement, isCached, isCopy, isCopyRelated, setAttribute |
| Methods inherited from interface jigcell.compare.IReadableDataSource |
|---|
getPredictedContents, getReadDescriptionOption, getReadIconOption, read, setReadDescriptionOption, setReadIconOption |
| Methods inherited from interface jigcell.compare.IDataSource |
|---|
addOption, clone, configure, getName, getOption, getState, setOption, setState |
| Methods inherited from interface java.awt.datatransfer.Transferable |
|---|
getTransferData, getTransferDataFlavors, isDataFlavorSupported |
| Methods inherited from interface jigcell.compare.IWriteableDataSource |
|---|
getPredictedCompatibility, getPredictedCompatibility, getWriteDescriptionOption, getWriteIconOption, setWriteDescriptionOption, setWriteIconOption, write |
| Field Detail |
|---|
public static final java.lang.String ATTRIBUTE_COLUMNS
protected static final java.lang.String NAME_TRANSFORM
protected transient java.lang.String[] columnNames
protected transient boolean needToClear
| Constructor Detail |
|---|
public SelectColumnsTransform()
| Method Detail |
|---|
public static java.lang.Object getCustomizableInstances()
public void clear()
clear in interface IEditableDataGeneratorclear in interface ITransformclear in class Transformpublic void flush()
flush in interface ITransformflush in class Transformpublic ITransformAnnotation getAnnotation()
getAnnotation in interface ITransformgetAnnotation in class Transformpublic java.lang.String getColumnName(long column)
column - Columnpublic java.lang.String[] getColumnNames()
public IDataElement getColumns()
public ITypeChecker getInputTypeChecker()
getInputTypeChecker in interface IProgrammableDataGeneratorgetInputTypeChecker in class ProgrammableDataGeneratorpublic ITypeChecker getOutputTypeChecker()
getOutputTypeChecker in interface IProgrammableDataGeneratorgetOutputTypeChecker in class ProgrammableDataGeneratorpublic java.lang.String getSelectedName(long column)
column - Columnpublic void setColumns(java.lang.String columns)
columns - Columnsprotected IDataElement evaluate(IDataElement input)
evaluate in class Transforminput - Transform inputprotected long getSelectedIndex(long column)
column - Column
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||