|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.controller.Command oracle.jdeveloper.audit.transform.TextBufferCommand
public class TextBufferCommand
An Ide command which transforms a text buffer.
Field Summary |
---|
Fields inherited from class oracle.ide.controller.Command |
---|
CANCEL, context, EXECUTING, MULTI_NODE, NO_CHANGE, NO_UNDO, NORMAL, OK, type |
Constructor Summary | |
---|---|
TextBufferCommand(java.lang.String name,
TextBuffer buffer)
Creates a text transform command. |
Method Summary | |
---|---|
int |
doit()
Executes the actions associated with a specific command. |
void |
insert(int offset,
char[] text)
Inserts text into the buffer. |
void |
insert(int offset,
java.lang.String text)
Inserts text into the buffer. |
void |
remove(int offset,
int length)
Removes text from the buffer. |
int |
undo()
Called by the CommandProcessor to undo a command. |
Methods inherited from class oracle.ide.controller.Command |
---|
getAffectedNodes, getContext, getData, getId, getName, getType, isGlobal, setContext, setData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextBufferCommand(java.lang.String name, TextBuffer buffer)
name
- The name of the command.buffer
- The buffer to be transformed by this command.Method Detail |
---|
public void insert(int offset, char[] text)
offset
- The character offset before which to insert.text
- The text to insert.public void insert(int offset, java.lang.String text)
offset
- The character offset before which to insert.text
- The text to insert.public void remove(int offset, int length)
offset
- The character offset before the first character to remove.length
- The number of characters to remove.public int doit() throws java.lang.Exception
Command
doit
in class Command
java.lang.Exception
public int undo() throws java.lang.Exception
Command
doit
method was called
When a command executes successfully, implementations should
return OK, otherwise, return CANCEL or any other non-zero value.
undo
in class Command
java.lang.Exception
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |