| ob.listbox.ListBox ob.listbox.SortableListBox
All known Subclasses: ob.listbox.SearchableListBox,
Method Summary | |
public synchronized void | addItem(String item) creates a new Item in the ListBox with the text you pass in. | public synchronized void | addItem(String item, int iImage) creates a new Item in the ListBox with the text and the image reference you
pass in.
Parameters: item - the text you wish to use for the ListBox value, as type String Parameters: iImage - the image reference value which refers to the ListBox image list. | public synchronized void | addItem(String item, int iImage, boolean bSort) creates a new item (row) in the ListBox with the text and image reference you pass in,
and can also automatically sort the column after you've inserted the item.
The sorting is done for the default column (column 0) based on the text you pass
in to be associated with the ListItem.
Parameters: item - the text you wish to use for the item value, as type String Parameters: iImage - the image reference value which refers to the ListBox image list. | public synchronized void | addItem(Object o) creates a new item (row) in the ListBox with the Object you pass in,
Parameters: item - the Object you wish to associate with the ListItem (row) you create Parameters: iImage - the image reference value which refers to the ListBox image list. | public synchronized void | addItem(Object o, int iImage) creates a new item (row) in the ListBox with the Object you pass in,
Parameters: item - the Object you wish to associate with the ListItem (row) you create Parameters: iImage - the image reference value which refers to the ListBox image list. | public synchronized void | addItem(Object o, int iImage, boolean bSort) creates a new item (row) in the ListBox with the text and image reference you pass in,
and can also automatically sort the column after you've inserted the item.
The sorting is done for the default column (column 0) based on the text you pass
in to be associated with the ListItem.
Parameters: item - the Object you wish to associate with the ListItem (row) you create Parameters: iImage - the image reference value which refers to the ListBox image list. | public synchronized void | addItem(ListItem item, int iImage) creates a new item (row) in the ListBox with the text and image reference you pass in,
and can also automatically sort the column after you've inserted the item.
The sorting is done for the default column (column 0) based on the text you pass
in to be associated with the ListItem.
Parameters: item - Parameters: iImage - the image reference value which refers to the ListBox image list. | public synchronized void | addItem(ListItem item) creates a new item (row) in the ListBox based on the ListItem reference you pass in. | public synchronized void | addItem(ListItem item, int iImage, boolean bSort) creates a new item (row) in the ListBox with the ListItem and image reference you pass in,
and can also automatically sort the column after you've inserted the item.
The sorting is done for the default column (column 0) based on the text you pass
in to be associated with the ListItem.
Parameters: item - the new item (row) to insert, as type ListItem Parameters: iImage - the image reference value which refers to the ListBox image list. | public synchronized void | addItem(String item, Font font) | public synchronized void | addItem(String item, Font font, int iImage) creates a new item (row) in the ListBox with the text and image reference you pass in,
and can also include a font to render the text within the ListItem.
Parameters: item - text to use with the ListItem as type String Parameters: font - the font you want to use with the ListItem Parameters: iImage - the image reference value which refers to the ListBox image list. | public synchronized void | addItem(String item, Font font, int iImage, boolean bSort) creates a new item (row) in the ListBox with the text and image reference you pass in,
and can also automatically sort the column after you've inserted the item.
The sorting is done for the default column (column 0) based on the text you pass
in to be associated with the ListItem.
Parameters: item - the text you wish to associate with the default column of the row Parameters: font - the font you wish to use as a default for the row Parameters: iImage - the image reference value which refers to the ListBox image list. | public void | draw(Graphics g) | public boolean | isRoveMode() returns whether the SortableListBox is in rove mode or not. | public void | moveItems(Object[] items, int targetIndex) | protected void | onHitColumnHeader(int nCol) | protected void | onMoveOverItem(int x, int y) | protected int | partition(int low, int high, int nCol) | protected int | partitionIntegers(int low, int high, int nCol) | public void | quicksort(int low, int high, int nCol) | public void | quicksortInteger(int low, int high, int nCol) | public void | reverse() reverses the desired column. | public void | setColumnIntegerSort(int nCol, boolean bIntSort) sorts a column based on its value. | public void | setRoveMode(boolean bRove) sets whether rove mode is enabled or not. | public void | setSort(boolean b) | public void | sort() | public void | sort(int nCol) | public void | swap(int a, int b) |
m_bHitHeader | boolean m_bHitHeader(Code) | | |
m_bRoveModeEnabled | boolean m_bRoveModeEnabled(Code) | | |
m_nColumnSorted | protected int m_nColumnSorted(Code) | | |
m_nOldOver | int m_nOldOver(Code) | | |
SortableListBox | public SortableListBox(boolean bMultipleSelections)(Code) | | Constructor for SortableListBox
Parameters: bMultipleSelections - true if multiple selections are enabled, otherwise false |
addItem | public synchronized void addItem(String item)(Code) | | creates a new Item in the ListBox with the text you pass in.
Parameters: item - the text you wish to use for the ListBox value as type String |
addItem | public synchronized void addItem(String item, int iImage)(Code) | | creates a new Item in the ListBox with the text and the image reference you
pass in.
Parameters: item - the text you wish to use for the ListBox value, as type String Parameters: iImage - the image reference value which refers to the ListBox image list. You needto keep track of which integers correspond to which Images that are stored. |
addItem | public synchronized void addItem(String item, int iImage, boolean bSort)(Code) | | creates a new item (row) in the ListBox with the text and image reference you pass in,
and can also automatically sort the column after you've inserted the item.
The sorting is done for the default column (column 0) based on the text you pass
in to be associated with the ListItem.
Parameters: item - the text you wish to use for the item value, as type String Parameters: iImage - the image reference value which refers to the ListBox image list. You needto keep track of which integers correspond to which Images that are stored. Parameters: bSort - true if you wish to sort, otherwise false. |
addItem | public synchronized void addItem(Object o)(Code) | | creates a new item (row) in the ListBox with the Object you pass in,
Parameters: item - the Object you wish to associate with the ListItem (row) you create Parameters: iImage - the image reference value which refers to the ListBox image list. You needto keep track of which integers correspond to which Images that are stored. Parameters: bSort - true if you wish to sort, otherwise false. |
addItem | public synchronized void addItem(Object o, int iImage)(Code) | | creates a new item (row) in the ListBox with the Object you pass in,
Parameters: item - the Object you wish to associate with the ListItem (row) you create Parameters: iImage - the image reference value which refers to the ListBox image list. You needto keep track of which integers correspond to which Images that are stored. |
addItem | public synchronized void addItem(Object o, int iImage, boolean bSort)(Code) | | creates a new item (row) in the ListBox with the text and image reference you pass in,
and can also automatically sort the column after you've inserted the item.
The sorting is done for the default column (column 0) based on the text you pass
in to be associated with the ListItem.
Parameters: item - the Object you wish to associate with the ListItem (row) you create Parameters: iImage - the image reference value which refers to the ListBox image list. You needto keep track of which integers correspond to which Images that are stored. Parameters: bSort - true if you wish to sort, otherwise false. |
addItem | public synchronized void addItem(ListItem item, int iImage)(Code) | | creates a new item (row) in the ListBox with the text and image reference you pass in,
and can also automatically sort the column after you've inserted the item.
The sorting is done for the default column (column 0) based on the text you pass
in to be associated with the ListItem.
Parameters: item - Parameters: iImage - the image reference value which refers to the ListBox image list. You needto keep track of which integers correspond to which Images that are stored. Parameters: bSort - true if you wish to sort, otherwise false. |
addItem | public synchronized void addItem(ListItem item)(Code) | | creates a new item (row) in the ListBox based on the ListItem reference you pass in.
The ListItem is added to the end of all the other rows.
Parameters: item - the ListItem you wish to insert See Also: ob.listbox.ListItem |
addItem | public synchronized void addItem(ListItem item, int iImage, boolean bSort)(Code) | | creates a new item (row) in the ListBox with the ListItem and image reference you pass in,
and can also automatically sort the column after you've inserted the item.
The sorting is done for the default column (column 0) based on the text you pass
in to be associated with the ListItem.
Parameters: item - the new item (row) to insert, as type ListItem Parameters: iImage - the image reference value which refers to the ListBox image list. You needto keep track of which integers correspond to which Images that are stored. Parameters: bSort - true if you wish to sort, otherwise false. See Also: ob.listbox.ListItem |
addItem | public synchronized void addItem(String item, Font font)(Code) | | creates a new item (row) in the ListBox with the text you pass in,
and uses the Font you pass in to display the item
Parameters: item - Parameters: font - the font you want to use with the ListItem See Also: ob.listbox.ListItem |
addItem | public synchronized void addItem(String item, Font font, int iImage)(Code) | | creates a new item (row) in the ListBox with the text and image reference you pass in,
and can also include a font to render the text within the ListItem.
Parameters: item - text to use with the ListItem as type String Parameters: font - the font you want to use with the ListItem Parameters: iImage - the image reference value which refers to the ListBox image list. You needto keep track of which integers correspond to which Images that are stored. See Also: ob.listbox.ListItem |
addItem | public synchronized void addItem(String item, Font font, int iImage, boolean bSort)(Code) | | creates a new item (row) in the ListBox with the text and image reference you pass in,
and can also automatically sort the column after you've inserted the item.
The sorting is done for the default column (column 0) based on the text you pass
in to be associated with the ListItem.
Parameters: item - the text you wish to associate with the default column of the row Parameters: font - the font you wish to use as a default for the row Parameters: iImage - the image reference value which refers to the ListBox image list. You needto keep track of which integers correspond to which Images that are stored. Parameters: bSort - true if you wish to sort, otherwise false. |
isRoveMode | public boolean isRoveMode()(Code) | | returns whether the SortableListBox is in rove mode or not.
true if rove mode, otherwise false |
moveItems | public void moveItems(Object[] items, int targetIndex)(Code) | | |
onHitColumnHeader | protected void onHitColumnHeader(int nCol)(Code) | | |
onMoveOverItem | protected void onMoveOverItem(int x, int y)(Code) | | |
partition | protected int partition(int low, int high, int nCol)(Code) | | |
partitionIntegers | protected int partitionIntegers(int low, int high, int nCol)(Code) | | |
quicksort | public void quicksort(int low, int high, int nCol)(Code) | | quicksort routine for sorting
|
quicksortInteger | public void quicksortInteger(int low, int high, int nCol)(Code) | | quicksort routine for Integer types
|
reverse | public void reverse()(Code) | | reverses the desired column.
NOTE: does not reverse sort -- list must already be
sorted if reverse sort is desired.
|
setColumnIntegerSort | public void setColumnIntegerSort(int nCol, boolean bIntSort)(Code) | | sorts a column based on its value. You can specify whether you want
to sort by String type or by integer type. If sorting by integer type,
the String type stored in the column is automatically converted to an
int type when calculating the sort.
Parameters: nCol - which column to sort Parameters: bIntSort - true if you wish to sort by integer type, otherwise false andsearching will be done by String type. |
setRoveMode | public void setRoveMode(boolean bRove)(Code) | | sets whether rove mode is enabled or not. "Rove" mode describes a mode
of selection where the selection of listbox items is tied to the motion
of the mouse in addition to mouse clicks and keyboard selection. The
"rove" mode is typically used in conjunction with combobox-type controls.
Parameters: bRove - true if rove is enabled, otherwise false |
setSort | public void setSort(boolean b)(Code) | | sets whether sorting is possible or not
Parameters: b - true if sorting is allowed, otherwise false |
sort | public void sort()(Code) | | default sort method sorts column 0
|
sort | public void sort(int nCol)(Code) | | sorts based on the column you pass in
Parameters: nCol - which column you want to sort on |
swap | public void swap(int a, int b)(Code) | | |
Methods inherited from ob.listbox.ListBox | public void actionPerformed(ActionEvent e)(Code)(Java Doc) public void addActionListener(ActionListener l)(Code)(Java Doc) public synchronized void addItem(String item, boolean bRepaint)(Code)(Java Doc) public synchronized void addItem(String item)(Code)(Java Doc) public synchronized void addItem(String item, int iImage, boolean bRepaint)(Code)(Java Doc) public synchronized void addItem(Object o)(Code)(Java Doc) public synchronized void addItem(Object o, boolean bRepaint)(Code)(Java Doc) public synchronized void addItem(Object o, int iImage, boolean bRepaint)(Code)(Java Doc) public synchronized void addItem(ListItem item, boolean bRepaint)(Code)(Java Doc) public synchronized void addItem(ListItem item)(Code)(Java Doc) public synchronized void addItem(ListItem item, int iImage, boolean bRepaint)(Code)(Java Doc) public synchronized void addItem(String item, Font font)(Code)(Java Doc) public synchronized void addItem(String item, Font font, int iImage)(Code)(Java Doc) public void addItemListener(ItemListener l)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public synchronized void addSubItem(int item, String subitem)(Code)(Java Doc) public synchronized void addSubItem(int item, String subitem, boolean bShowSubItem)(Code)(Java Doc) public int calcItemsInRange(int cyRange, int nStartItem, boolean bDown)(Code)(Java Doc) public int calcRangeHeight(int nFirst, int nLast, boolean bInclusive)(Code)(Java Doc) protected void changeItemText()(Code)(Java Doc) public synchronized void clear()(Code)(Java Doc) public int countItems()(Code)(Java Doc) public ListItem createNewItem()(Code)(Java Doc) public synchronized void delItem(int nItem)(Code)(Java Doc) public synchronized void delItems(int start, int end)(Code)(Java Doc) public synchronized boolean deleteItem(int nItem)(Code)(Java Doc) public synchronized boolean deleteItem(int nItem, boolean bUpdate)(Code)(Java Doc) public synchronized boolean deleteItem(int nItem, int cCount)(Code)(Java Doc) public synchronized boolean deleteItem(int nItem, int cCount, boolean bUpdate)(Code)(Java Doc) public synchronized void deleteItems(int start, int end)(Code)(Java Doc) public synchronized void deselect(int index)(Code)(Java Doc) public synchronized void deselectAll()(Code)(Java Doc) public synchronized void deselectAll(boolean bUpdate)(Code)(Java Doc) public synchronized void doLayout()(Code)(Java Doc) protected void doubleClickEvent(int itemHit)(Code)(Java Doc) public void draw(Graphics g)(Code)(Java Doc) public void drawColumnLines(Graphics g)(Code)(Java Doc) protected void drawDottedLine(Graphics g, int x1, int y1, int x2, int y2)(Code)(Java Doc) protected void drawDottedRect(Graphics g, int x1, int y1, int width, int height)(Code)(Java Doc) public void drawFocusRect(Graphics g, int x, int y, int w, int h)(Code)(Java Doc) public void drawInvalidItems(Graphics g)(Code)(Java Doc) public void drawItem(Graphics g)(Code)(Java Doc) public void drawItemLines(Graphics g, Rectangle rcRow)(Code)(Java Doc) public void drawSubItem(Graphics g)(Code)(Java Doc) protected void drawTargetHighLight(Graphics g)(Code)(Java Doc) protected void editItem()(Code)(Java Doc) public boolean getAutoWrap()(Code)(Java Doc) public int getColumnHeaderHeight()(Code)(Java Doc) protected int getColumnHit(int xPos)(Code)(Java Doc) public Font getDefaultFont()(Code)(Java Doc) public int getDottedLineFill()(Code)(Java Doc) public int getDottedLineSpace()(Code)(Java Doc) public int getDropTargetItem()(Code)(Java Doc) public Color getHighlightTextBgColor()(Code)(Java Doc) public Color getHighlightTextColor()(Code)(Java Doc) public boolean getHilightSubItems()(Code)(Java Doc) protected int getImageIndex(int imageID)(Code)(Java Doc) public Image getImageList(int imageID)(Code)(Java Doc) public int getIndex(ListItem pItem)(Code)(Java Doc) public Rectangle getInsideRect()(Code)(Java Doc) public Object getItem(int index)(Code)(Java Doc) public ListItem getItemAt(int index)(Code)(Java Doc) public int getItemCount()(Code)(Java Doc) public int getItemImage(ListItem item)(Code)(Java Doc) public String[] getItems()(Code)(Java Doc) public int getLastFullyVisibleItem()(Code)(Java Doc) public int getLastVisibleRow()(Code)(Java Doc) public int getLeftIndent()(Code)(Java Doc) public int getLineSpacing()(Code)(Java Doc) protected Point getLogicalSize()(Code)(Java Doc) protected int getMaxLeftCol()(Code)(Java Doc) protected int getMaxTopRow()(Code)(Java Doc) public boolean getMultipleSelections()(Code)(Java Doc) protected int getPosFromCol(int nCol)(Code)(Java Doc) public ListItem getSelected()(Code)(Java Doc) protected int getSelected(int x1, int y1)(Code)(Java Doc) public synchronized int getSelectedIndex()(Code)(Java Doc) public synchronized int[] getSelectedIndexes()(Code)(Java Doc) public String getSelectedItem()(Code)(Java Doc) public synchronized Object[] getSelectedItems()(Code)(Java Doc) public ListItem getSelectedListItem()(Code)(Java Doc) public Object[] getSelectedObjects()(Code)(Java Doc) protected int getTarget(int x, int y)(Code)(Java Doc) public Color getTextColor()(Code)(Java Doc) public int getTextIndent()(Code)(Java Doc) public int getTopIndent()(Code)(Java Doc) public boolean insertColumn(int nCol, Column pColNew, boolean bUpdate)(Code)(Java Doc) public boolean insertColumn(int nCol, String strHeader, int fmt, int widthCol, int iSubItem, boolean bUpdate)(Code)(Java Doc) public synchronized void insertItem(int nIndex, ListItem item)(Code)(Java Doc) public boolean isColumnHeader()(Code)(Java Doc) public boolean isFocusTraversable()(Code)(Java Doc) public boolean isHeaderCtrlEnabled()(Code)(Java Doc) public boolean isOverlapEditMode()(Code)(Java Doc) protected boolean isRoot(int index)(Code)(Java Doc) public synchronized boolean isSelected(int index)(Code)(Java Doc) public boolean isShowDotRect()(Code)(Java Doc) protected int itemsThisPage(Graphics g)(Code)(Java Doc) protected int measureItem(Graphics g)(Code)(Java Doc) public int measureItem(int nItem, Graphics g)(Code)(Java Doc) protected int measureSubItem(Graphics g)(Code)(Java Doc) public void modifySubItem(int item, int subitem, String newSubitem)(Code)(Java Doc) protected boolean mouseDown(MouseEvent e, int x, int y)(Code)(Java Doc) protected boolean mouseDrag(MouseEvent e, int x, int y)(Code)(Java Doc) protected boolean mouseExit(MouseEvent e, int x, int y)(Code)(Java Doc) protected boolean mouseMove(MouseEvent e, int x, int y)(Code)(Java Doc) protected boolean mouseUp(MouseEvent e, int x, int y)(Code)(Java Doc) public void moveItems(Object[] items, int targetIndex)(Code)(Java Doc) protected void onDropAction()(Code)(Java Doc) protected void onEndTracking(int nCol, int x)(Code)(Java Doc) protected void onHitColumnHeader(int nCol)(Code)(Java Doc) protected void onLeftColChanged(int nCol)(Code)(Java Doc) protected void onMoveOverItem(int x, int y)(Code)(Java Doc) protected void onMoveTracking(int nCol, int x)(Code)(Java Doc) protected boolean onStartTracking(int nCol)(Code)(Java Doc) protected void onTopRowChanged(int nRow)(Code)(Java Doc) public void printDragItem(Graphics g)(Code)(Java Doc) protected void processActionEvent(ActionEvent e)(Code)(Java Doc) protected void processEvent(AWTEvent e)(Code)(Java Doc) protected void processFocusEvent(FocusEvent e)(Code)(Java Doc) protected void processItemEvent(ItemEvent e)(Code)(Java Doc) protected void processKeyEvent(KeyEvent e)(Code)(Java Doc) public void reMeasureAllItems()(Code)(Java Doc) public void removeActionListener(ActionListener l)(Code)(Java Doc) public void removeItemListener(ItemListener l)(Code)(Java Doc) public synchronized void replaceItem(Object newValue, int index)(Code)(Java Doc) public void scrollHorz(int nPixels)(Code)(Java Doc) public void scrollToView(int nRow, int nDirection)(Code)(Java Doc) public void scrollToView(int nRow)(Code)(Java Doc) public void scrollVert(int nScrollItems)(Code)(Java Doc) public void scrollVert(int nScrollItems, boolean bFromBottom)(Code)(Java Doc) public synchronized void select(int index, boolean bUpdate)(Code)(Java Doc) protected synchronized void select(int index, boolean bUpdate, boolean bScroll)(Code)(Java Doc) public synchronized void select(int index)(Code)(Java Doc) public void setAllowDelete(boolean bAllowDelete)(Code)(Java Doc) public void setAutoWrap(boolean bWrap)(Code)(Java Doc) public void setColumnHeader(boolean bHeaders)(Code)(Java Doc) public void setColumnHeaderHeight(int nHeight)(Code)(Java Doc) public void setColumnLines(boolean bDraw)(Code)(Java Doc) public void setColumnText(int nCol, String text)(Code)(Java Doc) public void setColumnWidth(int nCol, int nWidth)(Code)(Java Doc) public void setDefaultFont(Font font)(Code)(Java Doc) public void setDottedLineFill(int nFill)(Code)(Java Doc) public void setDottedLineSpace(int nSpace)(Code)(Java Doc) public void setDragDrop(boolean bAllowDrag)(Code)(Java Doc) public void setDragDropImage(Image image)(Code)(Java Doc) public void setDrawDragImage(boolean bShowImage)(Code)(Java Doc) public void setEditMode(boolean bAllowEdit)(Code)(Java Doc) public void setGridLineColor(Color c)(Code)(Java Doc) public void setGridLineStyle(int style)(Code)(Java Doc) public void setGridLines(boolean bDraw)(Code)(Java Doc) public void setHighlightTextBgColor(Color c)(Code)(Java Doc) public void setHighlightTextColor(Color c)(Code)(Java Doc) public void setHilightSubItems(boolean bHighlight)(Code)(Java Doc) public int setImageList(Image image)(Code)(Java Doc) public void setImageList(Image image, int imageID)(Code)(Java Doc) public void setItemLines(boolean bDraw)(Code)(Java Doc) public synchronized void setItems(String[] its)(Code)(Java Doc) public void setLeftIndent(int nIndent)(Code)(Java Doc) public void setLineSpacing(int nSpace)(Code)(Java Doc) public void setMultipleSelections(boolean bMultipleSelections)(Code)(Java Doc) public void setOverlapEditMode(boolean bOverlap)(Code)(Java Doc) public void setShowDotRect(boolean bShowDotRect)(Code)(Java Doc) public void setTextColor(Color color)(Code)(Java Doc) public void setTextIndent(int nIndent)(Code)(Java Doc) public void setTopIndent(int nIndent)(Code)(Java Doc) public void updateScrollbar()(Code)(Java Doc)
|
|
|