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
-
dataL
-
-
defaultRowBackground
-
-
defaultRowForeground
-
-
hasFocus
-
-
inputL
-
-
leadRowHighlight
-
-
listbox
-
-
preferredSize
-
-
propertyL
-
-
rendererPane
-
-
rowHeight
-
-
rowHeights
-
-
rowMargins
-
-
selectedRowBackground
-
-
selectedRowForeground
-
-
selectionL
-
-
updateLayoutNeeded
-
-
BasicListView(JListBox)
-
-
addLayoutComponent(String, Component)
-
-
addListBoxListeners()
-
-
convertRowToY(int)
-
-
convertYToRow(int)
-
-
createDataListener()
-
-
createInputListener()
-
-
createPropertyListener()
-
-
createSelectionListener()
-
-
getCellBounds(int, int)
- Returns the bounding rectangle for the cells in the
specified interval.
-
indexToLocation(int)
- Returns the origin of the specified item in ListBox
coordinates, null if index isn't valid.
-
layoutContainer(Container)
-
-
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.
-
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.
-
locationToIndex(Point)
- Convert a point in ListBox coordinates to the index
of the item at that location.
-
maybeUpdateLayoutState()
-
-
minimumLayoutSize(Container)
-
-
paint(Graphics)
-
-
preferredLayoutSize(Container)
-
-
removeLayoutComponent(Component)
-
-
removeListBoxListeners()
-
-
updateLayoutState()
-
selectedRowBackground
protected static final Color selectedRowBackground
selectedRowForeground
protected static final Color selectedRowForeground
defaultRowBackground
protected static final Color defaultRowBackground
defaultRowForeground
protected static final Color defaultRowForeground
leadRowHighlight
protected static final Color leadRowHighlight
rowHeights
protected int rowHeights[]
rowHeight
protected int rowHeight
rowMargins
protected Insets rowMargins
preferredSize
protected Dimension preferredSize
hasFocus
protected boolean hasFocus
selectionL
protected BasicListView. SelectionListener selectionL
dataL
protected BasicListView. DataListener dataL
inputL
protected BasicListView. InputListener inputL
propertyL
protected BasicListView. PropertyListener propertyL
listbox
protected JListBox listbox
rendererPane
protected CellRendererPane rendererPane
updateLayoutNeeded
protected boolean updateLayoutNeeded
BasicListView
public BasicListView(JListBox listbox)
paint
public void paint(Graphics g)
- Overrides:
- paint in class JComponent
addListBoxListeners
public void addListBoxListeners()
removeListBoxListeners
public void removeListBoxListeners()
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
removeLayoutComponent
public void removeLayoutComponent(Component comp)
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
layoutContainer
public void layoutContainer(Container parent)
maybeUpdateLayoutState
protected void maybeUpdateLayoutState()
updateLayoutState
protected void updateLayoutState()
convertYToRow
protected int convertYToRow(int y0)
convertRowToY
protected int convertRowToY(int row)
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.
indexToLocation
public Point indexToLocation(int index)
- Returns the origin of the specified item in ListBox
coordinates, null if index isn't valid.
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.
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.
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.
createInputListener
protected BasicListView. InputListener createInputListener()
createSelectionListener
protected BasicListView. SelectionListener createSelectionListener()
createDataListener
protected BasicListView. DataListener createDataListener()
createPropertyListener
protected BasicListView. PropertyListener createPropertyListener()
All Packages Class Hierarchy This Package Previous Next Index