|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractAction net.clackrouter.actions.AbstractActionDefault net.clackrouter.actions.AbstractActionFile
public abstract class AbstractActionFile
Nested Class Summary | |
---|---|
protected class |
AbstractActionFile.MyFileFilter
Filter for the jgraphpad file format (*.pad or *.lib) |
Field Summary | |
---|---|
static boolean |
COMPRESS_FILES
If the library files should be compressed (zipped) |
Fields inherited from class net.clackrouter.actions.AbstractActionDefault |
---|
graphpad |
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface net.clackrouter.jgraph.pad.resources.TranslatorConstants |
---|
PREFIX_COMPONENT, PREFIX_MESSAGE_ERROR, PREFIX_MESSAGE_INFORMATION, PREFIX_MESSAGE_WARING, SUFFIX_ACCELERATOR, SUFFIX_ACTION, SUFFIX_ICON, SUFFIX_IMAGE, SUFFIX_LABEL, SUFFIX_MENU, SUFFIX_MNEMONIC, SUFFIX_TEXT, SUFFIX_TITLE, SUFFIX_TOOL_TIP_TEXT |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
AbstractActionFile(ClackFramework graphpad)
Constructor for AbstractActionFile. |
Method Summary | |
---|---|
static java.io.ObjectInputStream |
createInputStream(java.lang.String filename)
Create an object input stream. |
static java.io.ObjectInputStream |
createInputStream(java.lang.String filename,
boolean compressed)
Create an object input stream. |
static java.io.ObjectOutputStream |
createOutputStream(java.lang.String filename)
Create an object output stream. |
static java.io.ObjectOutputStream |
createOutputStream(java.lang.String filename,
boolean compressed)
Create an object output stream. |
protected java.lang.String |
dialog(java.lang.String message,
boolean open,
java.lang.String extension,
java.lang.String desc)
Opens a dialog and return the filename. |
java.lang.String |
openDialog(java.lang.String message,
java.lang.String extension,
java.lang.String desc)
Shows a file open dialog and returns the filename. |
java.lang.String |
saveDialog(java.lang.String message,
java.lang.String extension,
java.lang.String desc)
Shows a file save dialog and returns the filename. |
Methods inherited from class net.clackrouter.actions.AbstractActionDefault |
---|
getCurrentDocument, getCurrentGraph, getCurrentGraphLayoutCache, getGraphpad, getMenuComponent, getMenuComponents, getName, getPresentationText, getToolComponent, getToolComponents, setGraphpad, setSelectionAttributes, update |
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 |
Methods inherited from interface java.awt.event.ActionListener |
---|
actionPerformed |
Field Detail |
---|
public static final boolean COMPRESS_FILES
Constructor Detail |
---|
public AbstractActionFile(ClackFramework graphpad)
graphpad
- Method Detail |
---|
public java.lang.String openDialog(java.lang.String message, java.lang.String extension, java.lang.String desc)
public java.lang.String saveDialog(java.lang.String message, java.lang.String extension, java.lang.String desc)
protected java.lang.String dialog(java.lang.String message, boolean open, java.lang.String extension, java.lang.String desc)
public static java.io.ObjectInputStream createInputStream(java.lang.String filename, boolean compressed) throws java.lang.Exception
java.lang.Exception
public static java.io.ObjectOutputStream createOutputStream(java.lang.String filename, boolean compressed) throws java.lang.Exception
java.lang.Exception
public static java.io.ObjectInputStream createInputStream(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public static java.io.ObjectOutputStream createOutputStream(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |