|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.gui.tools.spreadsheetviewer.AbstractDataPlugin
public abstract class AbstractDataPlugin
Ancestor for "processing" plugins in the spreadsheet viewer.
| Field Summary |
|---|
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractDataPlugin()
|
|
| Method Summary | |
|---|---|
protected String |
check(SpreadSheet sheet)
Checks the spreadsheet. |
protected abstract SpreadSheet |
doProcess(SpreadSheet sheet)
Performs the actual processing of the spreadsheet. |
abstract String |
getMenuIcon()
Returns the file name of the icon. |
abstract String |
getMenuText()
Returns the text of the menu item. |
static String[] |
getPlugins()
Returns a list with classnames of plugins. |
abstract boolean |
isInPlace()
Returns whether the processed sheet should rather get placed ("in-place") in the same tab rather than in a new one. |
SpreadSheet |
process(SpreadSheet sheet)
Processes the spreadsheet. |
AbstractDataPlugin |
shallowCopy()
Returns a shallow copy of itself, i.e., based on the commandline options. |
AbstractDataPlugin |
shallowCopy(boolean expand)
Returns a shallow copy of itself, i.e., based on the commandline options. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, defineOptions, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDataPlugin()
| Method Detail |
|---|
public abstract String getMenuText()
public abstract String getMenuIcon()
public abstract boolean isInPlace()
protected String check(SpreadSheet sheet)
sheet - the spreadsheet to check
protected abstract SpreadSheet doProcess(SpreadSheet sheet)
sheet - the sheet to process
public SpreadSheet process(SpreadSheet sheet)
sheet - the sheet to process
IllegalArgumentException - if the check failedcheck(SpreadSheet)public AbstractDataPlugin shallowCopy()
shallowCopy in interface ShallowCopySupporter<AbstractDataPlugin>public AbstractDataPlugin shallowCopy(boolean expand)
shallowCopy in interface ShallowCopySupporter<AbstractDataPlugin>expand - whether to expand variables to their current values
public static String[] getPlugins()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||