|
JAligner | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjaligner.ui.util.TextComponentUtil
Text component (e.g. JTextAreaor
JTextPane) editing helper class.
| Constructor Summary | |
TextComponentUtil()
|
|
| Method Summary | |
static void |
copy(javax.swing.text.JTextComponent textComponent)
Copies the selected text to the system clipboard. |
static void |
cut(javax.swing.text.JTextComponent textComponent)
Copies the selected text to the system clipboad and then deletes it from the text component. |
static void |
delete(javax.swing.text.JTextComponent textComponent)
Deletes the selected text in a text component. |
static boolean |
open(javax.swing.text.JTextComponent textComponent)
Opens a file and puts the contents of the file in a text component. |
static void |
paste(javax.swing.text.JTextComponent textComponent)
Copies the text contents of the system clipboard to the text component. |
static void |
print(javax.swing.text.JTextComponent textComponent)
Prints the contents of a text component. |
static boolean |
save(javax.swing.text.JTextComponent textComponent)
Saves the contents of a text component to a file. |
static boolean |
save(javax.swing.text.JTextComponent textComponent,
java.lang.String fileName)
Saves the contents of a text component to a file. |
static void |
selectAll(javax.swing.text.JTextComponent textComponent)
Selects all contents of a text component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextComponentUtil()
| Method Detail |
public static void cut(javax.swing.text.JTextComponent textComponent)
textComponent - public static void copy(javax.swing.text.JTextComponent textComponent)
textComponent - public static void paste(javax.swing.text.JTextComponent textComponent)
textComponent - public static void delete(javax.swing.text.JTextComponent textComponent)
textComponent - public static void selectAll(javax.swing.text.JTextComponent textComponent)
textComponent -
public static boolean open(javax.swing.text.JTextComponent textComponent)
throws TextComponentUtilException
textComponent -
TextComponentUtilException
public static boolean save(javax.swing.text.JTextComponent textComponent,
java.lang.String fileName)
throws TextComponentUtilException
textComponent - fileName -
TextComponentUtilException
public static boolean save(javax.swing.text.JTextComponent textComponent)
throws TextComponentUtilException
textComponent -
TextComponentUtilException
public static void print(javax.swing.text.JTextComponent textComponent)
throws TextComponentUtilException
textComponent -
TextComponentUtilException
|
JAligner | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Ahmed Moustafa (ahmed@users.sf.net) | |
| The source code of JAligner is licensed under The GNU General Public License (GPL) |