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

Variable Index

 o cellRenderer
 o dataListener
 o dataModel
 o fallbackUI
 o fixedRowHeight
 o nCellsVisible
 o selectionModel
 o selectionPainted

Constructor Index

 o JListBox()
 o JListBox(ListDataModel)
 o JListBox(Object[])
 o JListBox(Vector)

Method Index

 o addSelectionInterval(int, int)
 o clearSelection()
 o createDataListener()
 o createDefaultCellRenderer()
 o createDefaultSelectionModel()
 o ensureIndexIsVisible(int)
 o getAnchorSelectionIndex()
 o getCellBounds(int, int)
 o getCellRenderer()
 o getFirstVisibleIndex()
 o getLastVisibleIndex()
 o getLeadSelectionIndex()
 o getMaxSelectionIndex()
 o getMinSelectionIndex()
 o getModel()
 o getNCellsVisible()
 o getSelectedIndex()
 o getSelectedIndices()
 o getSelectedValue()
 o getSelectedValues()
 o getSelectionModel()
 o getUI()
 o indexToLocation(int)
 o isFixedRowHeight()
 o isOpaque()
 o isSelectedIndex(int)
 o isSelectionEmpty()
 o isSelectionPainted()
Returns true if the JListBox is painting the selection for rows
 o locationToIndex(Point)
 o removeSelectionInterval(int, int)
 o setCellRenderer(ListCellRenderer)
 o setFixedRowHeight(boolean)
 o setListData(Object[])
 o setListData(Vector)
 o setModel(ListDataModel)
 o setNCellsVisible(int)
 o setSelectedIndex(int)
 o setSelectedIndices(int[])
 o setSelectedValue(Object)
 o setSelectedValue(Object, boolean)
 o setSelectionInterval(int, int)
 o setSelectionPainted(boolean)
Sets whether the JListBox is painting the selection for rows.
 o setUI(ListBoxUI)
 o updateUI()
Notification from the UIFactory that the L&F has changed.

Variables

 o fallbackUI
 protected static String fallbackUI
 o selectionModel
 protected ListSelectionModel selectionModel
 o dataModel
 protected ListDataModel dataModel
 o dataListener
 protected ListDataListener dataListener
 o cellRenderer
 protected ListCellRenderer cellRenderer
 o fixedRowHeight
 protected boolean fixedRowHeight
 o nCellsVisible
 protected int nCellsVisible
 o selectionPainted
 protected boolean selectionPainted

Constructors

 o JListBox
 public JListBox(ListDataModel x)
 o JListBox
 public JListBox(Object x[])
 o JListBox
 public JListBox(Vector x)
 o JListBox
 public JListBox()

Methods

 o getUI
 public ListBoxUI getUI()
 o setUI
 public void setUI(ListBoxUI ui)
 o updateUI
 public void updateUI()
Notification from the UIFactory that the L&F has changed.

Overrides:
updateUI in class JComponent
 o getNCellsVisible
 public int getNCellsVisible()
 o setNCellsVisible
 public void setNCellsVisible(int newValue)
 o getCellRenderer
 public ListCellRenderer getCellRenderer()
 o setCellRenderer
 public void setCellRenderer(ListCellRenderer newValue)
 o isFixedRowHeight
 public boolean isFixedRowHeight()
 o setFixedRowHeight
 public void setFixedRowHeight(boolean newValue)
 o locationToIndex
 public int locationToIndex(Point location)
 o indexToLocation
 public Point indexToLocation(int index)
 o getCellBounds
 public Rectangle getCellBounds(int index1,
                                int index2)
 o getFirstVisibleIndex
 public int getFirstVisibleIndex()
 o getLastVisibleIndex
 public int getLastVisibleIndex()
 o ensureIndexIsVisible
 public void ensureIndexIsVisible(int index)
 o getModel
 public ListDataModel getModel()
 o setModel
 public void setModel(ListDataModel newValue)
 o setListData
 public void setListData(Vector x)
 o setListData
 public void setListData(Object x[])
 o getSelectionModel
 public ListSelectionModel getSelectionModel()
 o getAnchorSelectionIndex
 public int getAnchorSelectionIndex()
 o getLeadSelectionIndex
 public int getLeadSelectionIndex()
 o getMinSelectionIndex
 public int getMinSelectionIndex()
 o getMaxSelectionIndex
 public int getMaxSelectionIndex()
 o isSelectedIndex
 public boolean isSelectedIndex(int index)
 o isSelectionEmpty
 public boolean isSelectionEmpty()
 o clearSelection
 public void clearSelection()
 o setSelectionInterval
 public void setSelectionInterval(int anchor,
                                  int lead)
 o addSelectionInterval
 public void addSelectionInterval(int anchor,
                                  int lead)
 o removeSelectionInterval
 public void removeSelectionInterval(int index0,
                                     int index1)
 o getSelectedIndices
 public int[] getSelectedIndices()
 o setSelectedIndices
 public void setSelectedIndices(int x[])
 o getSelectedValues
 public Object[] getSelectedValues()
 o getSelectedIndex
 public int getSelectedIndex()
 o setSelectedIndex
 public void setSelectedIndex(int i)
 o getSelectedValue
 public Object getSelectedValue()
 o setSelectedValue
 public void setSelectedValue(Object anObject,
                              boolean shouldScroll)
 o setSelectedValue
 public void setSelectedValue(Object anObject)
 o createDefaultCellRenderer
 protected ListCellRenderer createDefaultCellRenderer()
 o createDefaultSelectionModel
 protected ListSelectionModel createDefaultSelectionModel()
 o createDataListener
 protected ListDataListener createDataListener()
 o isSelectionPainted
 public boolean isSelectionPainted()
Returns true if the JListBox is painting the selection for rows

 o setSelectionPainted
 public void setSelectionPainted(boolean b)
Sets whether the JListBox is painting the selection for rows.

 o isOpaque
 public boolean isOpaque()
Overrides:
isOpaque in class JComponent

All Packages  Class Hierarchy  This Package  Previous  Next  Index