edu.neu.ccs.gui
Class DropdownView

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JComboBox
                  extended byedu.neu.ccs.gui.Dropdown
                      extended byedu.neu.ccs.gui.DropdownView
All Implemented Interfaces:
Accessible, ActionListener, Displayable, EventListener, GeneralView, ImageObserver, ItemSelectable, JPTConstants, ListDataListener, MenuContainer, Serializable, SwingConstants, TypedView

public class DropdownView
extends Dropdown
implements GeneralView

A GeneralView for the selection of one of various provided String items or, if editable, a choice entered by the user.

Since:
1.0
Version:
2.3.3
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JComboBox
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager
 
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
protected  GeneralViewSupport delegate
          The GeneralViewSupport object.
 
Fields inherited from class edu.neu.ccs.gui.Dropdown
DEFAULT_SELECTION, DEFAULT_WIDTH, defaultViewState, itemList, minimumWidth, PREFERRED_WIDTH, preferredWidth
 
Fields inherited from class javax.swing.JComboBox
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder
 
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
DropdownView()
          Constructs a view with no initial items.
DropdownView(Font font)
          Constructs a view with no initial items and the given font.
DropdownView(Font font, int minWidth)
          Constructs a view with no initial items, the given font, and the given minimum width.
DropdownView(int minWidth)
          Constructs a view with no initial items and the given minimum width.
DropdownView(String[] items)
          Constructs a view with the given array of items, for which the first item is selected by default.
DropdownView(String[] items, Font font)
          Constructs a view with the given array of items, for which the first item is selected by default and with the given font.
DropdownView(String[] items, Font font, int minWidth)
          Constructs a view with the given array of items, for which the first item is selected by default and with the given font and minimum width.
DropdownView(String[] items, int minWidth)
          Constructs a view with the given array of items, for which the first item is selected by default and with the given minimum width.
DropdownView(String[] items, String selection)
          Constructs a view with the given array of items, for which the given selection is selected by default.
DropdownView(String[] items, String selection, boolean editable)
          Constructs a view with the given array of items, for which the given selection is selected by default, and with the given editable state.
DropdownView(String[] items, String selection, boolean editable, Class dataType)
          Constructs a view with the given array of items, for which the given selection is selected by default, with the given editable state, and the Stringable data type for the TypedView data type.
DropdownView(String[] items, String selection, boolean editable, Class dataType, StringableFilter filter)
          Constructs a view with the given array of items, for which the given selection is selected by default, with the given editable state, and the Stringable data type for the TypedView data type, and the given StringableFilter that sets the desired input filter.
DropdownView(String[] items, String selection, Font font)
          Constructs a view with the given array of items, for which the given selection is selected by default and with the given font.
DropdownView(String[] items, String selection, Font font, boolean editable)
          Constructs a view with the given array of items, for which the given selection is selected by default, and with the given font and editable state.
DropdownView(String[] items, String selection, Font font, boolean editable, Class dataType)
          Constructs a view with the given array of items, for which the given selection is selected by default, with the given font and editable state, and the Stringable data type for the TypedView data type.
DropdownView(String[] items, String selection, Font font, boolean editable, Class dataType, StringableFilter filter)
          Constructs a view with the given array of items, for which the given selection is selected by default, with the given font and editable state, and the Stringable data type for the TypedView data type, and the given StringableFilter that sets the desired input filter.
DropdownView(String[] items, String selection, Font font, int minWidth)
          Constructs a view with the given array of items, for which the given selection is selected by default, and with the given font and minimum width.
DropdownView(String[] items, String selection, Font font, int minWidth, boolean editable)
          Constructs a view with the given array of items, for which the given selection is selected by default, and with the given font, width, and editable state.
DropdownView(String[] items, String selection, Font font, int minWidth, boolean editable, Class dataType)
          Constructs a view with the given array of items, for which the given selection is selected by default, with the given font, minimum width, and editable state, and the Stringable data type for the TypedView data type.
DropdownView(String[] items, String selection, Font font, int minWidth, boolean editable, Class dataType, StringableFilter filter)
          Constructs a view with the given array of items, for which the given selection is selected by default, with the given font, minimum width, and editable state, and the Stringable data type for the TypedView data type, and the given StringableFilter that sets the desired input filter.
DropdownView(String[] items, String selection, int minWidth)
          Constructs a view with the given array of items, for which the given selection is selected by default, and with the given minimum width.
DropdownView(String[] items, String selection, int minWidth, boolean editable)
          Constructs a view with the given array of items, for which the given selection is selected by default, and with the given width and editable state.
DropdownView(String[] items, String selection, int minWidth, boolean editable, Class dataType)
          Constructs a view with the given array of items, for which the given selection is selected by default, with the given minimum width and editable state, and the Stringable data type for the TypedView data type.
DropdownView(String[] items, String selection, int minWidth, boolean editable, Class dataType, StringableFilter filter)
          Constructs a view with the given array of items, for which the given selection is selected by default, with the given minimum width and editable state, and the Stringable data type for the TypedView data type, and the given StringableFilter that sets the desired input filter.
 
