|
||||||||||
| 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
org.esa.beam.util.io.BeamFileChooser
public class BeamFileChooser
The general BEAM file chooser.
| Nested Class Summary |
|---|
| 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.BaselineResizeBehavior, 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 | |
|---|---|
BeamFileChooser()
|
|
BeamFileChooser(File currentDirectory)
|
|
BeamFileChooser(File currentDirectory,
FileSystemView fsv)
|
|
BeamFileChooser(FileSystemView fsv)
|
|
| Method Summary | |
|---|---|
void |
approveSelection()
Called by the UI when the user hits the Approve button (labeled "Open" or "Save", by default). |
boolean |
checkExtension(String filename)
Checks whether or not the given filename with one of the known file extensions. |
protected JDialog |
createDialog(Component parent)
Overridden in order to recognize dialog size changes. |
BeamFileFilter |
getBeamFileFilter()
Returns the currently selected BEAM file filter. |
String |
getCurrentFilename()
|
String |
getDefaultExtension()
|
Rectangle |
getDialogBounds()
Gets the dialog bounds to be used for the next JFileChooser.showDialog(java.awt.Component, String) call. |
Icon |
getIcon(File f)
|
protected Window |
getWindow()
Utility method which returns this file chooser's parent window. |
boolean |
isTraversable(File f)
|
void |
setCurrentFilename(String currentFilename)
Sets the current filename. |
void |
setDialogBounds(Rectangle dialogBounds)
Sets the dialog bounds to be used for the next JFileChooser.showDialog(java.awt.Component, String) call. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BeamFileChooser()
public BeamFileChooser(FileSystemView fsv)
public BeamFileChooser(File currentDirectory)
public BeamFileChooser(File currentDirectory,
FileSystemView fsv)
| Method Detail |
|---|
public Icon getIcon(File f)
getIcon in class JFileChooserpublic boolean isTraversable(File f)
isTraversable in class JFileChooser
protected JDialog createDialog(Component parent)
throws HeadlessException
createDialog in class JFileChooserparent - the parent
HeadlessExceptionpublic void approveSelection()
approveSelection in class JFileChooserpublic Rectangle getDialogBounds()
JFileChooser.showDialog(java.awt.Component, String) call.
public void setDialogBounds(Rectangle dialogBounds)
JFileChooser.showDialog(java.awt.Component, String) call.
dialogBounds - the dialog boundspublic String getCurrentFilename()
null.public void setCurrentFilename(String currentFilename)
currentFilename - The current filename, or null.public BeamFileFilter getBeamFileFilter()
nullpublic String getDefaultExtension()
null if it is unknown.public boolean checkExtension(String filename)
BeamFileFilter.
filename - the filename to be checked
true, if the given file has a "known" extensionBeamFileFilterprotected Window getWindow()
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||