All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.BasicListView

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.basic.BasicListView

public class BasicListView
extends JComponent
implements LayoutManager

Variable Index

 o dataL
 o defaultRowBackground
 o defaultRowForeground
 o hasFocus
 o inputL
 o leadRowHighlight
 o listbox
 o preferredSize
 o propertyL
 o rendererPane
 o rowHeight
 o rowHeights
 o rowMargins
 o selectedRowBackground
 o selectedRowForeground
 o selectionL
 o updateLayoutNeeded

Constructor Index

 o BasicListView(JListBox)

Method Index

 o addLayoutComponent(String, Component)
 o addListBoxListeners()
 o convertRowToY(int)
 o convertYToRow(int)
 o createDataListener()
 o createInputListener()
 o createPropertyListener()
 o createSelectionListener()
 o getCellBounds(int, int)
Returns the bounding rectangle for the cells in the specified interval.
 o indexToLocation(int)
Returns the origin of the specified item in ListBox coordinates, null if index isn't valid.
 o layoutContainer(Container)
 o layoutIndexOnBottom(int, Rectangle)
Move the y coordinate of the origin of view Rectangle viewR so that the specified index is as close to the bottom as possible.
 o layoutIndexOnTop(int, Rectangle)
Move the y coordinate of the origin of viewR so that the row with the specified index appears as close to the top as possible.
 o locationToIndex(Point)
Convert a point in ListBox coordinates to the index of the item at that location.
 o maybeUpdateLayoutState()
 o minimumLayoutSize(Container)
 o paint(Graphics)
 o preferredLayoutSize(Container)
 o removeLayoutComponent(Component)
 o removeListBoxListeners()
 o updateLayoutState()

Variables

 o selectedRowBackground
 protected static final Color selectedRowBackground
 o selectedRowForeground
 protected static final Color selectedRowForeground
 o defaultRowBackground
 protected static final Color defaultRowBackground
 o defaultRowForeground
 protected static final Color defaultRowForeground
 o leadRowHighlight
 protected static final Color leadRowHighlight
 o rowHeights
 protected int rowHeights[]
 o rowHeight
 protected int rowHeight
 o rowMargins
 protected Insets rowMargins
 o preferredSize
 protected Dimension preferredSize
 o hasFocus
 protected boolean hasFocus
 o selectionL
 protected BasicListView. SelectionListener selectionL
 o dataL
 protected BasicListView. DataListener dataL
 o inputL
 protected BasicListView. InputListener inputL
 o propertyL
 protected BasicListView. PropertyListener propertyL
 o listbox
 protected JListBox listbox
 o rendererPane
 protected CellRendererPane rendererPane
 o updateLayoutNeeded
 protected boolean updateLayoutNeeded

Constructors

 o BasicListView
 public BasicListView(JListBox listbox)

Methods

 o paint
 public void paint(Graphics g)
Overrides:
paint in class JComponent
 o addListBoxListeners
 public void addListBoxListeners()
 o removeListBoxListeners
 public void removeListBoxListeners()
 o addLayoutComponent
 public void addLayoutComponent(String name,
                                Component comp)
 o removeLayoutComponent
 public void removeLayoutComponent(Component comp)
 o preferredLayoutSize
 public Dimension preferredLayoutSize(Container parent)
 o minimumLayoutSize
 public Dimension minimumLayoutSize(Container parent)
 o layoutContainer
 public void layoutContainer(Container parent)
 o maybeUpdateLayoutState
 protected void maybeUpdateLayoutState()
 o updateLayoutState
 protected void updateLayoutState()
 o convertYToRow
 protected int convertYToRow(int y0)
 o convertRowToY
 protected int convertRowToY(int row)
 o locationToIndex
 public int locationToIndex(Point location)
Convert a point in ListBox coordinates to the index of the item at that location. Returns -1 if there's no ListBox row at location.

 o indexToLocation
 public Point indexToLocation(int index)
Returns the origin of the specified item in ListBox coordinates, null if index isn't valid.

 o getCellBounds
 public Rectangle getCellBounds(int index1,
                                int index2)
Returns the bounding rectangle for the cells in the specified interval. Returns null if index isn't valid.

 o layoutIndexOnTop
 public int layoutIndexOnTop(int index,
                             Rectangle viewR)
Move the y coordinate of the origin of viewR so that the row with the specified index appears as close to the top as possible. If the rows in index,maxIndex don't fill viewR.height we work backwards from index-1 to zero if neccessary.

 o layoutIndexOnBottom
 public void layoutIndexOnBottom(int index,
                                 Rectangle viewR)
Move the y coordinate of the origin of view Rectangle viewR so that the specified index is as close to the bottom as possible.

 o createInputListener
 protected BasicListView. InputListener createInputListener()
 o createSelectionListener
 protected BasicListView. SelectionListener createSelectionListener()
 o createDataListener
 protected BasicListView. DataListener createDataListener()
 o createPropertyListener
 protected BasicListView. PropertyListener createPropertyListener()

All Packages  Class Hierarchy  This Package  Previous  Next  Index