Method Summary
 void addMalformedDataListener(MalformedDataListener l)
           
 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.
 Class getDataType()
          Returns the current class of objects returned when a model object is demanded or requested.
 StringableFilter getFilter()
          Returns the current filter used by this view.
 InputProperties getInputProperties()
          Returns the input properties for this view.
protected  void initializeDropdownView(String[] items, String selection, Font font, int minWidth, boolean editable, Class dataType, StringableFilter filter)
          The initializer.
 GeneralView makeCopy()
          Returns a new dropdown view with the same item list, font, preferred width, minimum width, data type, view state, default view state, initial input properties, stringable filter, and editable state as this dropdown view.
 void removeMalformedDataListener(MalformedDataListener l)
           
 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 setDataType(Class dataType)
          Sets the current class of objects returned when a model object is demanded or requested.
 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 setInputProperties(InputProperties properties)
          Sets the input properties for this view to the provided input properties.
 
Methods inherited from class edu.neu.ccs.gui.Dropdown
addItem, addItems, autoSetPreferredWidth, getDefaultFont, getDefaultViewState, getItems, getMinimumWidth, getPreferredSize, getPreferredWidth, getViewState, initializeDropdown, insertItemAt, refresh, refreshComponent, removeAllItems, removeItem, removeItemAt, removeItems, reset, setDefaultViewState, setFont, setItems, setMinimumWidth, setPreferredWidth, setPreferredWidth, setPreferredWidth, setViewState
 
Methods inherited from class javax.swing.JComboBox
actionPerformed, addActionListener, addItemListener, addPopupMenuListener, configureEditor, configurePropertiesFromAction, contentsChanged, createActionPropertyChangeListener, createDefaultKeySelectionManager, fireActionEvent, fireItemStateChanged, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, firePopupMenuWillBecomeVisible, getAccessibleContext, getAction, getActionCommand, getActionListeners, getEditor, getItemAt, getItemCount, getItemListeners, getKeySelectionManager, getMaximumRowCount, getModel, getPopupMenuListeners, getPrototypeDisplayValue, getRenderer, getSelectedIndex, getSelectedItem, getSelectedObjects, getUI, getUIClassID, hidePopup, installAncestorListener, intervalAdded, intervalRemoved, isEditable, isLightWeightPopupEnabled, isPopupVisible, paramString, processKeyEvent, removeActionListener, removeItemListener, removePopupMenuListener, selectedItemChanged, selectWithKeyChar, setAction, setActionCommand, setEditable, setEditor, setEnabled, setKeySelectionManager, setLightWeightPopupEnabled, setMaximumRowCount, setModel, setPopupVisible, setPrototypeDisplayValue, setRenderer, setSelectedIndex, setSelectedItem, setUI, showPopup, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
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
getDefaultViewState, getViewState, reset, setDefaultViewState, setEnabled, setViewState
 

Field Detail

delegate

protected GeneralViewSupport delegate
The GeneralViewSupport object.

Constructor Detail

DropdownView

public DropdownView()

Constructs a view with no initial items.

Other constructors:


DropdownView

public DropdownView(int minWidth)
Constructs a view with no initial items and the given minimum width.

Parameters:
minWidth - the preferred minimum width
See Also:
DropdownView()

DropdownView

public DropdownView(Font font)
Constructs a view with no initial items and the given font.

Parameters:
font - the font for the view
See Also:
DropdownView()

DropdownView

public DropdownView(Font font,
                    int minWidth)
Constructs a view with no initial items, the given font, and the given minimum width.

Parameters:
font - the font for the view
minWidth - the preferred minimum width
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items)

Constructs a view with the given array of items, for which the first item is selected by default.

If the given array of items is null, no items are initially added to the view.

Parameters:
items - the array of dropdown items
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    int minWidth)

Constructs a view with the given array of items, for which the first item is selected by default and with the given minimum width.

If the given array of items is null, no items are initially added to the view.

Parameters:
items - the array of dropdown items
minWidth - the preferred minimum width
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    Font font)

Constructs a view with the given array of items, for which the first item is selected by default and with the given font.

If the given array of items is null, no items are initially added to the view.

Parameters:
items - the array of dropdown items
font - the font for the view
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    Font font,
                    int minWidth)

Constructs a view with the given array of items, for which the first item is selected by default and with the given font and minimum width.

If the given array of items is null, no items are initially added to the view.

Parameters:
items - the array of dropdown items
font - the font for the view
minWidth - the preferred minimum width
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection)

Constructs a view with the given array of items, for which the given selection is selected by default.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

Parameters:
items - the array of dropdown items
selection - the default initial choice
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    int minWidth)

Constructs a view with the given array of items, for which the given selection is selected by default, and with the given minimum width.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

Parameters:
items - the array of dropdown items
selection - the default initial choice
minWidth - the preferred minimum width
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    Font font)

Constructs a view with the given array of items, for which the given selection is selected by default and with the given font.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

Parameters:
items - the array of dropdown items
selection - the default initial choice
font - the font for the view
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    Font font,
                    int minWidth)

Constructs a view with the given array of items, for which the given selection is selected by default, and with the given font and minimum width.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

Parameters:
items - the array of dropdown items
selection - the default initial choice
font - the font for the view
minWidth - the preferred minimum width
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    boolean editable)

Constructs a view with the given array of items, for which the given selection is selected by default, and with the given editable state.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

