|
FreeHEP API Version v1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.freehep.graphicsio.exportchooser.FileOptionsAccessory
Nested Class Summary | |
protected class |
FileOptionsAccessory.EmptyOptions
An internal class which makes an empty options panel for the "select all" files option in the JFileChooser. |
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, 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 | |
FileOptionsAccessory()
|
Method Summary | |
void |
addExportFileType(ExportFileType newFileType)
|
void |
adjustFilename(File file)
Tell the underlying file type to change the selected file's name as appropriate. |
void |
allowAutomaticNameChanges(boolean allowNameChanges)
The individual ExportFileTypes can change the filename in response to an adjustFilename() method call. |
protected void |
allowFilenameChange(File currentFile)
This is a utility method used to allow the file type to change the filename. |
ExportFileType |
getExportFileType()
Return the currently selected ExportFileType. |
ExportFileType |
getExportFileTypeFromExtension(File file)
Get an export file type based on a file's extension. |
File |
getSelectedFile()
Return the selected file from the enclosing JFileChooser. |
void |
propertyChange(PropertyChangeEvent evt)
Monitor property changes. |
void |
setDefaultFilename(String defaultFilename)
Set the default filename used if only a directory is specified in the chooser. |
void |
setSelectedFile(File newFile)
Set the selected file in the enclosing JFileChooser. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FileOptionsAccessory()
Method Detail |
public void addExportFileType(ExportFileType newFileType)
public ExportFileType getExportFileType()
public ExportFileType getExportFileTypeFromExtension(File file)
public void setDefaultFilename(String defaultFilename)
public void allowAutomaticNameChanges(boolean allowNameChanges)
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
protected void allowFilenameChange(File currentFile)
public void setSelectedFile(File newFile)
public File getSelectedFile()
public void adjustFilename(File file)
|
FreeHEP API Version v1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |