com.swfm.mica.widgets
Class MiTableSelectionManager
java.lang.Object
com.swfm.mica.widgets.MiTableSelectionManager
- All Implemented Interfaces:
- MiiActionTypes, MiiBrowsableGrid, MiiTypes
- public class MiTableSelectionManager
- extends java.lang.Object
- implements MiiBrowsableGrid, MiiActionTypes, MiiTypes
- Version:
- %I% %G%
- Author:
- Michael L. Davis
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mi_ITEM_START_CHANGE_SELECTION_MULTIPLE_ITEMS_ACTION
public static final int Mi_ITEM_START_CHANGE_SELECTION_MULTIPLE_ITEMS_ACTION
Mi_ITEM_END_CHANGE_SELECTION_MULTIPLE_ITEMS_ACTION
public static final int Mi_ITEM_END_CHANGE_SELECTION_MULTIPLE_ITEMS_ACTION
Mi_CELL_SELECTION_POLICY
public static final int Mi_CELL_SELECTION_POLICY
- See Also:
- Constant Field Values
Mi_ROW_SELECTION_POLICY
public static final int Mi_ROW_SELECTION_POLICY
- See Also:
- Constant Field Values
Mi_COLUMN_SELECTION_POLICY
public static final int Mi_COLUMN_SELECTION_POLICY
- See Also:
- Constant Field Values
MiTableSelectionManager
public MiTableSelectionManager(MiTable table)
setSelectableTableContentSupplier
public void setSelectableTableContentSupplier(MiiSelectableTableContentSupplier vtable)
- Used by Virtual tables to manage selection of content not yet added to table
setSelectionPolicy
public void setSelectionPolicy(int policy)
getSelectionPolicy
public int getSelectionPolicy()
setBrowsable
public void setBrowsable(boolean flag)
setBrowseForegroundColor
public void setBrowseForegroundColor(java.awt.Color color)
getBrowseForegroundColor
public java.awt.Color getBrowseForegroundColor()
clearBrowseForegroundColor
public void clearBrowseForegroundColor()
setSelectionForegroundColor
public void setSelectionForegroundColor(java.awt.Color color)
getSelectionForegroundColor
public java.awt.Color getSelectionForegroundColor()
clearSelectionForegroundColor
public void clearSelectionForegroundColor()
setBrowseBackgroundRect
public void setBrowseBackgroundRect(MiPart rect)
getBrowseBackgroundRect
public MiPart getBrowseBackgroundRect()
setSelectionBackgroundRect
public void setSelectionBackgroundRect(MiPart rect)
getSelectionBackgroundRect
public MiPart getSelectionBackgroundRect()
setMinimumNumberSelected
public void setMinimumNumberSelected(int min)
getMinimumNumberSelected
public int getMinimumNumberSelected()
setMaximumNumberSelected
public void setMaximumNumberSelected(int max)
getMaximumNumberSelected
public int getMaximumNumberSelected()
setUserSelectTogglesSelectionState
public void setUserSelectTogglesSelectionState(boolean flag)
getUserSelectTogglesSelectionState
public boolean getUserSelectTogglesSelectionState()
getBrowsedItemRow
public int getBrowsedItemRow()
getBrowsedItemColumn
public int getBrowsedItemColumn()
isBrowsedItem
public boolean isBrowsedItem(int row,
int column)
isSelectedItem
public boolean isSelectedItem(int row,
int column)
getSelectedCell
public MiTableCell getSelectedCell()
getSelectedCells
public MiTableCells getSelectedCells()
- Returns:
- This is a reference to the internal list of selected cells
getSelectedRow
public int getSelectedRow()
getSelectedColumn
public int getSelectedColumn()
getSelectedItem
public boolean getSelectedItem(int[] row,
int[] column)
getSelectedItems
public boolean getSelectedItems(int[] rows,
int[] columns)
getNumberOfSelectedItems
public int getNumberOfSelectedItems()
selectItem
public boolean selectItem(MiTableCell cell)
isSelectedItem
public boolean isSelectedItem(MiTableCell cell)
selectItem
public boolean selectItem(int row,
int column)
setSelectedCells
public void setSelectedCells(MiTableCells cells)
toggleSelectItem
public void toggleSelectItem(int row,
int column)
deSelectItem
public void deSelectItem(int row,
int column)
deSelectItem
public void deSelectItem(MiTableCell cell)
selectAll
public void selectAll()
deSelectAll
public void deSelectAll()
- Specified by:
deSelectAll in interface MiiBrowsableGrid
activateItem
public boolean activateItem(int row,
int column)
browseItem
public void browseItem(int row,
int column)
validateCellLocations
public void validateCellLocations()
isBrowsable
public boolean isBrowsable()
- Specified by:
isBrowsable in interface MiiBrowsableGrid
isSensitive
public boolean isSensitive()
- Specified by:
isSensitive in interface MiiBrowsableGrid
browseItem
public void browseItem(MiBounds cursor)
- Specified by:
browseItem in interface MiiBrowsableGrid
browseVerticalPreviousItem
public void browseVerticalPreviousItem()
- Specified by:
browseVerticalPreviousItem in interface MiiBrowsableGrid
browseVerticalNextItem
public void browseVerticalNextItem()
- Specified by:
browseVerticalNextItem in interface MiiBrowsableGrid
browseHorizontalPreviousItem
public void browseHorizontalPreviousItem()
- Specified by:
browseHorizontalPreviousItem in interface MiiBrowsableGrid
browseHorizontalNextItem
public void browseHorizontalNextItem()
- Specified by:
browseHorizontalNextItem in interface MiiBrowsableGrid
browseVerticalHomeItem
public void browseVerticalHomeItem()
- Specified by:
browseVerticalHomeItem in interface MiiBrowsableGrid
browseVerticalEndItem
public void browseVerticalEndItem()
- Specified by:
browseVerticalEndItem in interface MiiBrowsableGrid
browseHorizontalHomeItem
public void browseHorizontalHomeItem()
- Specified by:
browseHorizontalHomeItem in interface MiiBrowsableGrid
browseHorizontalEndItem
public void browseHorizontalEndItem()
- Specified by:
browseHorizontalEndItem in interface MiiBrowsableGrid
deBrowseAll
public void deBrowseAll()
- Specified by:
deBrowseAll in interface MiiBrowsableGrid
selectBrowsedItem
public void selectBrowsedItem()
- Specified by:
selectBrowsedItem in interface MiiBrowsableGrid
selectAdditionalItem
public void selectAdditionalItem(MiBounds cursor)
- Specified by:
selectAdditionalItem in interface MiiBrowsableGrid
selectInterveningItems
public void selectInterveningItems(MiBounds cursor)
- Specified by:
selectInterveningItems in interface MiiBrowsableGrid
toggleSelectItem
public boolean toggleSelectItem(MiBounds cursor)
- Specified by:
toggleSelectItem in interface MiiBrowsableGrid
selectItem
public boolean selectItem(MiBounds cursor)
- Specified by:
selectItem in interface MiiBrowsableGrid
activateItem
public boolean activateItem(MiBounds cursor)
- Specified by:
activateItem in interface MiiBrowsableGrid