Parameters:
items - the array of dropdown items
selection - the label for the initial default choice
editable - whether or not the view is user editable
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    int minWidth,
                    boolean editable)

Constructs a view with the given array of items, for which the given selection is selected by default, and with the given width and editable state.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

Parameters:
items - the array of dropdown items
selection - the label for the initial default choice
minWidth - the preferred minimum width
editable - whether or not the view is user editable
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    Font font,
                    boolean editable)

Constructs a view with the given array of items, for which the given selection is selected by default, and with the given font and editable state.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

Parameters:
items - the array of dropdown items
selection - the label for the initial default choice
font - the font for the view
editable - whether or not the view is user editable
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    Font font,
                    int minWidth,
                    boolean editable)

Constructs a view with the given array of items, for which the given selection is selected by default, and with the given font, width, and editable state.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

Parameters:
items - the array of dropdown items
selection - the label for the initial default choice
font - the font for the view
minWidth - the preferred minimum width
editable - whether or not the view is user editable
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    boolean editable,
                    Class dataType)

Constructs a view with the given array of items, for which the given selection is selected by default, with the given editable state, and the Stringable data type for the TypedView data type.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

The data type must be Stringable or null. If null then the data type is set to XString.class.

Parameters:
items - the array of dropdown items
selection - the label for the initial default choice
editable - whether or not the view is user editable
dataType - the Stringable model type for this view
Throws:
Error - if the given data type is not assignable from the Stringable reference type or null
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    int minWidth,
                    boolean editable,
                    Class dataType)

Constructs a view with the given array of items, for which the given selection is selected by default, with the given minimum width and editable state, and the Stringable data type for the TypedView data type.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

The data type must be Stringable or null. If null then the data type is set to XString.class.

Parameters:
items - the array of dropdown items
selection - the label for the initial default choice
minWidth - the preferred minimum width
editable - whether or not the view is user editable
dataType - the Stringable model type for this view
Throws:
Error - if the given data type is not assignable from the Stringable reference type or null
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    Font font,
                    boolean editable,
                    Class dataType)

Constructs a view with the given array of items, for which the given selection is selected by default, with the given font and editable state, and the Stringable data type for the TypedView data type.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

The data type must be Stringable or null. If null then the data type is set to XString.class.

Parameters:
items - the array of dropdown items
selection - the label for the initial default choice
font - the font for the view
editable - whether or not the view is user editable
dataType - the Stringable model type for this view
Throws:
Error - if the given data type is not assignable from the Stringable reference type or null
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    Font font,
                    int minWidth,
                    boolean editable,
                    Class dataType)

Constructs a view with the given array of items, for which the given selection is selected by default, with the given font, minimum width, and editable state, and the Stringable data type for the TypedView data type.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

The data type must be Stringable or null. If null then the data type is set to XString.class.

Parameters:
items - the array of dropdown items
selection - the label for the initial default choice
font - the font for the view
minWidth - the preferred minimum width
editable - whether or not the view is user editable
dataType - the Stringable model type for this view
Throws:
Error - if the given data type is not assignable from the Stringable reference type or null
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    boolean editable,
                    Class dataType,
                    StringableFilter filter)

Constructs a view with the given array of items, for which the given selection is selected by default, with the given editable state, and the Stringable data type for the TypedView data type, and the given StringableFilter that sets the desired input filter.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

The data type must be Stringable or null. If null then the data type is set to XString.class.

Parameters:
items - the array of dropdown items
selection - the label for the initial default choice
editable - whether or not the view is user editable
dataType - the Stringable model type for this view
filter - the optional StringableFilter filter
Throws:
Error - if the given data type is not assignable from the Stringable reference type or null
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    int minWidth,
                    boolean editable,
                    Class dataType,
                    StringableFilter filter)

Constructs a view with the given array of items, for which the given selection is selected by default, with the given minimum width and editable state, and the Stringable data type for the TypedView data type, and the given StringableFilter that sets the desired input filter.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

The data type must be Stringable or null. If null then the data type is set to XString.class.

Parameters:
items - the array of dropdown items
selection - the label for the initial default choice
minWidth - the preferred minimum width
editable - whether or not the view is user editable
dataType - the Stringable model type for this view
filter - the optional StringableFilter filter
Throws:
Error - if the given data type is not assignable from the Stringable reference type or null
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    Font font,
                    boolean editable,
                    Class dataType,
                    StringableFilter filter)

Constructs a view with the given array of items, for which the given selection is selected by default, with the given font and editable state, and the Stringable data type for the TypedView data type, and the given StringableFilter that sets the desired input filter.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

The data type must be Stringable or null. If null then the data type is set to XString.class.

Parameters:
items - the array of dropdown items
selection - the label for the initial default choice
font - the font for the view
editable - whether or not the view is user editable
dataType - the Stringable model type for this view
filter - the optional StringableFilter filter
Throws:
Error - if the given data type is not assignable from the Stringable reference type or null
See Also:
DropdownView()

DropdownView

public DropdownView(String[] items,
                    String selection,
                    Font font,
                    int minWidth,
                    boolean editable,
                    Class dataType,
                    StringableFilter filter)

Constructs a view with the given array of items, for which the given selection is selected by default, with the given font, minimum width, and editable state, and the Stringable data type for the TypedView data type, and the given StringableFilter that sets the desired input filter.

