|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpalmed.edit.selection.Selection
public final class Selection
This class manages the text selection.
Constructor Summary | |
---|---|
Selection(IText text)
Create a selection. |
Method Summary | |
---|---|
void |
accept(ILineVisitor visitor,
int y)
Visit a line of text. |
void |
backward()
Extend selection one character backward. |
void |
clear()
Clear selection. |
void |
copy(java.io.OutputStream stream)
Copy the current selected text. |
void |
cut(java.io.OutputStream stream)
Cut the current selected text. |
void |
delete()
Delete selection. |
void |
extend(int x,
int y)
Extend selection up to the given point. |
void |
forward()
Extend selection one character forward. |
boolean |
isEmpty()
Test if the selection is empty. |
void |
marshall(java.io.OutputStream stream)
Write to an output stream. |
void |
paste(java.io.InputStream stream)
Paste the given text. |
void |
read(java.io.InputStream stream)
Replace the current selection with the text from the given stream. |
void |
register(ISelectionView view)
Register a view to receive insertion point notification changes. |
void |
reset()
Reset selection. |
void |
unmarshall(java.io.InputStream stream)
Read from an input stream. |
void |
write(java.io.OutputStream stream)
Write the current selected text to the given stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Selection(IText text)
text
- the textMethod Detail |
---|
public boolean isEmpty()
isEmpty
in interface ISelection
public void forward()
forward
in interface ISelection
public void backward()
backward
in interface ISelection
public void extend(int x, int y)
extend
in interface ISelection
x
- the destination columny
- the destination linepublic void clear()
clear
in interface ISelection
public void delete()
delete
in interface ISelection
public void accept(ILineVisitor visitor, int y)
accept
in interface ISelection
visitor
- the visitory
- the line numberpublic void unmarshall(java.io.InputStream stream) throws java.io.IOException
unmarshall
in interface ISerializable
stream
- the stream to read from
java.io.IOException
- an io exception occurspublic void marshall(java.io.OutputStream stream) throws java.io.IOException
marshall
in interface ISerializable
stream
- the stream to write to
java.io.IOException
- an io exception occurspublic void reset()
reset
in interface ISelection
public void register(ISelectionView view)
register
in interface ISelection
view
- the view to registerpublic void copy(java.io.OutputStream stream) throws java.io.IOException
copy
in interface ISelection
stream
- the stream to write to
java.io.IOException
- an io exception occurspublic void cut(java.io.OutputStream stream) throws java.io.IOException
cut
in interface ISelection
stream
- the stream to write to
java.io.IOException
- an io exception occurspublic void paste(java.io.InputStream stream) throws java.io.IOException
paste
in interface ISelection
stream
- the stream to read from
java.io.IOException
- an io exception occurspublic void read(java.io.InputStream stream) throws java.io.IOException
read
in interface ISelection
stream
- the stream
java.io.IOException
- an io exception occurspublic void write(java.io.OutputStream stream) throws java.io.IOException
write
in interface ISelection
stream
- the stream
java.io.IOException
- an io exception occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |