|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiamondedge.swing.DsListItem
diamondedge.swing.DsListViewItem
public class DsListViewItem
An item in a DsListView control that contains the index of icons associated with it, text, and an array of strings representing subitems that are displayed in the details view.
Field Summary |
---|
Fields inherited from class diamondedge.swing.DsListItem |
---|
lastItemAdded, smallIcon, values |
Method Summary | |
---|---|
boolean |
ensureVisible()
Ensures a ListItem object is visible, scrolling the control if necessary. |
int |
getColumnCount()
Returns the number of columns of values in the DsListItem. |
int |
getIndex()
Returns the index of this DsListItem with in the DsListView |
Object |
getLargeIcon()
Returns the icon or the index/key of the icon that is used in the LARGE_ICON view. |
Icon |
getLargeIcon(IconList iconList)
Returns the icon that is used in the LARGE_ICON view. |
boolean |
isChecked()
Returns a value that determines whether a DsListItem object is checked. |
boolean |
isSelected()
Returns a value which determines if a DsListItem object is selected. |
void |
loadData()
Load data from the object stored in setData() into each cell. |
void |
setChecked(boolean checked)
Sets a value that determines whether a DsListItem object is checked. |
void |
setLargeIcon(Object indexOrKeyOrIcon)
Sets the index (Integer) or key (String) of an icon used in the LARGE_ICON view. |
void |
setSelected(boolean selected)
Sets a value which determines if a DsListItem object is selected. |
Methods inherited from class diamondedge.swing.DsListItem |
---|
addCell, createListCell, getCell, getCell, getCellValue, getData, getForeground, getKey, getSmallIcon, getSmallIcon, getText, getValue, indexOf, indexOf, isFontBold, removeCell, setCellValue, setData, setFontBold, setForeground, setKey, setSmallIcon, setText, setValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void loadData()
loadData
in class DsListItem
public Icon getLargeIcon(IconList iconList)
iconList
- List of icons used if the stored value was actually a String or Integer which represents the index into the icon listpublic Object getLargeIcon()
DsListItem.getSmallIcon(diamondedge.swing.IconList)
public void setLargeIcon(Object indexOrKeyOrIcon)
DsListItem.setSmallIcon(java.lang.Object)
public int getIndex()
public boolean isSelected()
public void setSelected(boolean selected)
public boolean isChecked()
public void setChecked(boolean checked)
public int getColumnCount()
public boolean ensureVisible()
|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |