nl.coderight.jazz.form.field
Class ComboField<V>

java.lang.Object
  extended by nl.coderight.jazz.form.FormField<V>
      extended by nl.coderight.jazz.form.FormControl<V>
          extended by nl.coderight.jazz.form.field.scrollable.ScrollableField<V>
              extended by nl.coderight.jazz.form.field.selectable.SelectableField<V>
                  extended by nl.coderight.jazz.form.field.selectable.ListSelectableField<V>
                      extended by nl.coderight.jazz.form.field.SelectField<V>
                          extended by nl.coderight.jazz.form.field.ComboField<V>
All Implemented Interfaces:
ClipboardSupport, Editable, DataBindable<V>, DataSelectable<V>, Validation

public class ComboField<V>
extends SelectField<V>
implements Validation, Editable, ClipboardSupport

Implementation of a JComboBox.

See Also:
JComboBox, SelectField

Nested Class Summary
 
Nested classes/interfaces inherited from class nl.coderight.jazz.form.field.selectable.SelectableField
SelectableField.KeyTypeSearchListener
 
Nested classes/interfaces inherited from class nl.coderight.jazz.form.field.scrollable.ScrollableField
ScrollableField.ScrollBarCorner, ScrollableField.ScrollBarPolicy
 
Field Summary
 
Fields inherited from class nl.coderight.jazz.form.FormField
Config
 
Constructor Summary
ComboField(String bindID, String selectID)
           
 
Method Summary
 void copy()
           
 void cut()
           
 ValidationError getError()
           
 String getText()
           
 boolean hasFocus()
           
 boolean isEditable()
           
 boolean isValid()
           
 void paste()
           
 void setCopyAction(Action action)
           
 void setCutAction(Action action)
           
 void setEditable(boolean editable)
           
 void setFilter(InputFieldFilter filter)
           
 void setFormatter(InputFieldFormatter<String> formatter)
           
 void setInputPrompt(String text)
           
 void setLength(int length)
           
 void setMask(String mask)
           
 void setMask(String mask, boolean containsLiteralCharacters)
           
 void setMaxLength(int maxLength)
           
 void setOnChangeEvent(Event onChangeEvent)
           
 void setOverwriteMode(boolean overwrite)
           
 void setPasteAction(Action action)
           
 void setRequired(boolean required)
           
 void setRequiredMessage(Message message)
           
 void validate()
           
 
Methods inherited from class nl.coderight.jazz.form.field.SelectField
createField, getDisplayID, getField, getSelectedIndex, isScrollable, locationToIndex, notifyDataChanged, onPopup, onRebuildFinished, onRebuildStart, setDisplayID, setRenderer, setSelectedIndex
 
Methods inherited from class nl.coderight.jazz.form.field.selectable.ListSelectableField
backupSelection, createSortComparator, delete, delete, getData, getIndex, getValue, getValueAt, getValueCount, insert, insert, onFilterChanged, onRebuildProgress, restoreSelection, setData, setValueAt, sort, update
 
Methods inherited from class nl.coderight.jazz.form.field.selectable.SelectableField
addFilter, dispose, filter, getBindID, getFilters, getRelationID, getSelectID, getSelectionBackground, getSelectionCount, getSelectionForeground, getSortComparator, getSortID, getSortOrder, getValue, isSortingEnabled, onChange, onFocusGained, onSearchFinished, onSearchProgress, onSearchStart, onSelect, search, search, searchAll, setOnSelectAction, setOnSelectCondition, setOnSelectEvent, setOnSelectGroup, setRelationID, setSelectID, setSelectionBackground, setSelectionForeground, setSortComparator, setSortID, setSortingEnabled, setSortOrder, setValue
 
Methods inherited from class nl.coderight.jazz.form.field.scrollable.ScrollableField
getComponent, getFocusComponent, getPreferredSize, getViewportSize, isOpaque, onViewportChanged, setBackground, setBackgroundImage, setBorder, setColumnHeader, setComponent, setCorner, setEnabled, setForeground, setOpaque, setPreferredSize, setRowHeader, setScrollable, setScrollBarPolicy, setTitle
 
Methods inherited from class nl.coderight.jazz.form.FormControl
addField, addField, focus, focusField, focusNextField, focusPreviousField, getFields, registerKeyboardAction, setComponent, setLayout
 
Methods inherited from class nl.coderight.jazz.form.FormField
dispatchEvent, focusNextField, focusPreviousField, getBackground, getBorder, getCursor, getDataBinding, getForeground, getForm, getLabel, getParent, getToolTip, isBindable, isChanged, isEnabled, isFocusable, isReadonly, isShowing, isValueChanged, isVisible, onClick, onDoubleClick, onFocusLost, onMouseEnter, onMouseLeave, setBindID, setChanged, setCursor, setDataBinding, setFocusable, setOnFocusGainedEvent, setOnFocusLostEvent, setPopupMenu, setReadonly, setToolTip, setVisible, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.coderight.jazz.form.field.bindable.DataBindable
isReadonly
 

Constructor Detail

ComboField

public ComboField(String bindID,
                  String selectID)
Method Detail

setInputPrompt

public void setInputPrompt(String text)

hasFocus

public boolean hasFocus()
Overrides:
hasFocus in class FormControl<V>

setLength

public void setLength(int length)

setMaxLength

public void setMaxLength(int maxLength)

setMask

public void setMask(String mask)

setMask

public void setMask(String mask,
                    boolean containsLiteralCharacters)

setFilter

public void setFilter(InputFieldFilter filter)

setFormatter

public void setFormatter(InputFieldFormatter<String> formatter)

setOverwriteMode

public void setOverwriteMode(boolean overwrite)

setCopyAction

public void setCopyAction(Action action)

setCutAction

public void setCutAction(Action action)

setPasteAction

public void setPasteAction(Action action)

copy

public void copy()
Specified by:
copy in interface ClipboardSupport

cut

public void cut()
Specified by:
cut in interface ClipboardSupport

paste

public void paste()
Specified by:
paste in interface ClipboardSupport

getText

public String getText()

setRequired

public void setRequired(boolean required)

setRequiredMessage

public void setRequiredMessage(Message message)

validate

public void validate()
              throws ValidationException
Specified by:
validate in interface Validation
Throws:
ValidationException

isValid

public boolean isValid()
Specified by:
isValid in interface Validation

getError

public ValidationError getError()
Specified by:
getError in interface Validation

setOnChangeEvent

public void setOnChangeEvent(Event onChangeEvent)
Overrides:
setOnChangeEvent in class SelectableField<V>

isEditable

public boolean isEditable()
Specified by:
isEditable in interface Editable

setEditable

public void setEditable(boolean editable)
Specified by:
setEditable in interface Editable


Copyright 2010 CodeRight, All rights reserved.