|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.ui.rtextarea.Macro
public class Macro
A macro as recorded/played back by an RTextArea.
| Constructor Summary | |
|---|---|
Macro()
Constructor. |
|
Macro(File file)
Loads a macro from a file on disk. |
|
Macro(String name)
Constructor. |
|
Macro(String name,
List records)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addMacroRecord(org.fife.ui.rtextarea.Macro.MacroRecord record)
Adds a macro record to this macro. |
List |
getMacroRecords()
Returns the macro records that make up this macro. |
String |
getName()
Returns the name of this macro. |
void |
saveToFile(String fileName)
Saves this macro to a text file. |
void |
setName(String name)
Sets the name of this macro. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Macro()
public Macro(File file)
throws EOFException,
FileNotFoundException,
IOException
file - The file from which to load the macro.
EOFException - If an EOF is reached unexpectedly (i.e.,
the file is corrupt).
FileNotFoundException - If the specified file does not exist, is
a directory instead of a regular file, or otherwise cannot be
opened.
IOException - If an I/O exception occurs while reading the file.saveToFile(java.lang.String)public Macro(String name)
name - The name of the macro.
public Macro(String name,
List records)
name - The name of the macro.records - The initial records of the macro.| Method Detail |
|---|
public void addMacroRecord(org.fife.ui.rtextarea.Macro.MacroRecord record)
record - The record to add. If null, nothing happens.getMacroRecords()public List getMacroRecords()
addMacroRecord(org.fife.ui.rtextarea.Macro.MacroRecord)public String getName()
setName(java.lang.String)
public void saveToFile(String fileName)
throws IOException
File parameter; this is the
mechanism for saving macros.
fileName - The name of the file in which to save the macro.
IOException - If an error occurs while generating the XML for
the output file.public void setName(String name)
name - The new name for the macro.getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||