|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.wordpress.tipsforjava.swing.ProtectedTextComponent
public class ProtectedTextComponent extends Object
| Field Summary | |
|---|---|
private JTextComponent |
component
|
private ProtectedDocument |
document
|
private ProtectedHighlighter |
highlighter
|
| Constructor Summary | |
ProtectedTextComponent(JTextComponent component)
Specify the component to be protected. |
|
ProtectedTextComponent(JTextComponent component, Color color)
Specify the component to be protected. |
|
| Method Summary | |
|---|---|
void
|
protectLine(int line)
Protect an entire line |
void
|
protectLines(int firstLine, int lastLine)
Protect a range of lines |
void
|
protectText(int start, int end)
Protect a range of characters |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private JTextComponent component
private ProtectedDocument document
private ProtectedHighlighter highlighter
| Constructor Detail |
|---|
public ProtectedTextComponent(JTextComponent component)
public ProtectedTextComponent(JTextComponent component, Color color)
| Method Detail |
|---|
public void protectLine(int line)
line - the line to protect
public void protectLines(int firstLine, int lastLine)
firstLine - first line in the rangelastLine - last line in the range
public void protectText(int start, int end)
start - starting offsetend - ending offset
Groovy Documentation