If the given array of items is null, no items are initially added to the view.

If the view is not editable and the selection is not in the array of items then the selection will set the default state but will not be displayed.

The data type must be Stringable or null. If null then the data type is set to XString.class.

Parameters:
items - the array of dropdown items
selection - the label for the initial default choice
font - the font for the view
minWidth - the preferred minimum width
editable - whether or not the view is user editable
dataType - the Stringable model type for this view
filter - the optional StringableFilter filter
Throws:
Error - if the given data type is not assignable from the Stringable reference type or null
See Also:
DropdownView()
Method Detail

initializeDropdownView

protected void initializeDropdownView(String[] items,
                                      String selection,
                                      Font font,
                                      int minWidth,
                                      boolean editable,
                                      Class dataType,
                                      StringableFilter filter)
The initializer.

Parameters:
items - the array of dropdown items
selection - the label for the initial default choice
font - the font for the view
minWidth - the preferred minimum width
editable - whether or not the view is user editable
dataType - the Stringable model type for this view
filter - the optional StringableFilter filter

makeCopy

public GeneralView makeCopy()
Returns a new dropdown view with the same item list, font, preferred width, minimum width, data type, view state, default view state, initial input properties, stringable filter, and editable state as this dropdown view.

Specified by:
makeCopy in interface GeneralView
Returns:
a copy of this dropdown view

setDataType

public void setDataType(Class dataType)
Description copied from interface: GeneralView
Sets the current class of objects returned when a model object is demanded or requested.

Specified by:
setDataType in interface GeneralView
Parameters:
dataType - the new class of objects for model objects

getDataType

public Class getDataType()
Description copied from interface: TypedView
Returns the current class of objects returned when a model object is demanded or requested.

Specified by:
getDataType in interface TypedView
Returns:
the current class of a model object

setFilter

public void setFilter(StringableFilter filter)
Description copied from interface: GeneralView
Sets the current filter used by the view to the given StringableFilter.

Specified by:
setFilter in interface GeneralView
Parameters:
filter - the filter to be used

getFilter

public StringableFilter getFilter()
Description copied from interface: GeneralView
Returns the current filter used by this view.

Specified by:
getFilter in interface GeneralView
Returns:
the current filter

demandObject

public Stringable demandObject()
Description copied from interface: TypedView
Returns a Stringable object based on the view state of the view using the mandatory model.

Specified by:
demandObject in interface TypedView
Returns:
a Stringable model object
See Also:
TypedView.requestObject()

requestObject

public Stringable requestObject()
                         throws CancelledException
Description copied from interface: TypedView
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.

Specified by:
requestObject in interface TypedView
Returns:
a Stringable model object
Throws:
CancelledException
See Also:
TypedView.demandObject()

demandObject

public Stringable demandObject(StringableFilter filter)
Description copied from interface: GeneralView
Returns a Stringable object based on the view state of the view, the temporary filter, and the mandatory model.

Specified by:
demandObject in interface GeneralView
Parameters:
filter - the temporary filter to use
Returns:
a Stringable model object
See Also:
TypedView.demandObject(), GeneralView.requestObject(Class, StringableFilter)

requestObject

public Stringable requestObject(StringableFilter filter)
                         throws CancelledException
Description copied from interface: GeneralView
Returns a Stringable object based on the view state of the view, the temporary filter, and the optional model.

Specified by:
requestObject in interface GeneralView
Parameters:
filter - the temporary filter to use
Returns:
a Stringable model object
Throws:
CancelledException
See Also:
TypedView.requestObject(), GeneralView.demandObject(Class, StringableFilter)

demandObject

public Stringable demandObject(Class dataType,
                               StringableFilter filter)
Description copied from interface: GeneralView
Returns a Stringable object based on the view state of the view, the temporary data type and filter, and the mandatory model.

Specified by:
demandObject in interface GeneralView
Returns:
a Stringable model object
See Also:
TypedView.demandObject(), GeneralView.requestObject(Class, StringableFilter)

requestObject

public Stringable requestObject(Class dataType,
                                StringableFilter filter)
                         throws CancelledException
Description copied from interface: GeneralView
Returns a Stringable object based on the view state of the view, the temporary data type and filter, and the optional model.

Specified by:
requestObject in interface GeneralView
Returns:
a Stringable model object
Throws:
CancelledException
See Also:
TypedView.requestObject(), GeneralView.demandObject(Class, StringableFilter)

setInputProperties

public void setInputProperties(InputProperties properties)
Description copied from interface: TypedView

Sets 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.

Specified by:
setInputProperties in interface TypedView
Parameters:
properties - the new input properties for the view
See Also:
TypedView.getInputProperties()

getInputProperties

public InputProperties getInputProperties()
Description copied from interface: TypedView
Returns the input properties for this view.

Specified by:
getInputProperties in interface TypedView
Returns:
the input properties
See Also:
TypedView.setInputProperties(InputProperties)

setErrorPromptTitleSuggestion

public void setErrorPromptTitleSuggestion(String errorPrompt,
                                          String dialogTitle,
                                          String suggestion)
Description copied from interface: GeneralView
Sets the three input property Strings for an error dialog in a single method.

