|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
tecgraf.javautils.excel.v1.util.ExcelAction
public abstract class ExcelAction
Ação que serve para exportar os dados de um componente para o formato XLS.
| Nested Class Summary | |
|---|---|
static class |
ExcelAction.StringUtils
Classe utilitária |
static class |
ExcelAction.XLSFilter
Filtro que aceita arquivos cuja extensão seja xls. |
| Field Summary | |
|---|---|
Component |
owner
A janela de onde essa ação é chamada |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
ExcelAction(Component owner,
String title)
Construtor. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent evt)
Executa a ação de exportar um componente para o formato XLS. |
protected File |
createFileForWrite(Component owner,
String filePath)
Cria um arquivo xls para escrita. |
protected void |
export(PoiExcel excel,
File file)
|
protected String |
getExportFileName()
Obtém o nome do arquivo a ser utilizado. |
protected String |
getFileExistsMessage(File originalFile,
File file)
|
protected String |
getFileExistsTitle()
|
abstract ExcelModel[] |
getModels()
Retorna os modelos |
protected String |
getNoTitle()
|
protected String |
getYesTitle()
|
protected void |
handler(Throwable e)
|
static void |
main(String[] args)
Testador |
protected void |
openInEDT(File file)
|
protected void |
runLaterInEDT(Runnable r)
|
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Component owner
| Constructor Detail |
|---|
public ExcelAction(Component owner,
String title)
owner - a janela de onde essa ação é chamadatitle - | Method Detail |
|---|
public abstract ExcelModel[] getModels()
public void actionPerformed(ActionEvent evt)
evt - o evento ocorridoprotected void handler(Throwable e)
e - protected void openInEDT(File file)
file -
protected void export(PoiExcel excel,
File file)
throws IOException
excel - file -
FileNotFoundException
IOException
protected File createFileForWrite(Component owner,
String filePath)
owner - a janela paifilePath - o caminho para o arquivo que se deseja criar
protected String getExportFileName()
protected String getFileExistsTitle()
protected String getFileExistsMessage(File originalFile,
File file)
originalFile - file -
protected String getYesTitle()
protected String getNoTitle()
protected void runLaterInEDT(Runnable r)
r - public static void main(String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||