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

public class CheckSelectField<V>
extends SelectField<V>
implements Selection<V>


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
 
Nested classes/interfaces inherited from interface nl.coderight.jazz.form.selection.Selection
Selection.SelectionMode
 
Field Summary
 
Fields inherited from class nl.coderight.jazz.form.FormField
Config
 
Constructor Summary
CheckSelectField(String bindID, String selectID)
           
 
Method Summary
protected  ComboBoxUI createComboUI(JComboBox combo, nl.coderight.jazz.form.field.CheckSelectField.CheckListPopup popup)
           
protected  JComboBox createField()
           
 void deselect(int index)
           
 void deselect(int[] indices)
           
 void deselect(int startIndex, int endIndex)
           
 void deselectAll()
           
 int getSelectionCount()
           
 int[] getSelectionIndices()
           
 Selection.SelectionMode getSelectionMode()
           
 List<V> getSelectionValues()
           
 void select(int index)
           
 void select(int[] indices)
           
 void select(int startIndex, int endIndex)
           
 void selectAll()
           
 void setRenderer(ListCellRenderer renderer)
           
 void setSelectionMode(Selection.SelectionMode selectionMode)
           
 void setSelectionValues(List<V> values)
           
 
Methods inherited from class nl.coderight.jazz.form.field.SelectField
getDisplayID, getField, getSelectedIndex, isScrollable, locationToIndex, notifyDataChanged, onPopup, onRebuildFinished, onRebuildStart, setDisplayID, 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, 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

CheckSelectField

public CheckSelectField(String bindID,
                        String selectID)
Method Detail

createField

protected JComboBox createField()
Overrides:
createField in class SelectField<V>

setRenderer

public final void setRenderer(ListCellRenderer renderer)
Overrides:
setRenderer in class SelectField<V>

getSelectionMode

public Selection.SelectionMode getSelectionMode()
Specified by:
getSelectionMode in interface Selection<V>

setSelectionMode

public void setSelectionMode(Selection.SelectionMode selectionMode)
Specified by:
setSelectionMode in interface Selection<V>

getSelectionCount

public int getSelectionCount()
Specified by:
getSelectionCount in interface Selection<V>
Overrides:
getSelectionCount in class SelectableField<V>

getSelectionIndices

public int[] getSelectionIndices()
Specified by:
getSelectionIndices in interface Selection<V>

select

public void select(int index)
Specified by:
select in interface Selection<V>

deselect

public void deselect(int index)
Specified by:
deselect in interface Selection<V>

select

public void select(int startIndex,
                   int endIndex)
Specified by:
select in interface Selection<V>

deselect

public void deselect(int startIndex,
                     int endIndex)
Specified by:
deselect in interface Selection<V>

select

public void select(int[] indices)
Specified by:
select in interface Selection<V>

deselect

public void deselect(int[] indices)
Specified by:
deselect in interface Selection<V>

selectAll

public void selectAll()
Specified by:
selectAll in interface Selection<V>

deselectAll

public void deselectAll()
Specified by:
deselectAll in interface Selection<V>

getSelectionValues

public List<V> getSelectionValues()
Specified by:
getSelectionValues in interface Selection<V>

setSelectionValues

public void setSelectionValues(List<V> values)
Specified by:
setSelectionValues in interface Selection<V>

createComboUI

protected ComboBoxUI createComboUI(JComboBox combo,
                                   nl.coderight.jazz.form.field.CheckSelectField.CheckListPopup popup)


Copyright 2010 CodeRight, All rights reserved.