Specified by:
setErrorPromptTitleSuggestion in interface GeneralView
Parameters:
errorPrompt - the error prompt of an error dialog
dialogTitle - the dialog title of an error dialog
suggestion - the suggestion for an error dialog

addMalformedDataListener

public void addMalformedDataListener(MalformedDataListener l)

removeMalformedDataListener

public void removeMalformedDataListener(MalformedDataListener l)

demandByte

public byte demandByte()
Returns a byte extracted from the field using the mandatory model.

See Also:
demandByte(StringableFilter), demandByteAsHex(), demandByteAsHex(StringableFilter), requestByte(), requestByte(StringableFilter), requestByteAsHex(), requestByteAsHex(StringableFilter)

demandByte

public byte demandByte(StringableFilter f)
Returns a byte extracted from the field using the mandatory model with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandByte(), demandByteAsHex(), demandByteAsHex(StringableFilter), requestByte(), requestByte(StringableFilter), requestByteAsHex(), requestByteAsHex(StringableFilter)

demandByteAsHex

public byte demandByteAsHex()
Returns a byte extracted from the field as hexidecimal data using the mandatory model.

See Also:
demandByte(), demandByte(StringableFilter), demandByteAsHex(StringableFilter), requestByte(), requestByte(StringableFilter), requestByteAsHex(), requestByteAsHex(StringableFilter)

demandByteAsHex

public byte demandByteAsHex(StringableFilter f)
Returns a byte extracted from the field as hexidecimal data using the mandatory model with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandByte(), demandByte(StringableFilter), demandByteAsHex(), requestByte(), requestByte(StringableFilter), requestByteAsHex(), requestByteAsHex(StringableFilter)

requestByte

public byte requestByte()
                 throws CancelledException
Returns a byte extracted from the field using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandByte(), demandByte(StringableFilter), demandByteAsHex(), demandByteAsHex(StringableFilter), requestByte(StringableFilter), requestByteAsHex(), requestByteAsHex(StringableFilter)

requestByte

public byte requestByte(StringableFilter f)
                 throws CancelledException
Returns a byte extracted from the field using the optional model with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandByte(), demandByte(StringableFilter), demandByteAsHex(), demandByteAsHex(StringableFilter), requestByte(), requestByteAsHex(), requestByteAsHex(StringableFilter)

requestByteAsHex

public byte requestByteAsHex()
                      throws CancelledException
Returns a byte extracted from the field as hexidecimal data using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandByte(), demandByte(StringableFilter), demandByteAsHex(), demandByteAsHex(StringableFilter), requestByte(), requestByte(StringableFilter), requestByteAsHex(StringableFilter)

requestByteAsHex

public byte requestByteAsHex(StringableFilter f)
                      throws CancelledException
Returns a byte extracted from the field as hexidecimal data using the optional model with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandByte(), demandByte(StringableFilter), demandByteAsHex(), demandByteAsHex(StringableFilter), requestByte(), requestByte(StringableFilter), requestByteAsHex()

demandShort

public short demandShort()
Returns a short extracted from the field using the mandatory model.

See Also:
demandShort(StringableFilter), demandShortAsHex(), demandShortAsHex(StringableFilter), requestShort(), requestShort(StringableFilter), requestShortAsHex(), requestShortAsHex(StringableFilter)

demandShort

public short demandShort(StringableFilter f)
Returns a short extracted from the field using the mandatory model with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandShort(), demandShortAsHex(), demandShortAsHex(StringableFilter), requestShort(), requestShort(StringableFilter), requestShortAsHex(), requestShortAsHex(StringableFilter)

demandShortAsHex

public short demandShortAsHex()
Returns a short extracted from the field as hexidecimal data using the mandatory model.

See Also:
demandShort(), demandShort(StringableFilter), demandShortAsHex(StringableFilter), requestShort(), requestShort(StringableFilter), requestShortAsHex(), requestShortAsHex(StringableFilter)

demandShortAsHex

public short demandShortAsHex(StringableFilter f)
Returns a short extracted from the field as hexidecimal data using the mandatory model with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandShort(), demandShort(StringableFilter), demandShortAsHex(), requestShort(), requestShort(StringableFilter), requestShortAsHex(), requestShortAsHex(StringableFilter)

requestShort

public short requestShort()
                   throws CancelledException
Returns a short extracted from the field using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandShort(), demandShort(StringableFilter), demandShortAsHex(), demandShortAsHex(StringableFilter), requestShort(StringableFilter), requestShortAsHex(), requestShortAsHex(StringableFilter)

requestShort

public short requestShort(StringableFilter f)
                   throws CancelledException
Returns a short extracted from the field using the optional model with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandShort(), demandShort(StringableFilter), demandShortAsHex(), demandShortAsHex(StringableFilter), requestShort(), requestShortAsHex(), requestShortAsHex(StringableFilter)

requestShortAsHex

public short requestShortAsHex()
                        throws CancelledException
Returns a short extracted from the field as hexidecimal data using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandShort(), demandShort(StringableFilter), demandShortAsHex(), demandShortAsHex(StringableFilter), requestShort(), requestShort(StringableFilter), requestShortAsHex(StringableFilter)

requestShortAsHex

