nl.coderight.jazz.form.field
Class SpinnerField<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.SpinnerField<V>
All Implemented Interfaces:
DataBindable<V>, DataSelectable<V>

public class SpinnerField<V>
extends ListSelectableField<V>

Implementation of a JSpinner.

See Also:
JSpinner

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
SpinnerField(String bindID, String selectID)
           
 
Method Summary
protected  JSpinner createField()
           
 String getDisplayID()
           
protected  JSpinner getField()
           
 int getSelectedIndex()
           
 boolean isScrollable()
           
 int locationToIndex(Point point)
           
protected  void notifyDataChanged()
           
protected  void onPopup(Point point)
           
 void setDisplayID(String displayID)
           
 void setSelectedIndex(int index)
           
 
Methods inherited from class nl.coderight.jazz.form.field.selectable.ListSelectableField
backupSelection, createSortComparator, delete, delete, getData, getIndex, getValue, getValueAt, getValueCount, insert, insert, onFilterChanged, onRebuildFinished, onRebuildProgress, onRebuildStart, 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, setOnChangeEvent, 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, hasFocus, 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

SpinnerField

public SpinnerField(String bindID,
                    String selectID)
Method Detail

createField

protected JSpinner createField()

getField

protected JSpinner getField()

getDisplayID

public String getDisplayID()

setDisplayID

public void setDisplayID(String displayID)

getSelectedIndex

public int getSelectedIndex()
Specified by:
getSelectedIndex in class SelectableField<V>

setSelectedIndex

public void setSelectedIndex(int index)
Specified by:
setSelectedIndex in class SelectableField<V>

isScrollable

public final boolean isScrollable()
Overrides:
isScrollable in class ScrollableField<V>

locationToIndex

public final int locationToIndex(Point point)
Specified by:
locationToIndex in class SelectableField<V>

onPopup

protected final void onPopup(Point point)
Overrides:
onPopup in class SelectableField<V>

notifyDataChanged

protected void notifyDataChanged()
Specified by:
notifyDataChanged in class ListSelectableField<V>


Copyright 2010 CodeRight, All rights reserved.