|
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 |
java.lang.Objectleon.app.behavior.LyBehavior
leon.app.behavior.LyActionBehavior
leon.app.behavior.LyExportBehavior
public class LyExportBehavior
Default implementation of the export behavior.
LyExportController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Constructor Summary | |
---|---|
LyExportBehavior()
|
Method Summary | |
---|---|
java.lang.String |
getDefaultAttributeSep()
Returns the default separator, as a String, of the separator to be used between attributes. |
java.lang.String |
getDefaultAttributeValSep()
Returns the default separator, as a String, of the separator to be used between attribute values. |
java.lang.String |
getDefaultExportType()
Returns the default export type. |
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. |
void |
showExportedFileWindow(LyExportController controller,
java.lang.String fileName)
This method is called at the end of the export action. |
Methods inherited from class leon.app.behavior.LyActionBehavior |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction |
Methods inherited from class leon.app.behavior.LyBehavior |
---|
free, getSession, handleDemand, init |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyExportBehavior()
Method Detail |
---|
public 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)
getExportLines
in interface LyExportBehaviorInterface
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).
public boolean saveFile(LyExportController controller, java.io.File file, java.util.Vector<java.lang.String> lines)
saveFile
in interface LyExportBehaviorInterface
controller
- the current export controllerfile
- the file where data must be savedlines
- the list of lines to save
public java.lang.String getHeaderMark(LyExportController controller)
LyString.EXPORT_HEADER_MARK
constant.
getHeaderMark
in interface LyExportBehaviorInterface
controller
- the export controller
public java.lang.String getDefaultAttributeSep()
public java.lang.String getDefaultAttributeValSep()
public java.lang.String getDefaultExportType()
public void showExportedFileWindow(LyExportController controller, java.lang.String fileName)
controller
- The current export controllerfileName
- The neame of the exported file namepublic boolean isFormDisplayed(LyExportController controller)
isFormDisplayed
in interface LyExportBehaviorInterface
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 |