public class Macro extends Object
RTextArea.| Constructor and Description |
|---|
Macro()
Constructor.
|
Macro(File file)
Loads a macro from a file on disk.
|
Macro(String name)
Constructor.
|
Macro(String name,
List records)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 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.Copyright © 2009-2013 jtstand.com. All Rights Reserved.