JIDE 3.5.15

com.jidesoft.grid
Class PropertyTableSearchable

java.lang.Object
  extended by com.jidesoft.swing.Searchable
      extended by com.jidesoft.swing.TableSearchable
          extended by com.jidesoft.grid.JideTableSearchable
              extended by com.jidesoft.grid.ContextSensitiveTableSearchable
                  extended by com.jidesoft.grid.TreeTableSearchable
                      extended by com.jidesoft.grid.PropertyTableSearchable
All Implemented Interfaces:
PropertyChangeListener, EventListener, TableModelListener

public class PropertyTableSearchable
extends TreeTableSearchable

PropertyTableSearchable is a special Searchable that implements Searchable that enables the search function in PropertyTable.

The only special attribute of PropertyTableSearchable is one called recursive. Since PropertyTable allows nested Property. If recursive is true, the search will be performed on all properties include children properties. If the child property is not visible, it will be made visible. If recursive is false, it will only search on the top level property and didn't even look at the children property.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jidesoft.swing.Searchable
Searchable.SearchField, Searchable.SearchPopup
 
Field Summary
 
Fields inherited from class com.jidesoft.swing.Searchable
_component, _componentListener, _focusListener, _keyListener, _matchCount, CLIENT_PROPERTY_SEARCHABLE, listenerList, PROPERTY_SEARCH_TEXT
 
Constructor Summary
PropertyTableSearchable(JTable table)
           
 
Method Summary
protected  String convertElementToString(Object item)
          Converts the element that returns from getElementAt() to string.
protected  Object getElementAt(int index)
          Gets the element at the specified index.
protected  int getElementCount()
          Gets the total element count in the component.
 
Methods inherited from class com.jidesoft.grid.TreeTableSearchable
getSelectedIndex, isRecursive, setRecursive, setSelectedIndex, tableChanged
 
Methods inherited from class com.jidesoft.grid.ContextSensitiveTableSearchable
getValueAt
 
Methods inherited from class com.jidesoft.grid.JideTableSearchable
isNonContiguousCellSelection
 
Methods inherited from class com.jidesoft.swing.TableSearchable
addTableSelection, getMainIndex, getSearchColumnIndices, installListeners, isActivateKey, isColumnSelectionAllowed, isFindNextKey, isFindPreviousKey, isRowSelectionAllowed, isSearchSelectedRows, isSelectedCellEditable, propertyChange, setMainIndex, setSearchColumnIndices, uninstallListeners
 
Methods inherited from class com.jidesoft.swing.Searchable
addPropertyChangeListener, addSearchableListener, adjustSelectedIndex, cancelHighlightAll, compare, compare, convertToString, createComponentListener, createFocusListener, createKeyListener, createSearchPopup, findAll, findFirst, findFromCursor, findLast, findNext, findPrevious, firePropertyChangeEvent, fireSearchableEvent, getBackground, getComponent, getCurrentIndex, getCursor, getElementAtAsString, getForeground, getMismatchForeground, getPopupLocation, getPopupLocationRelativeTo, getPopupTimeout, getResourceString, getSearchable, getSearchableListeners, getSearchableProvider, getSearchingDelay, getSearchingText, getSearchLabel, getWildcardSupport, hidePopup, highlightAll, isCaseSensitive, isCountMatch, isDeactivateKey, isFindFirstKey, isFindLastKey, isFromStart, isHeavyweightComponentEnabled, isHideSearchPopupOnEvent, isIncrementalSelectKey, isNavigationKey, isPopupVisible, isProcessModelChangeEvent, isRepeats, isReverseOrder, isSearchableListenerInstalled, isSelectAllKey, isWildcardEnabled, keyTypedOrPressed, removePropertyChangeListener, removeSearchableListener, reverseFindFromCursor, searchingTextEmpty, select, setBackground, setCaseSensitive, setCountMatch, setCursor, setCursor, setForeground, setFromStart, setHeavyweightComponentEnabled, setHideSearchPopupOnEvent, setMismatchForeground, setPopupLocation, setPopupLocationRelativeTo, setPopupTimeout, setProcessModelChangeEvent, setRepeats, setReverseOrder, setSearchableProvider, setSearchingDelay, setSearchLabel, setWildcardEnabled, setWildcardSupport, showPopup, textChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyTableSearchable

public PropertyTableSearchable(JTable table)
Method Detail

getElementCount

protected int getElementCount()
Description copied from class: Searchable
Gets the total element count in the component. Different concrete implementation could have different interpretation of the count. This is totally OK as long as it's consistent in all the methods. For example, the index parameter in other methods should be always a valid value within the total count.

Overrides:
getElementCount in class TreeTableSearchable
Returns:
the total element count.

getElementAt

protected Object getElementAt(int index)
Description copied from class: Searchable
Gets the element at the specified index. The element could be any data structure that internally used in the component. The convertElementToString method will give you a chance to convert the element to string which is used to compare with the string that user types in.

Overrides:
getElementAt in class TreeTableSearchable
Parameters:
index - the index
Returns:
the element at the specified index.

convertElementToString

protected String convertElementToString(Object item)
Description copied from class: Searchable
Converts the element that returns from getElementAt() to string.

Overrides:
convertElementToString in class TableSearchable
Parameters:
item - the element to be converted
Returns:
the string representing the element in the component.

JIDE 3.5.15