All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.BasicListBoxUI

java.lang.Object
   |
   +----com.sun.java.swing.basic.BasicListBoxUI

public class BasicListBoxUI
extends Object
implements ListBoxUI
A Windows L&F implementation of ListBoxUI.


Variable Index

 o hsbPolicy
 o listbox
 o listview
 o scrollpane
 o vsbPolicy

Constructor Index

 o BasicListBoxUI()

Method Index

 o convertToListBoxOrigin(Point)
Destructively convert a ListView location to ListBox coordinates.
 o convertToListViewOrigin(Point)
Destructively convert ListBox location p to ListView coordinates.
 o createScrollPane()
 o createUI(JListBox)
 o deinstallUI(JComponent)
 o ensureIndexIsVisible(int)
 o getCellBounds(int, int)
Returns the bounding rectangle for the cells in the specified interval.
 o getFirstVisibleIndex()
Returns the index of the first visible cell.
 o getInsets(JComponent)
 o getLastVisibleIndex()
Returns the index of the last visible cell.
 o getMaximumSize(JComponent)
 o getMinimumSize(JComponent)
 o getPreferredSize(JComponent)
 o indexToLocation(int)
Returns the origin of the specified item in ListBox coordinates, null if index isn't valid.
 o installUI(JComponent)
 o locationToIndex(Point)
Convert a point in ListBox coordinates to the index of the item at that location.
 o paint(Graphics, JComponent)
 o selectNextRow()
 o selectPreviousRow()

Variables

 o hsbPolicy
 protected static int hsbPolicy
 o vsbPolicy
 protected static int vsbPolicy
 o listbox
 protected JListBox listbox
 o scrollpane
 protected JScrollPane scrollpane
 o listview
 protected BasicListView listview

Constructors

 o BasicListBoxUI
 public BasicListBoxUI()

Methods

 o paint
 public void paint(Graphics g,
                   JComponent c)
 o getPreferredSize
 public Dimension getPreferredSize(JComponent c)
 o getMinimumSize
 public Dimension getMinimumSize(JComponent c)
 o getMaximumSize
 public Dimension getMaximumSize(JComponent x)
 o getInsets
 public Insets getInsets(JComponent x)
 o installUI
 public void installUI(JComponent x)
 o deinstallUI
 public void deinstallUI(JComponent x)
 o createUI
 public static ListBoxUI createUI(JListBox x)
 o selectPreviousRow
 protected void selectPreviousRow()
 o selectNextRow
 protected void selectNextRow()
 o convertToListBoxOrigin
 protected Point convertToListBoxOrigin(Point listViewPoint)
Destructively convert a ListView location to ListBox coordinates.

 o convertToListViewOrigin
 protected Point convertToListViewOrigin(Point listBoxPoint)
Destructively convert ListBox location p to ListView coordinates.

 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. The location of the rectangle is in ListBox coordinates. Returns null if index isn't valid.

 o getFirstVisibleIndex
 public int getFirstVisibleIndex()
Returns the index of the first visible cell. Note that the first cell may only be partially visible.

 o getLastVisibleIndex
 public int getLastVisibleIndex()
Returns the index of the last visible cell. Note that the last cell may only be partially visible.

 o ensureIndexIsVisible
 public void ensureIndexIsVisible(int index)
 o createScrollPane
 protected JScrollPane createScrollPane()

All Packages  Class Hierarchy  This Package  Previous  Next  Index