|
||||||||||
| 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 text| Method Detail |
|---|
public boolean isEmpty()
isEmpty in interface ISelectionpublic void forward()
forward in interface ISelectionpublic void backward()
backward in interface ISelection
public void extend(int x,
int y)
extend in interface ISelectionx - the destination columny - the destination linepublic void clear()
clear in interface ISelectionpublic void delete()
delete in interface ISelection
public void accept(ILineVisitor visitor,
int y)
accept in interface ISelectionvisitor - the visitory - the line number
public void unmarshall(java.io.InputStream stream)
throws java.io.IOException
unmarshall in interface ISerializablestream - the stream to read from
java.io.IOException - an io exception occurs
public void marshall(java.io.OutputStream stream)
throws java.io.IOException
marshall in interface ISerializablestream - the stream to write to
java.io.IOException - an io exception occurspublic void reset()
reset in interface ISelectionpublic void register(ISelectionView view)
register in interface ISelectionview - the view to register
public void copy(java.io.OutputStream stream)
throws java.io.IOException
copy in interface ISelectionstream - the stream to write to
java.io.IOException - an io exception occurs
public void cut(java.io.OutputStream stream)
throws java.io.IOException
cut in interface ISelectionstream - the stream to write to
java.io.IOException - an io exception occurs
public void paste(java.io.InputStream stream)
throws java.io.IOException
paste in interface ISelectionstream - the stream to read from
java.io.IOException - an io exception occurs
public void read(java.io.InputStream stream)
throws java.io.IOException
read in interface ISelectionstream - the stream
java.io.IOException - an io exception occurs
public void write(java.io.OutputStream stream)
throws java.io.IOException
write in interface ISelectionstream - 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 | |||||||||