com.swfm.mica.widgets
Class MiTableSelectionManager

java.lang.Object
  extended bycom.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

Field Summary
static int Mi_CELL_SELECTION_POLICY
           
static int Mi_COLUMN_SELECTION_POLICY
           
static int Mi_ITEM_END_CHANGE_SELECTION_MULTIPLE_ITEMS_ACTION
           
static int Mi_ITEM_START_CHANGE_SELECTION_MULTIPLE_ITEMS_ACTION
           
static int Mi_ROW_SELECTION_POLICY
           
     
Constructor Summary
MiTableSelectionManager(MiTable table)
           
 
Method Summary
 boolean activateItem(int row, int column)
           
 boolean activateItem(MiBounds cursor)
           
 void browseHorizontalEndItem()
           
 void browseHorizontalHomeItem()
           
 void browseHorizontalNextItem()
           
 void browseHorizontalPreviousItem()
           
 void browseItem(int row, int column)
           
 void browseItem(MiBounds cursor)
           
 void browseVerticalEndItem()
           
 void browseVerticalHomeItem()
           
 void browseVerticalNextItem()
           
 void browseVerticalPreviousItem()
           
 void clearBrowseForegroundColor()
           
 void clearSelectionForegroundColor()
           
 void deBrowseAll()
           
 void deSelectAll()
           
 void deSelectItem(int row, int column)
           
 void deSelectItem(MiTableCell cell)
           
 MiPart getBrowseBackgroundRect()
           
 int getBrowsedItemColumn()
           
 int getBrowsedItemRow()
           
 java.awt.Color getBrowseForegroundColor()
           
 int getMaximumNumberSelected()
           
 int getMinimumNumberSelected()
           
 int getNumberOfSelectedItems()
           
 MiTableCell getSelectedCell()
           
 MiTableCells getSelectedCells()
           
 int getSelectedColumn()
           
 boolean getSelectedItem(int[] row, int[] column)
           
 boolean getSelectedItems(int[] rows, int[] columns)
           
 int getSelectedRow()
           
 MiPart getSelectionBackgroundRect()
           
 java.awt.Color getSelectionForegroundColor()
           
 int getSelectionPolicy()
           
 boolean getUserSelectTogglesSelectionState()
           
 boolean isBrowsable()
           
 boolean isBrowsedItem(int row, int column)
           
 boolean isSelectedItem(int row, int column)
           
 boolean isSelectedItem(MiTableCell cell)
           
 boolean isSensitive()
           
 void selectAdditionalItem(MiBounds cursor)
           
 void selectAll()
           
 void selectBrowsedItem()
           
 void selectInterveningItems(MiBounds cursor)
           
 boolean selectItem(int row, int column)
           
 boolean selectItem(MiBounds cursor)
           
 boolean selectItem(MiTableCell cell)
           
 void setBrowsable(boolean flag)
           
 void setBrowseBackgroundRect(MiPart rect)
           
 void setBrowseForegroundColor(java.awt.Color color)
           
 void setMaximumNumberSelected(int max)
           
 void setMinimumNumberSelected(int min)
           
 void setSelectableTableContentSupplier(MiiSelectableTableContentSupplier vtable)
          Used by Virtual tables to manage selection of content not yet added to table
 void setSelectedCells(MiTableCells cells)
           
 void setSelectionBackgroundRect(MiPart rect)
           
 void setSelectionForegroundColor(java.awt.Color color)
           
 void setSelectionPolicy(int policy)
           
 void setUserSelectTogglesSelectionState(boolean flag)
           
 void toggleSelectItem(int row, int column)
           
 boolean toggleSelectItem(MiBounds cursor)
           
 void validateCellLocations()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MiTableSelectionManager

public MiTableSelectionManager(MiTable table)
Method Detail

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