com.ezware.oxbow.swingbits.list
Interface ICheckListModel<T>

All Superinterfaces:
ListModel
All Known Implementing Classes:
ActionCheckListModel, DefaultCheckListModel

public interface ICheckListModel<T>
extends ListModel


Method Summary
 void filter(String filter, IObjectToStringTranslator translator, CheckListFilterType filterType)
          Allows filtered view.
 Collection<T> getCheckedItems()
          Returns a collections of checked items
 boolean isCheckedIndex(int index)
          Returns the check state of the element at specified position
 void setCheckedIndex(int index, boolean value)
          Sets the check state of the element at specified position
 void setCheckedItems(Collection<T> items)
          Sets checked items
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
 

Method Detail

isCheckedIndex

boolean isCheckedIndex(int index)
Returns the check state of the element at specified position

Parameters:
index - element index
Returns:
true if element at specified position is checked
Throws:
IndexOutOfBoundsException - if index is out of range

setCheckedIndex

void setCheckedIndex(int index,
                     boolean value)
Sets the check state of the element at specified position

Parameters:
index - element index
value -
Throws:
IndexOutOfBoundsException - if index is out of range

getCheckedItems

Collection<T> getCheckedItems()
Returns a collections of checked items

Returns:

setCheckedItems

void setCheckedItems(Collection<T> items)
Sets checked items

Parameters:
items -

filter

void filter(String filter,
            IObjectToStringTranslator translator,
            CheckListFilterType filterType)
Allows filtered view. Setting empty or null filter will clear filter and show all items

Parameters:
filter - filter string
translator - object to string translator to aid the search


Copyright © 2011. All Rights Reserved.