|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LyExportBehaviorInterface
This interface defines methods for the behavior of an export action.
LyExportController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Method Summary | |
---|---|
java.util.Vector<java.lang.String> |
getExportLines(LyExportController controller,
java.util.Iterator<LyObject> objects,
java.util.Vector<LyFieldInfo> fields,
java.lang.String fieldSep,
java.lang.String valueSep,
java.lang.String exportType)
Return the lines that will be written in the export file. |
java.lang.String |
getHeaderMark(LyExportController controller)
Returns the header mark, as a String, to be used at the beginning of header line. |
boolean |
isFormDisplayed(LyExportController controller)
Indicates if the export form is displayed. |
boolean |
saveFile(LyExportController controller,
java.io.File file,
java.util.Vector<java.lang.String> lines)
Saves lines from the given list into the given file. |
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction |
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface |
---|
free, handleDemand, init |
Field Detail |
---|
static final java.lang.String __VERSION
Method Detail |
---|
java.util.Vector<java.lang.String> getExportLines(LyExportController controller, java.util.Iterator<LyObject> objects, java.util.Vector<LyFieldInfo> fields, java.lang.String fieldSep, java.lang.String valueSep, java.lang.String exportType)
controller
- the current export controllerobjects
- objects to export.fields
- list of fieldInfos that should be exported to the file.fieldSep
- separator between fields (columns)valueSep
- separator between multiple valuesexportType
- type of data to export : Possible values are SELECT_EXPORT_TYPE_TEXT
(.txt), SELECT_EXPORT_TYPE_RAW (.res) or SELECT_EXPORT_TYPE_SPREADSHEET
(.csv).
boolean saveFile(LyExportController controller, java.io.File file, java.util.Vector<java.lang.String> lines)
controller
- the current export controllerfile
- the file where data must be savedlines
- the list of lines to save
java.lang.String getHeaderMark(LyExportController controller)
controller
- the export controller
boolean isFormDisplayed(LyExportController controller)
controller
- the export controller
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |