All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.JListBox
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JListBox
- public class JListBox
- extends JComponent
-
cellRenderer
-
-
dataListener
-
-
dataModel
-
-
fallbackUI
-
-
fixedRowHeight
-
-
nCellsVisible
-
-
selectionModel
-
-
selectionPainted
-
-
JListBox()
-
-
JListBox(ListDataModel)
-
-
JListBox(Object[])
-
-
JListBox(Vector)
-
-
addSelectionInterval(int, int)
-
-
clearSelection()
-
-
createDataListener()
-
-
createDefaultCellRenderer()
-
-
createDefaultSelectionModel()
-
-
ensureIndexIsVisible(int)
-
-
getAnchorSelectionIndex()
-
-
getCellBounds(int, int)
-
-
getCellRenderer()
-
-
getFirstVisibleIndex()
-
-
getLastVisibleIndex()
-
-
getLeadSelectionIndex()
-
-
getMaxSelectionIndex()
-
-
getMinSelectionIndex()
-
-
getModel()
-
-
getNCellsVisible()
-
-
getSelectedIndex()
-
-
getSelectedIndices()
-
-
getSelectedValue()
-
-
getSelectedValues()
-
-
getSelectionModel()
-
-
getUI()
-
-
indexToLocation(int)
-
-
isFixedRowHeight()
-
-
isOpaque()
-
-
isSelectedIndex(int)
-
-
isSelectionEmpty()
-
-
isSelectionPainted()
- Returns true if the JListBox is painting the selection for rows
-
locationToIndex(Point)
-
-
removeSelectionInterval(int, int)
-
-
setCellRenderer(ListCellRenderer)
-
-
setFixedRowHeight(boolean)
-
-
setListData(Object[])
-
-
setListData(Vector)
-
-
setModel(ListDataModel)
-
-
setNCellsVisible(int)
-
-
setSelectedIndex(int)
-
-
setSelectedIndices(int[])
-
-
setSelectedValue(Object)
-
-
setSelectedValue(Object, boolean)
-
-
setSelectionInterval(int, int)
-
-
setSelectionPainted(boolean)
- Sets whether the JListBox is painting the selection for rows.
-
setUI(ListBoxUI)
-
-
updateUI()
- Notification from the UIFactory that the L&F
has changed.
fallbackUI
protected static String fallbackUI
selectionModel
protected ListSelectionModel selectionModel
dataModel
protected ListDataModel dataModel
dataListener
protected ListDataListener dataListener
cellRenderer
protected ListCellRenderer cellRenderer
fixedRowHeight
protected boolean fixedRowHeight
nCellsVisible
protected int nCellsVisible
selectionPainted
protected boolean selectionPainted
JListBox
public JListBox(ListDataModel x)
JListBox
public JListBox(Object x[])
JListBox
public JListBox(Vector x)
JListBox
public JListBox()
getUI
public ListBoxUI getUI()
setUI
public void setUI(ListBoxUI ui)
updateUI
public void updateUI()
- Notification from the UIFactory that the L&F
has changed.
- Overrides:
- updateUI in class JComponent
getNCellsVisible
public int getNCellsVisible()
setNCellsVisible
public void setNCellsVisible(int newValue)
getCellRenderer
public ListCellRenderer getCellRenderer()
setCellRenderer
public void setCellRenderer(ListCellRenderer newValue)
isFixedRowHeight
public boolean isFixedRowHeight()
setFixedRowHeight
public void setFixedRowHeight(boolean newValue)
locationToIndex
public int locationToIndex(Point location)
indexToLocation
public Point indexToLocation(int index)
getCellBounds
public Rectangle getCellBounds(int index1,
int index2)
getFirstVisibleIndex
public int getFirstVisibleIndex()
getLastVisibleIndex
public int getLastVisibleIndex()
ensureIndexIsVisible
public void ensureIndexIsVisible(int index)
getModel
public ListDataModel getModel()
setModel
public void setModel(ListDataModel newValue)
setListData
public void setListData(Vector x)
setListData
public void setListData(Object x[])
getSelectionModel
public ListSelectionModel getSelectionModel()
getAnchorSelectionIndex
public int getAnchorSelectionIndex()
getLeadSelectionIndex
public int getLeadSelectionIndex()
getMinSelectionIndex
public int getMinSelectionIndex()
getMaxSelectionIndex
public int getMaxSelectionIndex()
isSelectedIndex
public boolean isSelectedIndex(int index)
isSelectionEmpty
public boolean isSelectionEmpty()
clearSelection
public void clearSelection()
setSelectionInterval
public void setSelectionInterval(int anchor,
int lead)
addSelectionInterval
public void addSelectionInterval(int anchor,
int lead)
removeSelectionInterval
public void removeSelectionInterval(int index0,
int index1)
getSelectedIndices
public int[] getSelectedIndices()
setSelectedIndices
public void setSelectedIndices(int x[])
getSelectedValues
public Object[] getSelectedValues()
getSelectedIndex
public int getSelectedIndex()
setSelectedIndex
public void setSelectedIndex(int i)
getSelectedValue
public Object getSelectedValue()
setSelectedValue
public void setSelectedValue(Object anObject,
boolean shouldScroll)
setSelectedValue
public void setSelectedValue(Object anObject)
createDefaultCellRenderer
protected ListCellRenderer createDefaultCellRenderer()
createDefaultSelectionModel
protected ListSelectionModel createDefaultSelectionModel()
createDataListener
protected ListDataListener createDataListener()
isSelectionPainted
public boolean isSelectionPainted()
- Returns true if the JListBox is painting the selection for rows
setSelectionPainted
public void setSelectionPainted(boolean b)
- Sets whether the JListBox is painting the selection for rows.
isOpaque
public boolean isOpaque()
- Overrides:
- isOpaque in class JComponent
All Packages Class Hierarchy This Package Previous Next Index