|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.utils.swing.CutCopyPasteAdapter
public class CutCopyPasteAdapter
CutCopyPasteAdapter adds CutCopyPaste interface methods to a text component.
| Field Summary | |
|---|---|
protected javax.swing.text.JTextComponent |
textComponent
The text component to make CutCopyPaste compatible. |
| Constructor Summary | |
|---|---|
CutCopyPasteAdapter(javax.swing.text.JTextComponent textComponent)
Add CutCopyPaste to a JTextComponent. |
|
| Method Summary | |
|---|---|
void |
clearSelection()
Clear selection. |
boolean |
clipboardHasPasteableData()
Check if clipboard has pasteable data. |
void |
copy()
Copy to clipboard. |
void |
cut()
Cut to clipboard. |
boolean |
isCopyEnabled()
Is copy enabled? |
boolean |
isCutEnabled()
Is cut enabled? |
boolean |
isPasteEnabled()
Is paste enabled? |
boolean |
isTextSelected()
Is anything selected which can be cut/copied? |
void |
paste()
Paste from clipboard. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.swing.text.JTextComponent textComponent
| Constructor Detail |
|---|
public CutCopyPasteAdapter(javax.swing.text.JTextComponent textComponent)
textComponent - A JTextComponent to which to attach
CutCopyPaste interface methods. | Method Detail |
|---|
public boolean clipboardHasPasteableData()
public void clearSelection()
public void cut()
public void copy()
public void paste()
public boolean isCutEnabled()
public boolean isCopyEnabled()
public boolean isPasteEnabled()
public boolean isTextSelected()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||