public short requestShortAsHex(StringableFilter f)
                        throws CancelledException
Returns a short extracted from the field as hexidecimal data using the optional model with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandShort(), demandShort(StringableFilter), demandShortAsHex(), demandShortAsHex(StringableFilter), requestShort(), requestShort(StringableFilter), requestShortAsHex()

demandInt

public int demandInt()
Returns an int extracted from the field using the mandatory model.

See Also:
demandInt(StringableFilter), demandIntAsHex(), demandIntAsHex(StringableFilter), requestInt(), requestInt(StringableFilter), requestIntAsHex(), requestIntAsHex(StringableFilter)

demandInt

public int demandInt(StringableFilter f)
Returns an int extracted from the field using the mandatory model with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandInt(), demandIntAsHex(), demandIntAsHex(StringableFilter), requestInt(), requestInt(StringableFilter), requestIntAsHex(), requestIntAsHex(StringableFilter)

demandIntAsHex

public int demandIntAsHex()
Returns an int extracted from the field as hexidecimal data using the mandatory model.

See Also:
demandInt(), demandInt(StringableFilter), demandIntAsHex(StringableFilter), requestInt(), requestInt(StringableFilter), requestIntAsHex(), requestIntAsHex(StringableFilter)

demandIntAsHex

public int demandIntAsHex(StringableFilter f)
Returns an int extracted from the field as hexidecimal data using the mandatory model with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandInt(), demandInt(StringableFilter), demandIntAsHex(), requestInt(), requestInt(StringableFilter), requestIntAsHex(), requestIntAsHex(StringableFilter)

requestInt

public int requestInt()
               throws CancelledException
Returns an int extracted from the field using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandInt(), demandInt(StringableFilter), demandIntAsHex(), demandIntAsHex(StringableFilter), requestInt(StringableFilter), requestIntAsHex(), requestIntAsHex(StringableFilter)

requestInt

public int requestInt(StringableFilter f)
               throws CancelledException
Returns an int extracted from the field using the optional model with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandInt(), demandInt(StringableFilter), demandIntAsHex(), demandIntAsHex(StringableFilter), requestInt(), requestIntAsHex(), requestIntAsHex(StringableFilter)

requestIntAsHex

public int requestIntAsHex()
                    throws CancelledException
Returns an int extracted from the field as hexidecimal data using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandInt(), demandInt(StringableFilter), demandIntAsHex(), demandIntAsHex(StringableFilter), requestInt(), requestInt(StringableFilter), requestIntAsHex(StringableFilter)

requestIntAsHex

public int requestIntAsHex(StringableFilter f)
                    throws CancelledException
Returns an int extracted from the field as hexidecimal data using the optional model with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandInt(), demandInt(StringableFilter), demandIntAsHex(), demandIntAsHex(StringableFilter), requestInt(), requestInt(StringableFilter), requestIntAsHex()

demandLong

public long demandLong()
Returns a long extracted from the field using the mandatory model.

See Also:
demandLong(StringableFilter), demandLongAsHex(), demandLongAsHex(StringableFilter), requestLong(), requestLong(StringableFilter), requestLongAsHex(), requestLongAsHex(StringableFilter)

demandLong

public long demandLong(StringableFilter f)
Returns a long extracted from the field using the mandatory model with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandLong(), demandLongAsHex(), demandLongAsHex(StringableFilter), requestLong(), requestLong(StringableFilter), requestLongAsHex(), requestLongAsHex(StringableFilter)

demandLongAsHex

public long demandLongAsHex()
Returns a long extracted from the field as hexidecimal data using the mandatory model.

See Also:
demandLong(), demandLong(StringableFilter), demandLongAsHex(StringableFilter), requestLong(), requestLong(StringableFilter), requestLongAsHex(), requestLongAsHex(StringableFilter)

demandLongAsHex

public long demandLongAsHex(StringableFilter f)
Returns a long extracted from the field as hexidecimal data using the mandatory model with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandLong(), demandLong(StringableFilter), demandLongAsHex(), requestLong(), requestLong(StringableFilter), requestLongAsHex(), requestLongAsHex(StringableFilter)

requestLong

public long requestLong()
                 throws CancelledException
Returns a long extracted from the field using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandLong(), demandLong(StringableFilter), demandLongAsHex(), demandLongAsHex(StringableFilter), requestLong(StringableFilter), requestLongAsHex(), requestLongAsHex(StringableFilter)

requestLong

public long requestLong(StringableFilter f)
                 throws CancelledException
Returns a long extracted from the field using the optional model with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandLong(), demandLong(StringableFilter), demandLongAsHex(), demandLongAsHex(StringableFilter), requestLong(), requestLongAsHex(), requestLongAsHex(StringableFilter)

requestLongAsHex

public long requestLongAsHex()
                      throws CancelledException
Returns a long extracted from the field as hexidecimal data using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandLong(), demandLong(StringableFilter), demandLongAsHex(), demandLongAsHex(StringableFilter), requestLong(), requestLong(StringableFilter), requestLongAsHex(StringableFilter)

requestLongAsHex

public long requestLongAsHex(StringableFilter f)
                      throws CancelledException
Returns a long extracted from the field as hexidecimal data using the optional model with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandLong(), demandLong(StringableFilter), demandLongAsHex(), demandLongAsHex(StringableFilter), requestLong(), requestLong(StringableFilter), requestLongAsHex()

