ewe.data
Class FieldTableExportSpecs
java.lang.Object
ewe.data.DataObject
ewe.data.LiveObject
ewe.data.FieldTableExportSpecs
- All Implemented Interfaces:
- Comparable, Copyable, DataUnit, FieldListener, LiveData
- public class FieldTableExportSpecs
- extends LiveObject
This is used by a FieldTableModel to export table data to the clipboard or to a file. It
als provides an Editor which the user can use to specify particular details about the
export. You can execute ewe ewe.data.FieldTableExportSpecs to see what it looks like.
|
Method Summary |
void |
action(String fieldName,
Editor ed)
This gets called by action(FieldTransfer ft,Editor ed) and by fieldChanged(FieldTransfer ft,Editor ed)
if the field changed is a menu item. |
void |
addToPanel(CellPanel c,
Editor f,
int which)
Override this to provide the user interface for editing the Object. |
void |
fieldChanged(String fieldName,
Editor ed)
This gets called by fieldChanged(FieldTransfer ft,Editor ed). |
void |
fieldEvent(FieldTransfer ft,
Editor ed,
Object event)
This implements the fieldEvent() method in FieldListener. |
| Methods inherited from class ewe.data.LiveObject |
action, addMeToPanel, addObjectToPanel, decode, decoded, decodeFields, enableEditorScrolling, encode, encoded, encodeFields, fieldChanged, getEditor, getEditorScroller, getIcon, getName, input, makeNewEditor, runAsApp, textDecode, textEncode |
| Methods inherited from class ewe.data.DataObject |
_getSetField, appendAllFields, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew |
lastExport
public static String lastExport
columnHeaders
public boolean columnHeaders
rowHeaders
public boolean rowHeaders
reorderRows
public boolean reorderRows
selectedOnly
public boolean selectedOnly
entireTable
public boolean entireTable
toClipboard
public boolean toClipboard
toFile
public boolean toFile
useTab
public boolean useTab
useSpace
public boolean useSpace
useOther
public boolean useOther
fieldSeparator
public String fieldSeparator
fileName
public String fileName
outputFile
public File outputFile
columns
public MultiListSelect.SingleListSelect columns
appendFile
public boolean appendFile
FieldTableExportSpecs
public FieldTableExportSpecs()
FieldTableExportSpecs
public FieldTableExportSpecs(FieldTableModel model)
addToPanel
public void addToPanel(CellPanel c,
Editor f,
int which)
- Description copied from class:
LiveObject
- Override this to provide the user interface for editing the Object.
Add all your controls to the CellPanel cp, and your fields to the Editor ed.
The options parameter may be used to specify a different Editor for the
Object for different situations - it is the same parameter that is passed
to the LiveData.getEditor(int options) call.
- Overrides:
addToPanel in class LiveObject
fieldEvent
public void fieldEvent(FieldTransfer ft,
Editor ed,
Object event)
- Description copied from class:
LiveObject
- This implements the fieldEvent() method in FieldListener. By default it
calls fieldChanged(String name,Editor ed) UNLESS the field is a MenuItem,
in which case it will call action(String menuItemAction,Editor ed);
- Specified by:
fieldEvent in interface FieldListener- Overrides:
fieldEvent in class LiveObject
fieldChanged
public void fieldChanged(String fieldName,
Editor ed)
- Description copied from class:
LiveObject
- This gets called by fieldChanged(FieldTransfer ft,Editor ed).
By default it will look for
a method called void _changed(Editor ed) and if it finds it, it will be executed.
- Overrides:
fieldChanged in class LiveObject
action
public void action(String fieldName,
Editor ed)
- Description copied from class:
LiveObject
- This gets called by action(FieldTransfer ft,Editor ed) and by fieldChanged(FieldTransfer ft,Editor ed)
if the field changed is a menu item.
By default it will look for
a method called void _action(Editor ed) and if it finds it, it will be executed.
- Overrides:
action in class LiveObject