org.ChinaVO.FITSManager.FListView
Interface FListViewPosibility

All Known Implementing Classes:
FDetailView, FList

public interface FListViewPosibility


Method Summary
 void addFocusListener(java.awt.event.FocusListener l)
           
 void addInputMethodListener(java.awt.event.InputMethodListener l)
           
 void addItem(FListViewItemCell ic)
          add a new item into FListView.
 void addKeyListener(java.awt.event.KeyListener l)
           
 void addListSelectionListener(javax.swing.event.ListSelectionListener l)
           
 void addMouseListener(java.awt.event.MouseListener l)
           
 void addMouseMotionListener(java.awt.event.MouseMotionListener l)
           
 void addMouseWheelListener(java.awt.event.MouseWheelListener l)
           
 void clearData()
          remove all items.
 void clearSelection()
          clear selections.
 void getAdvandedData(FListViewDataRequestInterface request)
           
 int getItemCount()
           
 int getSelectedIndex()
          Returns the smallest selected cell index; the selection when only a single item is selected in the list.
 int[] getSelectedIndices()
          Get selected items' indexes.
 void removeItem(int index)
          remove a item by its index.
 void resetItemText(int index, java.lang.String text)
          Reset the text of item specify.
 void setValueAt(FListViewItemCell ic, int row, int column)
          Set value for the item.
 

Method Detail

getSelectedIndex

int getSelectedIndex()
Returns the smallest selected cell index; the selection when only a single item is selected in the list. When multiple items are selected, it is simply the smallest selected index. Returns -1 if there is no selection.

Returns:
the selected item's index

getSelectedIndices

int[] getSelectedIndices()
Get selected items' indexes.

Returns:
indexes

clearData

void clearData()
remove all items.


setValueAt

void setValueAt(FListViewItemCell ic,
                int row,
                int column)
Set value for the item.

Parameters:
ic - a FListViewItemCell.
row - row index in viewDetail, or index in viewCommon.
column - column index in viewDetail, 0 in viewCommon(won't be used).

addItem

void addItem(FListViewItemCell ic)
add a new item into FListView.

Parameters:
ic - a FListViewItemCell.

removeItem

void removeItem(int index)
remove a item by its index.

Parameters:
index - the item's index.

resetItemText

void resetItemText(int index,
                   java.lang.String text)
Reset the text of item specify.

Parameters:
index - index of the item.
text - new text

getAdvandedData

void getAdvandedData(FListViewDataRequestInterface request)

addMouseListener

void addMouseListener(java.awt.event.MouseListener l)

addMouseMotionListener

void addMouseMotionListener(java.awt.event.MouseMotionListener l)

addMouseWheelListener

void addMouseWheelListener(java.awt.event.MouseWheelListener l)

addKeyListener

void addKeyListener(java.awt.event.KeyListener l)

addFocusListener

void addFocusListener(java.awt.event.FocusListener l)

addInputMethodListener

void addInputMethodListener(java.awt.event.InputMethodListener l)

addListSelectionListener

void addListSelectionListener(javax.swing.event.ListSelectionListener l)

clearSelection

void clearSelection()
clear selections.


getItemCount

int getItemCount()