demandFloat

public float demandFloat()
Returns a float extracted from the field using the mandatory model.

See Also:
demandFloat(StringableFilter), demandFloatAsHex(), demandFloatAsHex(StringableFilter), requestFloat(), requestFloat(StringableFilter), requestFloatAsHex(), requestFloatAsHex(StringableFilter)

demandFloat

public float demandFloat(StringableFilter f)
Returns a float extracted from the field using the mandatory model with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandFloat(), demandFloatAsHex(), demandFloatAsHex(StringableFilter), requestFloat(), requestFloat(StringableFilter), requestFloatAsHex(), requestFloatAsHex(StringableFilter)

demandFloatAsHex

public float demandFloatAsHex()
Returns a float extracted from the field as hexidecimal data using the mandatory model.

See Also:
demandFloat(), demandFloat(StringableFilter), demandFloatAsHex(StringableFilter), requestFloat(), requestFloat(StringableFilter), requestFloatAsHex(), requestFloatAsHex(StringableFilter)

demandFloatAsHex

public float demandFloatAsHex(StringableFilter f)
Returns a float extracted from the field as hexidecimal data using the mandatory model with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandFloat(), demandFloat(StringableFilter), demandFloatAsHex(), requestFloat(), requestFloat(StringableFilter), requestFloatAsHex(), requestFloatAsHex(StringableFilter)

requestFloat

public float requestFloat()
                   throws CancelledException
Returns a float extracted from the field using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandFloat(), demandFloat(StringableFilter), demandFloatAsHex(), demandFloatAsHex(StringableFilter), requestFloat(StringableFilter), requestFloatAsHex(), requestFloatAsHex(StringableFilter)

requestFloat

public float requestFloat(StringableFilter f)
                   throws CancelledException
Returns a float extracted from the field using the optional model with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandFloat(), demandFloat(StringableFilter), demandFloatAsHex(), demandFloatAsHex(StringableFilter), requestFloat(), requestFloatAsHex(), requestFloatAsHex(StringableFilter)

requestFloatAsHex

public float requestFloatAsHex()
                        throws CancelledException
Returns a float extracted from the field as hexidecimal data using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandFloat(), demandFloat(StringableFilter), demandFloatAsHex(), demandFloatAsHex(StringableFilter), requestFloat(), requestFloat(StringableFilter), requestFloatAsHex(StringableFilter)

requestFloatAsHex

public float requestFloatAsHex(StringableFilter f)
                        throws CancelledException
Returns a float extracted from the field as hexidecimal data using the optional model with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandFloat(), demandFloat(StringableFilter), demandFloatAsHex(), demandFloatAsHex(StringableFilter), requestFloat(), requestFloat(StringableFilter), requestFloatAsHex()

demandDouble

public double demandDouble()
Returns a double extracted from the field using the mandatory model.

See Also:
demandDouble(StringableFilter), demandDoubleAsHex(), demandDoubleAsHex(StringableFilter), requestDouble(), requestDouble(StringableFilter), requestDoubleAsHex(), requestDoubleAsHex(StringableFilter)

demandDouble

public double demandDouble(StringableFilter f)
Returns a double extracted from the field using the mandatory model with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandDouble(), demandDoubleAsHex(), demandDoubleAsHex(StringableFilter), requestDouble(), requestDouble(StringableFilter), requestDoubleAsHex(), requestDoubleAsHex(StringableFilter)

demandDoubleAsHex

public double demandDoubleAsHex()
Returns a double extracted from the field as hexidecimal data using the mandatory model.

See Also:
demandDouble(), demandDouble(StringableFilter), demandDoubleAsHex(StringableFilter), requestDouble(), requestDouble(StringableFilter), requestDoubleAsHex(), requestDoubleAsHex(StringableFilter)

demandDoubleAsHex

public double demandDoubleAsHex(StringableFilter f)
Returns a double extracted from the field as hexidecimal data using the mandatory model with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandDouble(), demandDouble(StringableFilter), demandDoubleAsHex(), requestDouble(), requestDouble(StringableFilter), requestDoubleAsHex(), requestDoubleAsHex(StringableFilter)

requestDouble

public double requestDouble()
                     throws CancelledException
Returns a double extracted from the field using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandDouble(), demandDouble(StringableFilter), demandDoubleAsHex(), demandDoubleAsHex(StringableFilter), requestDouble(StringableFilter), requestDoubleAsHex(), requestDoubleAsHex(StringableFilter)

requestDouble

public double requestDouble(StringableFilter f)
                     throws CancelledException
Returns a double extracted from the field using the optional model with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandDouble(), demandDouble(StringableFilter), demandDoubleAsHex(), demandDoubleAsHex(StringableFilter), requestDouble(), requestDoubleAsHex(), requestDoubleAsHex(StringableFilter)

requestDoubleAsHex

public double requestDoubleAsHex()
                          throws CancelledException
Returns a double extracted from the field as hexidecimal data using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandDouble(), demandDouble(StringableFilter), demandDoubleAsHex(), demandDoubleAsHex(StringableFilter), requestDouble(), requestDouble(StringableFilter), requestDoubleAsHex(StringableFilter)

