|
|||||||||
| 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(java.io.File file)
Loads a macro from a file on disk. |
|
Macro(java.lang.String name)
Constructor. |
|
Macro(java.lang.String name,
java.util.List records)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addMacroRecord(org.fife.ui.rtextarea.Macro.MacroRecord record)
Adds a macro record to this macro. |
java.util.List |
getMacroRecords()
Returns the macro records that make up this macro. |
java.lang.String |
getName()
Returns the name of this macro. |
void |
saveToFile(java.lang.String fileName)
Saves this macro to a text file. |
void |
setName(java.lang.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(java.io.File file)
throws java.io.EOFException,
java.io.FileNotFoundException,
java.io.IOException
file - The file from which to load the macro.
java.io.EOFException - If an EOF is reached unexpectedly (i.e.,
the file is corrupt).
java.io.FileNotFoundException - If the specified file does not exist, is
a directory instead of a regular file, or otherwise cannot be
opened.
java.io.IOException - If an I/O exception occurs while reading the file.saveToFile(java.lang.String)public Macro(java.lang.String name)
name - The name of the macro.
public Macro(java.lang.String name,
java.util.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 java.util.List getMacroRecords()
addMacroRecord(org.fife.ui.rtextarea.Macro.MacroRecord)public java.lang.String getName()
setName(java.lang.String)
public void saveToFile(java.lang.String fileName)
throws java.io.IOException
File parameter; this is the
mechanism for saving macros.
fileName - The name of the file in which to save the macro.
java.io.IOException - If an error occurs while generating the XML for
the output file.public void setName(java.lang.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 | ||||||||