|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
edu.neu.ccs.gui.TextFieldView
A for input of
GeneralView objects or elements
of the data state of a StringableStringable object.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JTextField |
JTextField.AccessibleJTextField |
| Nested classes inherited from class javax.swing.text.JTextComponent |
JTextComponent.AccessibleJTextComponent, JTextComponent.KeyBinding |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
static String |
AUTO_SELECT
Bound property name for the auto select property. |
protected boolean |
autoSelect
Autoselect policy for this view. |
static boolean |
DEFAULT_AUTOSELECT_POLICY
Default autoselect policy for a text field view. |
static int |
DEFAULT_WIDTH
The default preferred width used in constructors if there is no other data with which to set the width. |
protected GeneralViewSupport |
delegate
The GeneralViewSupport object. |
static int |
EXTRA_WIDTH
Extra width for setting the preferred width. |
static String |
PREFERRED_WIDTH
Bound property name for the set preferred width property. |
protected int |
preferredWidth
The current preferred width if one is enabled or -1 if preferred width is disabled. |
| Fields inherited from class javax.swing.JTextField |
notifyAction |
| Fields inherited from class javax.swing.text.JTextComponent |
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface edu.neu.ccs.gui.TypedView |
DATA_TYPE |
| Fields inherited from interface edu.neu.ccs.gui.Displayable |
DEFAULT_VIEW_STATE, VIEW_STATE |
| Fields inherited from interface edu.neu.ccs.util.JPTConstants |
ABOVE, ALIGNMENT, BELOW, BOTTOM_LEFT, BOTTOM_RIGHT, DEFAULT, FONT, INPUT_PROPERTIES, MANDATORY, OPTIONAL, ORIENTATION, TOP_LEFT, TOP_RIGHT, VALUE |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
TextFieldView()
Constructs an empty text field view. |
|
TextFieldView(Document document)
Constructs a text field view with the given document as its data model. |
|
TextFieldView(Document document,
int width)
Constructs a text field view with the given document as its data model and whose preferred width is the given width. |
|
TextFieldView(Document document,
String errorPrompt,
String dialogTitle)
Constructs a text field view with the given document as its data model for which the provided error prompt and dialog title will be used by the error recovery strategy. |
|
TextFieldView(Document document,
String errorPrompt,
String dialogTitle,
int width)
Constructs a text field view with the given document as its data model for which the provided error prompt and dialog title will be used by the error recovery strategy and whose preferred width is the given width. |
|
TextFieldView(Document document,
String errorPrompt,
String dialogTitle,
String suggestion)
Constructs a text field view with the given document as its data model for which the provided error prompt, dialog title, and suggestion will be used by the error recovery strategy. |
|
TextFieldView(Document document,
String errorPrompt,
String dialogTitle,
String suggestion,
int width)
Constructs a text field view with the given document as its data model for which the provided error prompt, dialog title, and suggestion will be used by the error recovery strategy and whose preferred width is the given width. |
|
TextFieldView(Font font)
Constructs an empty text field view using the given font. |
|
TextFieldView(Font font,
int width)
Constructs an empty text field view using the given font whose preferred width is the given width. |
|
TextFieldView(int width)
Constructs an empty text field view whose preferred width is the given width. |
|
TextFieldView(String text)
Constructs a text field view with the given default text. |
|
TextFieldView(String text,
Font font)
Constructs an empty text field view using the given font with the given default text. |
|
TextFieldView(String text,
Font font,
int width)
Constructs an empty text field view using the given font with the given default text whose preferred width is maximum of the given width and the width of the default text. |
|
TextFieldView(String text,
int width)
Constructs a text field view with the given default text whose preferred width is maximum of the given width and the width of the default text. |
|
TextFieldView(String text,
String errorPrompt,
String dialogTitle)
Constructs a text field view with the given default text, for which the provided error prompt and dialog title will be used by the error recovery strategy. |
|
TextFieldView(String text,
String errorPrompt,
String dialogTitle,
Font font)
Constructs an empty text field view using the given font with the given default text, for which the provided error prompt and dialog title will be used by the error recovery strategy. |
|
TextFieldView(String text,
String errorPrompt,
String dialogTitle,
Font font,
int width)
Constructs an empty text field view using the given font with the given default text, for which the provided error prompt and dialog title will be used by the error recovery strategy and whose preferred width is maximum of the given width and the width of the default text. |
|
TextFieldView(String text,
String errorPrompt,
String dialogTitle,
int width)
Constructs a text field view with the given default text, for which the provided error prompt and dialog title will be used by the error recovery strategy and whose preferred width is maximum of the given width and the width of the default text. |
|
TextFieldView(String text,
String errorPrompt,
String dialogTitle,
String suggestion)
Constructs a text field view with the given default text, for which the provided error prompt, dialog title, and suggestion will be used by the error recovery strategy. |
|
TextFieldView(String text,
String errorPrompt,
String dialogTitle,
String suggestion,
Font font)
Constructs an empty text field view using the given font with the given default text, for which the provided error prompt, dialog title, and suggestion will be used by the error recovery strategy. |
|
TextFieldView(String text,
String errorPrompt,
String dialogTitle,
String suggestion,
Font font,
int width)
Constructs an empty text field view using the given font with the given default text, for which the provided error prompt, dialog title, and suggestion will be used by the error recovery strategy and whose preferred width is maximum of the given width and the width of the default text. |
|
TextFieldView(String text,
String errorPrompt,
String dialogTitle,
String suggestion,
int width)
Constructs a text field view with the given default text, for which the provided error prompt, dialog title, and suggestion will be used by the error recovery strategy and whose preferred width is maximum of the given width and the width of the default text. |
|
| Method Summary | |
void |
addMalformedDataListener(MalformedDataListener l)
Registers the given MalformedDataListener
to receive MalformedDataEvents
when the view state data is found to be malformed and
when the view state data is returned to a well-formed
value. |
BigDecimal |
demandBigDecimal()
Returns a BigDecimal extracted from the field
using the mandatory model. |
BigDecimal |
demandBigDecimal(StringableFilter f)
Returns a BigDecimal extracted from the field
using the mandatory model, with the given filter. |
BigInteger |
demandBigInteger()
Returns a BigInteger extracted from the field
using the mandatory model. |
BigInteger |
demandBigInteger(StringableFilter f)
Returns a BigInteger extracted from the field
using the mandatory model, with the given filter. |
boolean |
demandBoolean()
Returns a boolean extracted from the field
using the mandatory model. |
boolean |
demandBoolean(StringableFilter f)
Returns a boolean extracted from the field
using the mandatory model, with the given filter. |
byte |
demandByte()
Returns a byte extracted from the field
using the mandatory model. |
byte |
demandByte(StringableFilter f)
Returns a byte extracted from the field
using the mandatory model with the given filter. |
byte |
demandByteAsHex()
Returns a byte extracted from the field
as hexidecimal data
using the mandatory model. |
byte |
demandByteAsHex(StringableFilter f)
Returns a byte extracted from the field
as hexidecimal data
using the mandatory model with the given filter. |
char |
demandChar()
Returns a char extracted from the field
using the mandatory model. |
char |
demandChar(StringableFilter f)
Returns a char extracted from the field
using the mandatory model, with the given filter. |
Color |
demandColor()
Returns a Color extracted from the field
using the mandatory model. |
Color |
demandColor(StringableFilter f)
Returns a Color extracted from the field
using the mandatory model, with the given filter. |
double |
demandDouble()
Returns a double extracted from the field
using the mandatory model. |
double |
demandDouble(StringableFilter f)
Returns a double extracted from the field
using the mandatory model with the given filter. |
double |
demandDoubleAsHex()
Returns a double extracted from the field
as hexidecimal data
using the mandatory model. |
double |
demandDoubleAsHex(StringableFilter f)
Returns a double extracted from the field
as hexidecimal data
using the mandatory model with the given filter. |
float |
demandFloat()
Returns a float extracted from the field
using the mandatory model. |
float |
demandFloat(StringableFilter f)
Returns a float extracted from the field
using the mandatory model with the given filter. |
float |
demandFloatAsHex()
Returns a float extracted from the field
as hexidecimal data
using the mandatory model. |
float |
demandFloatAsHex(StringableFilter f)
Returns a float extracted from the field
as hexidecimal data
using the mandatory model with the given filter. |
int |
demandInt()
Returns an int extracted from the field
using the mandatory model. |
int |
demandInt(StringableFilter f)
Returns an int extracted from the field
using the mandatory model with the given filter. |
int |
demandIntAsHex()
Returns an int extracted from the field
as hexidecimal data
using the mandatory model. |
int |
demandIntAsHex(StringableFilter f)
Returns an int extracted from the field
as hexidecimal data
using the mandatory model with the given filter. |
long |
demandLong()
Returns a long extracted from the field
using the mandatory model. |
long |
demandLong(StringableFilter f)
Returns a long extracted from the field
using the mandatory model with the given filter. |
long |
demandLongAsHex()
Returns a long extracted from the field
as hexidecimal data
using the mandatory model. |
long |
demandLongAsHex(StringableFilter f)
Returns a long extracted from the field
as hexidecimal data
using the mandatory model with the given filter. |
Stringable |
demandObject()
Returns a Stringable object based on the view state
of the view using the mandatory model. |
Stringable |
demandObject(Class dataType,
StringableFilter filter)
Returns a Stringable object based on the view state
of the view, the temporary data type and filter, and the mandatory
model. |
Stringable |
demandObject(StringableFilter filter)
Returns a Stringable object based on the view state
of the view, the temporary filter, and the mandatory model. |
short |
demandShort()
Returns a short extracted from the field
using the mandatory model. |
short |
demandShort(StringableFilter f)
Returns a short extracted from the field
using the mandatory model with the given filter. |
short |
demandShortAsHex()
Returns a short extracted from the field
as hexidecimal data
using the mandatory model. |
short |
demandShortAsHex(StringableFilter f)
Returns a short extracted from the field
as hexidecimal data
using the mandatory model with the given filter. |
String |
demandString()
Returns a String extracted from the field
using the mandatory model. |
String |
demandString(StringableFilter f)
Returns a String extracted from the field
using the mandatory model, with the given filter. |
boolean |
getAutoSelect()
Returns whether or not the contents of this field will be selected when it gains focus. |
Class |
getDataType()
Returns the current class of objects returned when a model object is demanded or requested. |
static Font |
getDefaultFont()
Returns the default font for a JTextField. |
String |
getDefaultViewState()
Returns a String representation of the default view
state for this object. |
StringableFilter |
getFilter()
Returns the current filter used by this view. |
InputProperties |
getInputProperties()
Returns the input properties for this view. |
Dimension |
getPreferredSize()
Returns the preferred size of this view. |
int |
getPreferredWidth()
Returns the preferred width setting of this view. |
static int |
getSampleWidth(Font font,
String sample)
Returns the width of a JLabel constucted
using the given font and sample string
with the value EXTRA_WIDTH
added to allow for extra white space. |
static int |
getSampleWidth(int N,
char c)
Returns the sample width of a JLabel constucted
using a sample string consisting of N instances of the given
character c; the value EXTRA_WIDTH is added to allow for
extra white space. |
static int |
getSampleWidth(String sample)
Returns the width of a JLabel constucted
using the given sample string
with the value EXTRA_WIDTH
added to allow for extra white space. |
String |
getViewState()
Returns a String representation of the view state for
this object. |
static int |
getWidthEstimate(Font font,
String[] strings)
Returns the maximum sample width of the strings in the given strings array relative to the given font. |
static int |
getWidthEstimate(String[] strings)
Returns the maximum sample width of the strings in the given strings array. |
private void |
initialize(String errorPrompt,
String dialogTitle,
String suggestion,
Font font,
int width)
Performs the tasks common for constructors of this class. |
protected void |
installFocusActions()
Installs a focus listener implementing the autoselect functionality for this text field. |
GeneralView |
makeCopy()
Returns a new text field view with the same font, preferred width, data type, view state, default view state, initial input properties, stringable filter, and auto-select setting as this text field view. |
void |
refreshComponent()
Refreshes the component by repacking the parent window. |
void |
removeMalformedDataListener(MalformedDataListener l)
De-registers the given MalformedDataListener
from receiving MalformedDataEvents
when the view state data is found to be malformed and
when the view state data is returned to a well-formed
value. |
BigDecimal |
requestBigDecimal()
Returns a BigDecimal extracted from the field
using the optional model. |
BigDecimal |
requestBigDecimal(StringableFilter f)
Returns a BigDecimal extracted from the field
using the optional model, with the given filter. |
BigInteger |
requestBigInteger()
Returns a BigInteger extracted from the field
using the optional model. |
BigInteger |
requestBigInteger(StringableFilter f)
Returns a BigInteger extracted from the field
using the optional model, with the given filter. |
boolean |
requestBoolean()
Returns a boolean extracted from the field
using the optional model. |
boolean |
requestBoolean(StringableFilter f)
Returns a boolean extracted from the field
using the optional model, with the given filter. |
byte |
requestByte()
Returns a byte extracted from the field
using the optional model. |
byte |
requestByte(StringableFilter f)
Returns a byte extracted from the field
using the optional model with the given filter. |
byte |
requestByteAsHex()
Returns a byte extracted from the field
as hexidecimal data
using the optional model. |
byte |
requestByteAsHex(StringableFilter f)
Returns a byte extracted from the field
as hexidecimal data
using the optional model with the given filter. |
char |
requestChar()
Returns a char extracted from the field
using the optional model. |
char |
requestChar(StringableFilter f)
Returns a char extracted from the field
using the optional model, with the given filter. |
Color |
requestColor()
Returns a Color extracted from the field
using the optional model. |
Color |
requestColor(StringableFilter f)
Returns a Color extracted from the field
using the optional model, with the given filter. |
double |
requestDouble()
Returns a double extracted from the field
using the optional model. |
double |
requestDouble(StringableFilter f)
Returns a double extracted from the field
using the optional model with the given filter. |
double |
requestDoubleAsHex()
Returns a double extracted from the field
as hexidecimal data
using the optional model. |
double |
requestDoubleAsHex(StringableFilter f)
Returns a double extracted from the field
as hexidecimal data
using the optional model with the given filter. |
float |
requestFloat()
Returns a float extracted from the field
using the optional model. |
float |
requestFloat(StringableFilter f)
Returns a float extracted from the field
using the optional model with the given filter. |
float |
requestFloatAsHex()
Returns a float extracted from the field
as hexidecimal data
using the optional model. |
float |
requestFloatAsHex(StringableFilter f)
Returns a float extracted from the field
as hexidecimal data
using the optional model with the given filter. |
int |
requestInt()
Returns an int extracted from the field
using the optional model. |
int |
requestInt(StringableFilter f)
Returns an int extracted from the field
using the optional model with the given filter. |
int |
requestIntAsHex()
Returns an int extracted from the field
as hexidecimal data
using the optional model. |
int |
requestIntAsHex(StringableFilter f)
Returns an int extracted from the field
as hexidecimal data
using the optional model with the given filter. |
long |
requestLong()
Returns a long extracted from the field
using the optional model. |
long |
requestLong(StringableFilter f)
Returns a long extracted from the field
using the optional model with the given filter. |
long |
requestLongAsHex()
Returns a long extracted from the field
as hexidecimal data
using the optional model. |
long |
requestLongAsHex(StringableFilter f)
Returns a long extracted from the field
as hexidecimal data
using the optional model with the given filter. |
Stringable |
requestObject()
Returns a Stringable object based on the view state
of the view using the optional model; throws an exception if the
input operation is cancelled by the user. |
Stringable |
requestObject(Class dataType,
StringableFilter filter)
Returns a Stringable object based on the view state
of the view, the temporary data type and filter, and the optional
model. |
Stringable |
requestObject(StringableFilter filter)
Returns a Stringable object based on the view state
of the view, the temporary filter, and the optional model. |
short |
requestShort()
Returns a short extracted from the field
using the optional model. |
short |
requestShort(StringableFilter f)
Returns a short extracted from the field
using the optional model with the given filter. |
short |
requestShortAsHex()
Returns a short extracted from the field
as hexidecimal data
using the optional model. |
short |
requestShortAsHex(StringableFilter f)
Returns a short extracted from the field
as hexidecimal data
using the optional model with the given filter. |
String |
requestString()
Returns a String extracted from the field
using the optional model. |
String |
requestString(StringableFilter f)
Returns a String extracted from the field
using the optional model, with the given filter. |
void |
reset()
Resets the view state of this object to the default view state for this object. |
void |
setAutoSelect(boolean b)
Sets whether or not the contents of this field will be selected when it gains focus. |
void |
setDataType(Class dataType)
Sets the current class of objects returned when a model object is demanded or requested. |
void |
setDefaultViewState(String data)
Sets the default view state for this object to the data state represented by the given String data. |
void |
setErrorPromptTitleSuggestion(String errorPrompt,
String dialogTitle,
String suggestion)
Sets the three input property Strings for an error
dialog in a single method. |
void |
setFilter(StringableFilter filter)
Sets the current filter used by the view to the given StringableFilter. |
void |
setFont(Font font)
Sets the font for this component. |
void |
setInputProperties(InputProperties properties)
Sets the input properties for this view to the provided input properties. |
void |
setPreferredWidth(int width)
Sets the preferred width of the view to the given width if the given width is positive. |
void |
setPreferredWidth(int minWidth,
String sample)
Sets the preferred width of the view using the given minimum width and sample string. |
void |
setViewState(String data)
Sets the view state for this object to the data state represented by the given String data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.neu.ccs.gui.GeneralView |
addActionListener, removeActionListener |
| Methods inherited from interface edu.neu.ccs.gui.Displayable |
setEnabled |
| Field Detail |
public static final String PREFERRED_WIDTH
public static final String AUTO_SELECT
public static final int DEFAULT_WIDTH
public static final int EXTRA_WIDTH
Extra width for setting the preferred width.
If the preferred width is set with a sample string, this value is added to the width of the sample string to allow some extra space.
protected int preferredWidth
public static final boolean DEFAULT_AUTOSELECT_POLICY
protected boolean autoSelect
protected GeneralViewSupport delegate
| Constructor Detail |
public TextFieldView()
Other constructors:
- TextFieldView(int)
- TextFieldView(String)
- TextFieldView(String, int)
- TextFieldView(String, String, String)
- TextFieldView(String, String, String, int)
- TextFieldView(String, String, String, String)
- TextFieldView(String, String, String, String, int)
- TextFieldView(Font)
- TextFieldView(Font, int)
- TextFieldView(String, Font)
- TextFieldView(String, Font, int)
- TextFieldView(String, String, String, Font)
- TextFieldView(String, String, String, Font, int)
- TextFieldView(String, String, String, String, Font)
- TextFieldView(String, String, String, String, Font, int)
- TextFieldView(Document)
- TextFieldView(Document, int)
- TextFieldView(Document, String, String)
- TextFieldView(Document, String, String, int)
- TextFieldView(Document, String, String, String)
- TextFieldView(Document, String, String, String, int)
public TextFieldView(int width)
width - the minimum width of the text fieldTextFieldView()public TextFieldView(String text)
text - the default text for the text fieldTextFieldView()
public TextFieldView(String text,
int width)
text - the default text for the text fieldwidth - the minimum width of the text fieldTextFieldView()
public TextFieldView(String text,
String errorPrompt,
String dialogTitle)
text - the default text for the text fielderrorPrompt - the prompt to use in error recoverydialogTitle - the dialog title to use in error recoveryTextFieldView()
public TextFieldView(String text,
String errorPrompt,
String dialogTitle,
int width)
text - the default text for the text fielderrorPrompt - the prompt to use in error recoverydialogTitle - the dialog title to use in error recoverywidth - the minimum width of the text fieldTextFieldView()
public TextFieldView(String text,
String errorPrompt,
String dialogTitle,
String suggestion)
text - the default text for the text fielderrorPrompt - the prompt to use in error recoverydialogTitle - the dialog title to use in error recoverysuggestion - the optional suggestion to use in error recoveryTextFieldView()
public TextFieldView(String text,
String errorPrompt,
String dialogTitle,
String suggestion,
int width)
text - the default text for the text fielderrorPrompt - the prompt to use in error recoverydialogTitle - the dialog title to use in error recoverysuggestion - the optional suggestion to use in error recoverywidth - the minimum width of the text fieldTextFieldView()public TextFieldView(Font font)
font - the font for the text fieldTextFieldView()
public TextFieldView(Font font,
int width)
font - the font for the text fieldwidth - the minimum width of the text fieldTextFieldView()
public TextFieldView(String text,
Font font)
text - the default text for the text fieldfont - the font for the text fieldTextFieldView()
public TextFieldView(String text,
Font font,
int width)
text - the default text for the text fieldfont - the font for the text fieldwidth - the minimum width of the text fieldTextFieldView()
public TextFieldView(String text,
String errorPrompt,
String dialogTitle,
Font font)
text - the default text for the text fielderrorPrompt - the prompt to use in error recoverydialogTitle - the dialog title to use in error recoveryfont - the font for the text fieldTextFieldView()
public TextFieldView(String text,
String errorPrompt,
String dialogTitle,
Font font,
int width)
text - the default text for the text fielderrorPrompt - the prompt to use in error recoverydialogTitle - the dialog title to use in error recoveryfont - the font for the text fieldwidth - the minimum width of the text fieldTextFieldView()
public TextFieldView(String text,
String errorPrompt,
String dialogTitle,
String suggestion,
Font font)
text - the default text for the text fielderrorPrompt - the prompt to use in error recoverydialogTitle - the dialog title to use in error recoverysuggestion - the optional suggestion to use in error recoveryfont - the font for the text fieldTextFieldView()
public TextFieldView(String text,
String errorPrompt,
String dialogTitle,
String suggestion,
Font font,
int width)
text - the default text for the text fielderrorPrompt - the prompt to use in error recoverydialogTitle - the dialog title to use in error recoverysuggestion - the optional suggestion to use in error recoveryfont - the font for the text fieldwidth - the minimum width of the text fieldTextFieldView()public TextFieldView(Document document)
document - the document to use as the data modelTextFieldView()
public TextFieldView(Document document,
int width)
document - the document to use as the data modelwidth - the minimum width of the text fieldTextFieldView()
public TextFieldView(Document document,
String errorPrompt,
String dialogTitle)
document - the document to use as the data modelerrorPrompt - the prompt to use in error recoverydialogTitle - the dialog title to use in error recoveryTextFieldView()
public TextFieldView(Document document,
String errorPrompt,
String dialogTitle,
int width)
document - the document to use as the data modelerrorPrompt - the prompt to use in error recoverydialogTitle - the dialog title to use in error recoverywidth - the minimum width of the text fieldTextFieldView()
public TextFieldView(Document document,
String errorPrompt,
String dialogTitle,
String suggestion)
document - the document to use as the data modelerrorPrompt - the prompt to use in error recoverydialogTitle - the dialog title to use in error recoverysuggestion - the optional suggestion to use in error recoveryTextFieldView()
public TextFieldView(Document document,
String errorPrompt,
String dialogTitle,
String suggestion,
int width)
document - the document to use as the data modelerrorPrompt - the prompt to use in error recoverydialogTitle - the dialog title to use in error recoverysuggestion - the optional suggestion to use in error recoverywidth - the minimum width of the text fieldTextFieldView()| Method Detail |
private void initialize(String errorPrompt,
String dialogTitle,
String suggestion,
Font font,
int width)
errorPrompt - the prompt to use in error recoverydialogTitle - the dialog title to use in error recoverysuggestion - the optional suggestion to use in error recoveryfont - the font for the text fieldwidth - the minimum width of the text fieldpublic Dimension getPreferredSize()
Returns the preferred size of this view.
This method proceeds as follows.
The preferred size is calculated by the super class method. Then, if the preferred width set in this class is positive, it is used to replace the width field of the dimension returned by the super class method. Then, the revised preferred size is returned.
public int getPreferredWidth()
Returns the preferred width setting of this view.
The value returned is positive or -1.
If the value is -1 then it is not used to compute the preferred size.
public void setPreferredWidth(int width)
Sets the preferred width of the view to the given width if the given width is positive.
If the given width is equal to zero, then the preferred width is set to DEFAULT_WIDTH.
If the given width is less than zero, then the preferred width is set to -1 and the preferred size of the view is computed entirely from the data of the super class.
Refreshes the component in its parent view.
Fires property change PREFERRED_WIDTH.
width - the desired preferred width
public void setPreferredWidth(int minWidth,
String sample)
Sets the preferred width of the view using the given minimum width and sample string.
This method proceeds as follows.
If the sample string is null or of length zero,
then the preferred width is set via the call:
setPreferredWidth(minWidth).
Otherwise, if minWidth is zero, it is set to DEFAULT_WIDTH.
Then, the method getSampleWidth is called using
the current font of the view and the sample string. The
preferred width is then set to be the maximum of minWidth and
the sample width.
Refreshes the component in its parent view.
Fires property change PREFERRED_WIDTH.
minWidth - the minimum preferred widthsample - the sample string used to calculate the width
public static int getSampleWidth(int N,
char c)
Returns the sample width of a JLabel constucted
using a sample string consisting of N instances of the given
character c; the value EXTRA_WIDTH is added to allow for
extra white space.
Returns 0 if N is less than or equal to zero
N - the number of zero characters to use in the samplepublic static int getSampleWidth(String sample)
Returns the width of a JLabel constucted
using the given sample string
with the value EXTRA_WIDTH
added to allow for extra white space.
Returns 0 if the sample string is null
or is of length zero.
sample - the sample string used to calculate the width
public static int getSampleWidth(Font font,
String sample)
Returns the width of a JLabel constucted
using the given font and sample string
with the value EXTRA_WIDTH
added to allow for extra white space.
Returns 0 if the sample string is null
or is of length zero.
Ignores the font if it is null.
font - the font to use for the sample stringsample - the sample string used to calculate the widthpublic static int getWidthEstimate(String[] strings)
Returns the maximum sample width of the strings in the given strings array.
Returns 0 if strings is null, has no objects, or
only has objects that are null or of length 0.
strings - the array of strings to measure for sample width
public static int getWidthEstimate(Font font,
String[] strings)
Returns the maximum sample width of the strings in the given strings array relative to the given font.
Returns 0 if strings is null, has no objects, or
only has objects that are null or of length 0.
Ignores the font if it is null.
font - the font to use for the sample stringsstrings - the array of strings to measure for sample widthpublic void setFont(Font font)
Sets the font for this component.
If the given font is null then it is set to
getDefaultFont().
Calls the super setFont method and
then refreshes the component in its parent view.
Fires property change FONT.
font - the font to set for this viewpublic static Font getDefaultFont()
public void refreshComponent()
public void setAutoSelect(boolean b)
Sets whether or not the contents of this field will be selected when it gains focus.
Fires property change AUTO_SELECT.
b - whether or not the contents of this field
will be selected upon a gain of focusgetAutoSelect()public boolean getAutoSelect()
setAutoSelect(boolean)public GeneralView makeCopy()
Returns a new text field view with the same font, preferred width, data type, view state, default view state, initial input properties, stringable filter, and auto-select setting as this text field view.
The new text field view has its own document model.
makeCopy in interface GeneralViewpublic void setDataType(Class dataType)
GeneralView
setDataType in interface GeneralViewdataType - the new class of objects for model objectspublic Class getDataType()
TypedView
getDataType in interface TypedViewpublic void setFilter(StringableFilter filter)
GeneralView
setFilter in interface GeneralViewfilter - the filter to be usedpublic StringableFilter getFilter()
GeneralView
getFilter in interface GeneralViewpublic Stringable demandObject()
TypedViewStringable object based on the view state
of the view using the mandatory model.
demandObject in interface TypedViewStringable model objectTypedView.requestObject()
public Stringable requestObject()
throws CancelledException
TypedViewStringable object based on the view state
of the view using the optional model; throws an exception if the
input operation is cancelled by the user.
requestObject in interface TypedViewStringable model object
CancelledExceptionTypedView.demandObject()public Stringable demandObject(StringableFilter filter)
GeneralViewStringable object based on the view state
of the view, the temporary filter, and the mandatory model.
demandObject in interface GeneralViewfilter - the temporary filter to use
Stringable model objectTypedView.demandObject(),
GeneralView.requestObject(Class, StringableFilter)
public Stringable requestObject(StringableFilter filter)
throws CancelledException
GeneralViewStringable object based on the view state
of the view, the temporary filter, and the optional model.
requestObject in interface GeneralViewfilter - the temporary filter to use
Stringable model object
CancelledExceptionTypedView.requestObject(),
GeneralView.demandObject(Class, StringableFilter)
public Stringable demandObject(Class dataType,
StringableFilter filter)
GeneralViewStringable object based on the view state
of the view, the temporary data type and filter, and the mandatory
model.
demandObject in interface GeneralViewStringable model objectTypedView.demandObject(),
GeneralView.requestObject(Class, StringableFilter)
public Stringable requestObject(Class dataType,
StringableFilter filter)
throws CancelledException
GeneralViewStringable object based on the view state
of the view, the temporary data type and filter, and the optional
model.
requestObject in interface GeneralViewStringable model object
CancelledExceptionTypedView.requestObject(),
GeneralView.demandObject(Class, StringableFilter)public void setInputProperties(InputProperties properties)
TypedViewSets the input properties for this view to the provided input properties.
If the given input properties list is null, the
property list for this view is set to the base property list
containing default property values.
setInputProperties in interface TypedViewproperties - the new input properties for the viewTypedView.getInputProperties()public InputProperties getInputProperties()
TypedView
getInputProperties in interface TypedViewTypedView.setInputProperties(InputProperties)
public void setErrorPromptTitleSuggestion(String errorPrompt,
String dialogTitle,
String suggestion)
GeneralViewStrings for an error
dialog in a single method.
setErrorPromptTitleSuggestion in interface GeneralViewerrorPrompt - the error prompt of an error dialogdialogTitle - the dialog title of an error dialogsuggestion - the suggestion for an error dialogpublic void setViewState(String data)
DisplayableString data.
setViewState in interface Displayabledata - the new view state for this objectDisplayable.getViewState()public String getViewState()
DisplayableString representation of the view state for
this object.
getViewState in interface DisplayableStringDisplayable.setViewState(String)public void setDefaultViewState(String data)
DisplayableString data.
setDefaultViewState in interface Displayabledata - the new default data state for this objectDisplayable.getDefaultViewState(),
Displayable.reset()public String getDefaultViewState()
DisplayableString representation of the default view
state for this object.
getDefaultViewState in interface DisplayableStringDisplayable.setDefaultViewState(String),
Displayable.reset()public void reset()
DisplayableResets the view state of this object to the default view state for this object.
Equivalent to: setViewState(getDefaultViewState()).
reset in interface DisplayableDisplayable.setViewState(String),
Displayable.getDefaultViewState()public void addMalformedDataListener(MalformedDataListener l)
FragileMalformedDataListener
to receive MalformedDataEvents
when the view state data is found to be malformed and
when the view state data is returned to a well-formed
value.
addMalformedDataListener in interface Fragilel - the listener to registerFragile.removeMalformedDataListener(MalformedDataListener)public void removeMalformedDataListener(MalformedDataListener l)
FragileMalformedDataListener
from receiving MalformedDataEvents
when the view state data is found to be malformed and
when the view state data is returned to a well-formed
value.
removeMalformedDataListener in interface Fragilel - the listener to de-registerFragile.addMalformedDataListener(MalformedDataListener)public byte demandByte()
byte extracted from the field
using the mandatory model.
demandByte(StringableFilter),
demandByteAsHex(),
demandByteAsHex(StringableFilter),
requestByte(),
requestByte(StringableFilter),
requestByteAsHex(),
requestByteAsHex(StringableFilter)public byte demandByte(StringableFilter f)
byte extracted from the field
using the mandatory model with the given filter.
f - the filter to use for the input operationdemandByte(),
demandByteAsHex(),
demandByteAsHex(StringableFilter),
requestByte(),
requestByte(StringableFilter),
requestByteAsHex(),
requestByteAsHex(StringableFilter)public byte demandByteAsHex()
byte extracted from the field
as hexidecimal data
using the mandatory model.
demandByte(),
demandByte(StringableFilter),
demandByteAsHex(StringableFilter),
requestByte(),
requestByte(StringableFilter),
requestByteAsHex(),
requestByteAsHex(StringableFilter)public byte demandByteAsHex(StringableFilter f)
byte extracted from the field
as hexidecimal data
using the mandatory model with the given filter.
f - the filter to use for the input operationdemandByte(),
demandByte(StringableFilter),
demandByteAsHex(),
requestByte(),
requestByte(StringableFilter),
requestByteAsHex(),
requestByteAsHex(StringableFilter)
public byte requestByte()
throws CancelledException
byte extracted from the field
using the optional model.
CancelledException - if the user cancelled the input operationdemandByte(),
demandByte(StringableFilter),
demandByteAsHex(),
demandByteAsHex(StringableFilter),
requestByte(StringableFilter),
requestByteAsHex(),
requestByteAsHex(StringableFilter)
public byte requestByte(StringableFilter f)
throws CancelledException
byte extracted from the field
using the optional model with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationdemandByte(),
demandByte(StringableFilter),
demandByteAsHex(),
demandByteAsHex(StringableFilter),
requestByte(),
requestByteAsHex(),
requestByteAsHex(StringableFilter)
public byte requestByteAsHex()
throws CancelledException
byte extracted from the field
as hexidecimal data
using the optional model.
CancelledException - if the user cancelled the input operationdemandByte(),
demandByte(StringableFilter),
demandByteAsHex(),
demandByteAsHex(StringableFilter),
requestByte(),
requestByte(StringableFilter),
requestByteAsHex(StringableFilter)
public byte requestByteAsHex(StringableFilter f)
throws CancelledException
byte extracted from the field
as hexidecimal data
using the optional model with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationdemandByte(),
demandByte(StringableFilter),
demandByteAsHex(),
demandByteAsHex(StringableFilter),
requestByte(),
requestByte(StringableFilter),
requestByteAsHex()public short demandShort()
short extracted from the field
using the mandatory model.
demandShort(StringableFilter),
demandShortAsHex(),
demandShortAsHex(StringableFilter),
requestShort(),
requestShort(StringableFilter),
requestShortAsHex(),
requestShortAsHex(StringableFilter)public short demandShort(StringableFilter f)
short extracted from the field
using the mandatory model with the given filter.
f - the filter to use for the input operationdemandShort(),
demandShortAsHex(),
demandShortAsHex(StringableFilter),
requestShort(),
requestShort(StringableFilter),
requestShortAsHex(),
requestShortAsHex(StringableFilter)public short demandShortAsHex()
short extracted from the field
as hexidecimal data
using the mandatory model.
demandShort(),
demandShort(StringableFilter),
demandShortAsHex(StringableFilter),
requestShort(),
requestShort(StringableFilter),
requestShortAsHex(),
requestShortAsHex(StringableFilter)public short demandShortAsHex(StringableFilter f)
short extracted from the field
as hexidecimal data
using the mandatory model with the given filter.
f - the filter to use for the input operationdemandShort(),
demandShort(StringableFilter),
demandShortAsHex(),
requestShort(),
requestShort(StringableFilter),
requestShortAsHex(),
requestShortAsHex(StringableFilter)
public short requestShort()
throws CancelledException
short extracted from the field
using the optional model.
CancelledException - if the user cancelled the input operationdemandShort(),
demandShort(StringableFilter),
demandShortAsHex(),
demandShortAsHex(StringableFilter),
requestShort(StringableFilter),
requestShortAsHex(),
requestShortAsHex(StringableFilter)
public short requestShort(StringableFilter f)
throws CancelledException
short extracted from the field
using the optional model with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationdemandShort(),
demandShort(StringableFilter),
demandShortAsHex(),
demandShortAsHex(StringableFilter),
requestShort(),
requestShortAsHex(),
requestShortAsHex(StringableFilter)
public short requestShortAsHex()
throws CancelledException
short extracted from the field
as hexidecimal data
using the optional model.
CancelledException - if the user cancelled the input operationdemandShort(),
demandShort(StringableFilter),
demandShortAsHex(),
demandShortAsHex(StringableFilter),
requestShort(),
requestShort(StringableFilter),
requestShortAsHex(StringableFilter)
public short requestShortAsHex(StringableFilter f)
throws CancelledException
short extracted from the field
as hexidecimal data
using the optional model with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationdemandShort(),
demandShort(StringableFilter),
demandShortAsHex(),
demandShortAsHex(StringableFilter),
requestShort(),
requestShort(StringableFilter),
requestShortAsHex()public int demandInt()
int extracted from the field
using the mandatory model.
demandInt(StringableFilter),
demandIntAsHex(),
demandIntAsHex(StringableFilter),
requestInt(),
requestInt(StringableFilter),
requestIntAsHex(),
requestIntAsHex(StringableFilter)public int demandInt(StringableFilter f)
int extracted from the field
using the mandatory model with the given filter.
f - the filter to use for the input operationdemandInt(),
demandIntAsHex(),
demandIntAsHex(StringableFilter),
requestInt(),
requestInt(StringableFilter),
requestIntAsHex(),
requestIntAsHex(StringableFilter)public int demandIntAsHex()
int extracted from the field
as hexidecimal data
using the mandatory model.
demandInt(),
demandInt(StringableFilter),
demandIntAsHex(StringableFilter),
requestInt(),
requestInt(StringableFilter),
requestIntAsHex(),
requestIntAsHex(StringableFilter)public int demandIntAsHex(StringableFilter f)
int extracted from the field
as hexidecimal data
using the mandatory model with the given filter.
f - the filter to use for the input operationdemandInt(),
demandInt(StringableFilter),
demandIntAsHex(),
requestInt(),
requestInt(StringableFilter),
requestIntAsHex(),
requestIntAsHex(StringableFilter)
public int requestInt()
throws CancelledException
int extracted from the field
using the optional model.
CancelledException - if the user cancelled the input operationdemandInt(),
demandInt(StringableFilter),
demandIntAsHex(),
demandIntAsHex(StringableFilter),
requestInt(StringableFilter),
requestIntAsHex(),
requestIntAsHex(StringableFilter)
public int requestInt(StringableFilter f)
throws CancelledException
int extracted from the field
using the optional model with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationdemandInt(),
demandInt(StringableFilter),
demandIntAsHex(),
demandIntAsHex(StringableFilter),
requestInt(),
requestIntAsHex(),
requestIntAsHex(StringableFilter)
public int requestIntAsHex()
throws CancelledException
int extracted from the field
as hexidecimal data
using the optional model.
CancelledException - if the user cancelled the input operationdemandInt(),
demandInt(StringableFilter),
demandIntAsHex(),
demandIntAsHex(StringableFilter),
requestInt(),
requestInt(StringableFilter),
requestIntAsHex(StringableFilter)
public int requestIntAsHex(StringableFilter f)
throws CancelledException
int extracted from the field
as hexidecimal data
using the optional model with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationdemandInt(),
demandInt(StringableFilter),
demandIntAsHex(),
demandIntAsHex(StringableFilter),
requestInt(),
requestInt(StringableFilter),
requestIntAsHex()public long demandLong()
long extracted from the field
using the mandatory model.
demandLong(StringableFilter),
demandLongAsHex(),
demandLongAsHex(StringableFilter),
requestLong(),
requestLong(StringableFilter),
requestLongAsHex(),
requestLongAsHex(StringableFilter)public long demandLong(StringableFilter f)
long extracted from the field
using the mandatory model with the given filter.
f - the filter to use for the input operationdemandLong(),
demandLongAsHex(),
demandLongAsHex(StringableFilter),
requestLong(),
requestLong(StringableFilter),
requestLongAsHex(),
requestLongAsHex(StringableFilter)public long demandLongAsHex()
long extracted from the field
as hexidecimal data
using the mandatory model.
demandLong(),
demandLong(StringableFilter),
demandLongAsHex(StringableFilter),
requestLong(),
requestLong(StringableFilter),
requestLongAsHex(),
requestLongAsHex(StringableFilter)public long demandLongAsHex(StringableFilter f)
long extracted from the field
as hexidecimal data
using the mandatory model with the given filter.
f - the filter to use for the input operationdemandLong(),
demandLong(StringableFilter),
demandLongAsHex(),
requestLong(),
requestLong(StringableFilter),
requestLongAsHex(),
requestLongAsHex(StringableFilter)
public long requestLong()
throws CancelledException
long extracted from the field
using the optional model.
CancelledException - if the user cancelled the input operationdemandLong(),
demandLong(StringableFilter),
demandLongAsHex(),
demandLongAsHex(StringableFilter),
requestLong(StringableFilter),
requestLongAsHex(),
requestLongAsHex(StringableFilter)
public long requestLong(StringableFilter f)
throws CancelledException
long extracted from the field
using the optional model with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationdemandLong(),
demandLong(StringableFilter),
demandLongAsHex(),
demandLongAsHex(StringableFilter),
requestLong(),
requestLongAsHex(),
requestLongAsHex(StringableFilter)
public long requestLongAsHex()
throws CancelledException
long extracted from the field
as hexidecimal data
using the optional model.
CancelledException - if the user cancelled the input operationdemandLong(),
demandLong(StringableFilter),
demandLongAsHex(),
demandLongAsHex(StringableFilter),
requestLong(),
requestLong(StringableFilter),
requestLongAsHex(StringableFilter)
public long requestLongAsHex(StringableFilter f)
throws CancelledException
long extracted from the field
as hexidecimal data
using the optional model with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationdemandLong(),
demandLong(StringableFilter),
demandLongAsHex(),
demandLongAsHex(StringableFilter),
requestLong(),
requestLong(StringableFilter),
requestLongAsHex()public float demandFloat()
float extracted from the field
using the mandatory model.
demandFloat(StringableFilter),
demandFloatAsHex(),
demandFloatAsHex(StringableFilter),
requestFloat(),
requestFloat(StringableFilter),
requestFloatAsHex(),
requestFloatAsHex(StringableFilter)public float demandFloat(StringableFilter f)
float extracted from the field
using the mandatory model with the given filter.
f - the filter to use for the input operationdemandFloat(),
demandFloatAsHex(),
demandFloatAsHex(StringableFilter),
requestFloat(),
requestFloat(StringableFilter),
requestFloatAsHex(),
requestFloatAsHex(StringableFilter)public float demandFloatAsHex()
float extracted from the field
as hexidecimal data
using the mandatory model.
demandFloat(),
demandFloat(StringableFilter),
demandFloatAsHex(StringableFilter),
requestFloat(),
requestFloat(StringableFilter),
requestFloatAsHex(),
requestFloatAsHex(StringableFilter)public float demandFloatAsHex(StringableFilter f)
float extracted from the field
as hexidecimal data
using the mandatory model with the given filter.
f - the filter to use for the input operationdemandFloat(),
demandFloat(StringableFilter),
demandFloatAsHex(),
requestFloat(),
requestFloat(StringableFilter),
requestFloatAsHex(),
requestFloatAsHex(StringableFilter)
public float requestFloat()
throws CancelledException
float extracted from the field
using the optional model.
CancelledException - if the user cancelled the input operationdemandFloat(),
demandFloat(StringableFilter),
demandFloatAsHex(),
demandFloatAsHex(StringableFilter),
requestFloat(StringableFilter),
requestFloatAsHex(),
requestFloatAsHex(StringableFilter)
public float requestFloat(StringableFilter f)
throws CancelledException
float extracted from the field
using the optional model with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationdemandFloat(),
demandFloat(StringableFilter),
demandFloatAsHex(),
demandFloatAsHex(StringableFilter),
requestFloat(),
requestFloatAsHex(),
requestFloatAsHex(StringableFilter)
public float requestFloatAsHex()
throws CancelledException
float extracted from the field
as hexidecimal data
using the optional model.
CancelledException - if the user cancelled the input operationdemandFloat(),
demandFloat(StringableFilter),
demandFloatAsHex(),
demandFloatAsHex(StringableFilter),
requestFloat(),
requestFloat(StringableFilter),
requestFloatAsHex(StringableFilter)
public float requestFloatAsHex(StringableFilter f)
throws CancelledException
float extracted from the field
as hexidecimal data
using the optional model with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationdemandFloat(),
demandFloat(StringableFilter),
demandFloatAsHex(),
demandFloatAsHex(StringableFilter),
requestFloat(),
requestFloat(StringableFilter),
requestFloatAsHex()public double demandDouble()
double extracted from the field
using the mandatory model.
demandDouble(StringableFilter),
demandDoubleAsHex(),
demandDoubleAsHex(StringableFilter),
requestDouble(),
requestDouble(StringableFilter),
requestDoubleAsHex(),
requestDoubleAsHex(StringableFilter)public double demandDouble(StringableFilter f)
double extracted from the field
using the mandatory model with the given filter.
f - the filter to use for the input operationdemandDouble(),
demandDoubleAsHex(),
demandDoubleAsHex(StringableFilter),
requestDouble(),
requestDouble(StringableFilter),
requestDoubleAsHex(),
requestDoubleAsHex(StringableFilter)public double demandDoubleAsHex()
double extracted from the field
as hexidecimal data
using the mandatory model.
demandDouble(),
demandDouble(StringableFilter),
demandDoubleAsHex(StringableFilter),
requestDouble(),
requestDouble(StringableFilter),
requestDoubleAsHex(),
requestDoubleAsHex(StringableFilter)public double demandDoubleAsHex(StringableFilter f)
double extracted from the field
as hexidecimal data
using the mandatory model with the given filter.
f - the filter to use for the input operationdemandDouble(),
demandDouble(StringableFilter),
demandDoubleAsHex(),
requestDouble(),
requestDouble(StringableFilter),
requestDoubleAsHex(),
requestDoubleAsHex(StringableFilter)
public double requestDouble()
throws CancelledException
double extracted from the field
using the optional model.
CancelledException - if the user cancelled the input operationdemandDouble(),
demandDouble(StringableFilter),
demandDoubleAsHex(),
demandDoubleAsHex(StringableFilter),
requestDouble(StringableFilter),
requestDoubleAsHex(),
requestDoubleAsHex(StringableFilter)
public double requestDouble(StringableFilter f)
throws CancelledException
double extracted from the field
using the optional model with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationdemandDouble(),
demandDouble(StringableFilter),
demandDoubleAsHex(),
demandDoubleAsHex(StringableFilter),
requestDouble(),
requestDoubleAsHex(),
requestDoubleAsHex(StringableFilter)
public double requestDoubleAsHex()
throws CancelledException
double extracted from the field
as hexidecimal data
using the optional model.
CancelledException - if the user cancelled the input operationdemandDouble(),
demandDouble(StringableFilter),
demandDoubleAsHex(),
demandDoubleAsHex(StringableFilter),
requestDouble(),
requestDouble(StringableFilter),
requestDoubleAsHex(StringableFilter)
public double requestDoubleAsHex(StringableFilter f)
throws CancelledException
double extracted from the field
as hexidecimal data
using the optional model with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationdemandDouble(),
demandDouble(StringableFilter),
demandDoubleAsHex(),
demandDoubleAsHex(StringableFilter),
requestDouble(),
requestDouble(StringableFilter),
requestDoubleAsHex()public char demandChar()
char extracted from the field
using the mandatory model.
demandChar(StringableFilter),
requestChar(),
requestChar(StringableFilter)public char demandChar(StringableFilter f)
char extracted from the field
using the mandatory model, with the given filter.
f - the filter to use for the input operationdemandChar(),
requestChar(StringableFilter),
requestChar()
public char requestChar()
throws CancelledException
char extracted from the field
using the optional model.
CancelledException - if the user cancelled the input operationrequestChar(StringableFilter),
demandChar(),
demandChar(StringableFilter)
public char requestChar(StringableFilter f)
throws CancelledException
char extracted from the field
using the optional model, with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationrequestChar(),
demandChar(StringableFilter),
demandChar()public boolean demandBoolean()
boolean extracted from the field
using the mandatory model.
demandBoolean(StringableFilter),
requestBoolean(),
requestBoolean(StringableFilter)public boolean demandBoolean(StringableFilter f)
boolean extracted from the field
using the mandatory model, with the given filter.
f - the filter to use for the input operationdemandBoolean(),
requestBoolean(StringableFilter),
requestBoolean()
public boolean requestBoolean()
throws CancelledException
boolean extracted from the field
using the optional model.
CancelledException - if the user cancelled the input operationrequestBoolean(StringableFilter),
demandBoolean(),
demandBoolean(StringableFilter)
public boolean requestBoolean(StringableFilter f)
throws CancelledException
boolean extracted from the field
using the optional model, with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationrequestBoolean(),
demandBoolean(StringableFilter),
demandBoolean()public String demandString()
String extracted from the field
using the mandatory model.
demandString(StringableFilter),
requestString(),
requestString(StringableFilter)public String demandString(StringableFilter f)
String extracted from the field
using the mandatory model, with the given filter.
f - the filter to use for the input operationdemandString(),
requestString(StringableFilter),
requestString()
public String requestString()
throws CancelledException
String extracted from the field
using the optional model.
CancelledException - if the user cancelled the input operationrequestString(StringableFilter),
demandString(),
demandString(StringableFilter)
public String requestString(StringableFilter f)
throws CancelledException
String extracted from the field
using the optional model, with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationrequestString(),
demandString(StringableFilter),
demandString()public Color demandColor()
Returns a Color extracted from the field
using the mandatory model.
Although the Color input methods are
available in this view, it is recommended that the
class ColorView be used for color input.
demandColor(StringableFilter),
requestColor(),
requestColor(StringableFilter)public Color demandColor(StringableFilter f)
Returns a Color extracted from the field
using the mandatory model, with the given filter.
Although the Color input methods are
available in this view, it is recommended that the
class ColorView be used for color input.
f - the filter to use for the input operationdemandColor(),
requestColor(StringableFilter),
requestColor()
public Color requestColor()
throws CancelledException
Returns a Color extracted from the field
using the optional model.
Although the Color input methods are
available in this view, it is recommended that the
class ColorView be used for color input.
CancelledException - if the user cancelled the input operationrequestColor(StringableFilter),
demandColor(),
demandColor(StringableFilter)
public Color requestColor(StringableFilter f)
throws CancelledException
Returns a Color extracted from the field
using the optional model, with the given filter.
Although the Color input methods are
available in this view, it is recommended that the
class ColorView be used for color input.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationrequestColor(),
demandColor(StringableFilter),
demandColor()public BigInteger demandBigInteger()
BigInteger extracted from the field
using the mandatory model.
demandBigInteger(StringableFilter),
requestBigInteger(),
requestBigInteger(StringableFilter)public BigInteger demandBigInteger(StringableFilter f)
BigInteger extracted from the field
using the mandatory model, with the given filter.
f - the filter to use for the input operationdemandBigInteger(),
requestBigInteger(StringableFilter),
requestBigInteger()
public BigInteger requestBigInteger()
throws CancelledException
BigInteger extracted from the field
using the optional model.
CancelledException - if the user cancelled the input operationrequestBigInteger(StringableFilter),
demandBigInteger(),
demandBigInteger(StringableFilter)
public BigInteger requestBigInteger(StringableFilter f)
throws CancelledException
BigInteger extracted from the field
using the optional model, with the given filter.
f - the filter to use for the input operation
CancelledException - if the user cancelled the input operationrequestBigInteger(),
demandBigInteger(StringableFilter),
demandBigInteger()public BigDecimal demandBigDecimal()
BigDecimal extracted from the field
using the mandatory model.
demandBigDecimal(StringableFilter),
requestBigDecimal(),
requestBigDecimal(StringableFilter)public BigDecimal demandBigDecimal(StringableFilter f)
BigDecimal extracted from the field
using the mandatory model, with the given filter.
f - the filter to use for the input operationdemandBigDecimal(),
requestBigDecimal(StringableFilter),
requestBigDecimal()
public BigDecimal requestBigDecimal()
throws CancelledException
BigDecimal extracted from the field
using the optional model.
CancelledException - if the user cancelled the input operationrequestBigDecimal(StringableFilter),
demandBigDecimal(),
demandBigDecimal(StringableFilter)
public BigDecimal requestBigDecimal(StringableFilter f)
throws CancelledException
BigDecimal extracted from the field
using the optional model, with the given filter.
f - the filter to use for the input operation
CancelledExceptionrequestBigDecimal(),
demandBigDecimal(StringableFilter),
demandBigDecimal()protected void installFocusActions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||