requestDoubleAsHex

public double requestDoubleAsHex(StringableFilter f)
                          throws CancelledException
Returns a double extracted from the field as hexidecimal data using the optional model with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
demandDouble(), demandDouble(StringableFilter), demandDoubleAsHex(), demandDoubleAsHex(StringableFilter), requestDouble(), requestDouble(StringableFilter), requestDoubleAsHex()

demandChar

public char demandChar()
Returns a char extracted from the field using the mandatory model.

See Also:
demandChar(StringableFilter), requestChar(), requestChar(StringableFilter)

demandChar

public char demandChar(StringableFilter f)
Returns a char extracted from the field using the mandatory model, with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandChar(), requestChar(StringableFilter), requestChar()

requestChar

public char requestChar()
                 throws CancelledException
Returns a char extracted from the field using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
requestChar(StringableFilter), demandChar(), demandChar(StringableFilter)

requestChar

public char requestChar(StringableFilter f)
                 throws CancelledException
Returns a char extracted from the field using the optional model, with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
requestChar(), demandChar(StringableFilter), demandChar()

demandBoolean

public boolean demandBoolean()
Returns a boolean extracted from the field using the mandatory model.

See Also:
demandBoolean(StringableFilter), requestBoolean(), requestBoolean(StringableFilter)

demandBoolean

public boolean demandBoolean(StringableFilter f)
Returns a boolean extracted from the field using the mandatory model, with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandBoolean(), requestBoolean(StringableFilter), requestBoolean()

requestBoolean

public boolean requestBoolean()
                       throws CancelledException
Returns a boolean extracted from the field using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
requestBoolean(StringableFilter), demandBoolean(), demandBoolean(StringableFilter)

requestBoolean

public boolean requestBoolean(StringableFilter f)
                       throws CancelledException
Returns a boolean extracted from the field using the optional model, with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
requestBoolean(), demandBoolean(StringableFilter), demandBoolean()

demandString

public String demandString()
Returns a String extracted from the field using the mandatory model.

See Also:
demandString(StringableFilter), requestString(), requestString(StringableFilter)

demandString

public String demandString(StringableFilter f)
Returns a String extracted from the field using the mandatory model, with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandString(), requestString(StringableFilter), requestString()

requestString

public String requestString()
                     throws CancelledException
Returns a String extracted from the field using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
requestString(StringableFilter), demandString(), demandString(StringableFilter)

requestString

public String requestString(StringableFilter f)
                     throws CancelledException
Returns a String extracted from the field using the optional model, with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
requestString(), demandString(StringableFilter), demandString()

demandColor

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.

See Also:
demandColor(StringableFilter), requestColor(), requestColor(StringableFilter)

demandColor

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.

Parameters:
f - the filter to use for the input operation
See Also:
demandColor(), requestColor(StringableFilter), requestColor()

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.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
requestColor(StringableFilter), demandColor(), demandColor(StringableFilter)

requestColor

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.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
requestColor(), demandColor(StringableFilter), demandColor()

demandBigInteger

public BigInteger demandBigInteger()
Returns a BigInteger extracted from the field using the mandatory model.

See Also:
demandBigInteger(StringableFilter), requestBigInteger(), requestBigInteger(StringableFilter)

demandBigInteger

public BigInteger demandBigInteger(StringableFilter f)
Returns a BigInteger extracted from the field using the mandatory model, with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandBigInteger(), requestBigInteger(StringableFilter), requestBigInteger()

requestBigInteger

public BigInteger requestBigInteger()
                             throws CancelledException
Returns a BigInteger extracted from the field using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
requestBigInteger(StringableFilter), demandBigInteger(), demandBigInteger(StringableFilter)

requestBigInteger

public BigInteger requestBigInteger(StringableFilter f)
                             throws CancelledException
Returns a BigInteger extracted from the field using the optional model, with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException - if the user cancelled the input operation
See Also:
requestBigInteger(), demandBigInteger(StringableFilter), demandBigInteger()

demandBigDecimal

public BigDecimal demandBigDecimal()
Returns a BigDecimal extracted from the field using the mandatory model.

See Also:
demandBigDecimal(StringableFilter), requestBigDecimal(), requestBigDecimal(StringableFilter)

demandBigDecimal

public BigDecimal demandBigDecimal(StringableFilter f)
Returns a BigDecimal extracted from the field using the mandatory model, with the given filter.

Parameters:
f - the filter to use for the input operation
See Also:
demandBigDecimal(), requestBigDecimal(StringableFilter), requestBigDecimal()

requestBigDecimal

public BigDecimal requestBigDecimal()
                             throws CancelledException
Returns a BigDecimal extracted from the field using the optional model.

Throws:
CancelledException - if the user cancelled the input operation
See Also:
requestBigDecimal(StringableFilter), demandBigDecimal(), demandBigDecimal(StringableFilter)

requestBigDecimal

public BigDecimal requestBigDecimal(StringableFilter f)
                             throws CancelledException
Returns a BigDecimal extracted from the field using the optional model, with the given filter.

Parameters:
f - the filter to use for the input operation
Throws:
CancelledException
See Also:
requestBigDecimal(), demandBigDecimal(StringableFilter), demandBigDecimal()