public class TextFields
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TextFields.ArrowPane
A JPanel for overlaying the text and labels windows.
|
class |
TextFields.Field
One Field for each editable segment of the text.
|
class |
TextFields.Span
Simple class for values from Field.span().
|
Modifier and Type | Field and Description |
---|---|
static java.awt.Color |
HILIT_INVISIBLE
color for transparent highlights
|
static java.awt.Color |
HILIT_UNWRITABLE
Default color for unwritable fields
|
static java.awt.Color |
HILIT_YELLOW
Default color for writable fields
|
Constructor and Description |
---|
TextFields(javax.swing.JEditorPane txt) |
Modifier and Type | Method and Description |
---|---|
static java.awt.Shape |
createArrowShape(java.awt.Point fromPt,
java.awt.Point toPt,
double width) |
TextFields.Field |
getField(java.lang.String name) |
TextFields.Field[] |
getFields() |
static javax.swing.JScrollPane |
getScrollPane(javax.swing.JComponent comp) |
void |
showArrows(boolean show) |
public static final java.awt.Color HILIT_YELLOW
public static final java.awt.Color HILIT_UNWRITABLE
public static final java.awt.Color HILIT_INVISIBLE
public TextFields.Field getField(java.lang.String name)
name
- what field to getpublic TextFields.Field[] getFields()
public void showArrows(boolean show)
public static javax.swing.JScrollPane getScrollPane(javax.swing.JComponent comp)
public static java.awt.Shape createArrowShape(java.awt.Point fromPt, java.awt.Point toPt, double width)