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

public class CheckListField<V>
extends ListField<V>

Implementation of a JList with check boxes.


Nested Class Summary
 
Nested classes/interfaces inherited from class nl.coderight.jazz.form.field.ListField
ListField.ListOrientation
 
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
CheckListField(String bindID, String selectID)
           
 
Method Summary
 void delete(V value, boolean select)
           
 void deselect(int index)
           
 void deselect(int[] indices)
           
 void deselect(int startIndex, int endIndex)
           
 void deselectAll()
           
 int getSelectionCount()
           
 int[] getSelectionIndices()
           
 Selection.SelectionMode getSelectionMode()
           
protected  void notifyDataChanged()
           
protected  void onClick()
           
protected  void onFocusGained()
           
protected  void onFocusLost()
           
protected  void onSelect()
           
protected  void onViewportChanged()
           
 void select(int index)
           
 void select(int[] indices)
           
 void select(int startIndex, int endIndex)
           
 void selectAll()
           
 void setRowHeight(int rowHeight)
           
 void setSelectionMode(Selection.SelectionMode selectionMode)
           
 
Methods inherited from class nl.coderight.jazz.form.field.ListField
backupSelection, createField, getDisplayID, getField, getLayoutOrientation, getPreferredViewportSize, getRowHeight, getSelectedIndex, getSelectionValues, isAlternatingColorsEnabled, isSelectedIndex, isSelectionEnabled, locationToIndex, onDoubleClick, onEdit, restoreSelection, setAlternatingColorsEnabled, setDefaults, setDisplayID, setLayoutOrientation, setOnEditAction, setOnEditCondition, setOnEditEvent, setRenderer, setSelectedIndex, setSelectionBackground, setSelectionEnabled, setSelectionForeground, setSelectionValues, setVisibleRowCount
 
Methods inherited from class nl.coderight.jazz.form.field.selectable.ListSelectableField
createSortComparator, delete, getData, getIndex, getValue, getValueAt, getValueCount, insert, insert, onFilterChanged, onRebuildFinished, onRebuildProgress, onRebuildStart, 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, onPopup, onSearchFinished, onSearchProgress, onSearchStart, search, search, searchAll, setOnChangeEvent, setOnSelectAction, setOnSelectCondition, setOnSelectEvent, setOnSelectGroup, setRelationID, setSelectID, setSortComparator, setSortID, setSortingEnabled, setSortOrder, setValue
 
Methods inherited from class nl.coderight.jazz.form.field.scrollable.ScrollableField
getComponent, getFocusComponent, getPreferredSize, getViewportSize, isOpaque, isScrollable, 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, 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

CheckListField

public CheckListField(String bindID,
                      String selectID)
Method Detail

setRowHeight

public void setRowHeight(int rowHeight)
Overrides:
setRowHeight in class ListField<V>

getSelectionMode

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

setSelectionMode

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

getSelectionCount

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

getSelectionIndices

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

select

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

deselect

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

select

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

deselect

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

select

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

deselect

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

selectAll

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

deselectAll

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

delete

public void delete(V value,
                   boolean select)
Overrides:
delete in class ListSelectableField<V>

onSelect

protected void onSelect()
Overrides:
onSelect in class ListField<V>

onClick

protected void onClick()
Overrides:
onClick in class FormField<V>

onFocusGained

protected void onFocusGained()
Overrides:
onFocusGained in class SelectableField<V>

onFocusLost

protected void onFocusLost()
Overrides:
onFocusLost in class FormField<V>

onViewportChanged

protected void onViewportChanged()
Overrides:
onViewportChanged in class ScrollableField<V>

notifyDataChanged

protected void notifyDataChanged()
Overrides:
notifyDataChanged in class ListField<V>


Copyright 2010 CodeRight, All rights reserved.