nl.coderight.jazz.form.field.selectable
Class ListSelectableField<V>
java.lang.Object
nl.coderight.jazz.form.FormField<V>
nl.coderight.jazz.form.FormControl<V>
nl.coderight.jazz.form.field.scrollable.ScrollableField<V>
nl.coderight.jazz.form.field.selectable.SelectableField<V>
nl.coderight.jazz.form.field.selectable.ListSelectableField<V>
- Direct Known Subclasses:
- ListField, LookupField, SelectField, SpinnerField, TableField
public abstract class ListSelectableField<V>
- extends SelectableField<V>
Base class for list Selectable fields.
| Methods inherited from class nl.coderight.jazz.form.field.selectable.SelectableField |
addFilter, dispose, filter, getBindID, getFilters, getRelationID, getSelectedIndex, getSelectID, getSelectionBackground, getSelectionCount, getSelectionForeground, getSortComparator, getSortID, getSortOrder, getValue, isSortingEnabled, locationToIndex, onChange, onFocusGained, onPopup, onSearchFinished, onSearchProgress, onSearchStart, onSelect, search, search, searchAll, setOnChangeEvent, setOnSelectAction, setOnSelectCondition, setOnSelectEvent, setOnSelectGroup, setRelationID, setSelectedIndex, setSelectID, setSelectionBackground, setSelectionForeground, setSortComparator, setSortID, setSortingEnabled, setSortOrder, setValue |
| Methods inherited from class nl.coderight.jazz.form.field.scrollable.ScrollableField |
getComponent, getFocusComponent, getPreferredSize, getPreferredViewportSize, getViewportSize, isOpaque, isScrollable, onViewportChanged, setBackground, setBackgroundImage, setBorder, setColumnHeader, setComponent, setComponent, setCorner, setEnabled, setForeground, setOpaque, setPreferredSize, setRowHeader, setScrollable, setScrollBarPolicy, setTitle |
| Methods inherited from class nl.coderight.jazz.form.FormField |
dispatchEvent, focusNextField, focusPreviousField, getBackground, getBorder, getCursor, getDataBinding, getForeground, getForm, getLabel, getParent, getToolTipText, isBindable, isChanged, isEnabled, isFocusable, isReadonly, isShowing, isValueChanged, isVisible, onClick, onDoubleClick, onFocusLost, onMouseEnter, onMouseLeave, setBindID, setChanged, setCursor, setDataBinding, setFocusable, setOnFocusGainedEvent, setOnFocusLostEvent, setPopupMenu, setReadonly, setToolTipText, setVisible, translate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListSelectableField
public ListSelectableField(String bindID,
String selectID)
getIndex
public int getIndex(V value)
- Specified by:
getIndex in class SelectableField<V>
getValue
protected V getValue(int index)
- Specified by:
getValue in class SelectableField<V>
getValueAt
protected Object getValueAt(String property,
int viewIndex)
setValueAt
protected void setValueAt(Object value,
String property,
int viewIndex)
getValueCount
public int getValueCount()
- Specified by:
getValueCount in class SelectableField<V>
getListOfValues
public List<V> getListOfValues()
- Specified by:
getListOfValues in class SelectableField<V>
setListOfValues
public void setListOfValues(List<V> values)
- Specified by:
setListOfValues in class SelectableField<V>
insert
public void insert(V value,
boolean select)
update
public void update(V value)
delete
public void delete(V value,
boolean select)
backupSelection
protected void backupSelection()
restoreSelection
protected void restoreSelection()
onRebuildStart
protected void onRebuildStart()
onRebuildProgress
protected void onRebuildProgress(int progress)
onRebuildFinished
protected void onRebuildFinished()
notifyDataChanged
protected abstract void notifyDataChanged()
sort
public void sort(String sortID,
SortOrder sortOrder)
- Specified by:
sort in class SelectableField<V>
createSortComparator
protected Comparator<V> createSortComparator()
- Specified by:
createSortComparator in class SelectableField<V>
getFilterCount
public int getFilterCount()
onFilterChanged
protected void onFilterChanged()
- Overrides:
onFilterChanged in class SelectableField<V>
Copyright 2010 CodeRight, All rights reserved.