|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JFileChooser
csheets.ui.FileChooser
public class FileChooser
A file chooser that loads choosable file types from properties.
| Nested Class Summary | |
|---|---|
static class |
FileChooser.Filter
A file filter for use in file choosers. |
| Nested classes/interfaces inherited from class javax.swing.JFileChooser |
|---|
JFileChooser.AccessibleJFileChooser |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FileChooser(Component parent,
Properties props)
Creates a new file chooser. |
|
| Method Summary | |
|---|---|
void |
addChoosableFileFilter(FileFilter filter)
|
File |
getFileToOpen()
Shows a file chooser and returns the file the user selected, if any. |
File |
getFileToSave()
Shows a file chooser and returns the file the user selected, if any. |
void |
workbookCreated(SpreadsheetAppEvent event)
Invoked by the spreadsheet application to indicate that a new workbook has been created. |
void |
workbookLoaded(SpreadsheetAppEvent event)
Invoked by the spreadsheet application to indicate that a workbook has been loaded from the given file. |
void |
workbookSaved(SpreadsheetAppEvent event)
Invoked by the spreadsheet application to indicate that a workbook was saved to the given file. |
void |
workbookUnloaded(SpreadsheetAppEvent event)
Invoked by the spreadsheet application to indicate that a workbook has been unloaded (closed). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileChooser(Component parent,
Properties props)
parent - the parent component of dialogsprops - the user properties| Method Detail |
|---|
public File getFileToOpen()
public File getFileToSave()
public void addChoosableFileFilter(FileFilter filter)
addChoosableFileFilter in class JFileChooserpublic void workbookCreated(SpreadsheetAppEvent event)
SpreadsheetAppListener
workbookCreated in interface SpreadsheetAppListenerevent - the spreadsheet application event that occuredpublic void workbookLoaded(SpreadsheetAppEvent event)
SpreadsheetAppListener
workbookLoaded in interface SpreadsheetAppListenerevent - the spreadsheet application event that occuredpublic void workbookUnloaded(SpreadsheetAppEvent event)
SpreadsheetAppListener
workbookUnloaded in interface SpreadsheetAppListenerevent - the spreadsheet application event that occuredpublic void workbookSaved(SpreadsheetAppEvent event)
SpreadsheetAppListener
workbookSaved in interface SpreadsheetAppListenerevent - the spreadsheet application event that occured
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||