| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JList
                          |
                          +--org.openide.awt.ListPane
ListPane. This component is derived from JList component and enables list objects in several columns.
| Inner classes inherited from class javax.swing.JList | 
JList.AccessibleJList | 
| Inner classes inherited from class javax.swing.JComponent | 
JComponent.AccessibleJComponent | 
| Inner classes inherited from class java.awt.Container | 
Container.AccessibleAWTContainer | 
| Inner classes inherited from class java.awt.Component | 
Component.AccessibleAWTComponent | 
| Fields inherited from class javax.swing.JComponent | 
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW | 
| Fields inherited from class java.awt.Component | 
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT | 
| Fields inherited from interface java.awt.image.ImageObserver | 
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH | 
| Constructor Summary | |
ListPane()
Constructs a JList with an empty model.  | 
|
ListPane(ListModel dataModel)
Construct a JList that displays the elements in the specified, non-null model.  | 
|
ListPane(Object[] listData)
Construct a JList that displays the elements in the specified array.  | 
|
ListPane(Vector listData)
Construct a JList that displays the elements in the specified Vector.  | 
|
| Method Summary | |
 void | 
ensureIndexIsVisible(int index)
If this JList is being displayed withing a JViewport and the specified cell isn't completely visible, scroll the viewport.  | 
 Rectangle | 
getCellBounds(int index1,
              int index2)
Returns the bounds of the specified item in JList coordinates, null if index isn't valid.  | 
 Dimension | 
getMinimumSize()
 | 
 Dimension | 
getPreferredScrollableViewportSize()
Compute the size of the viewport needed to display visibleRowCount rows.  | 
 Dimension | 
getPreferredSize()
The preferredSize of a list is total height of the rows and the maximum width of the cells.  | 
 int | 
getScrollableBlockIncrement(Rectangle visibleRect,
                            int orientation,
                            int direction)
 | 
 boolean | 
getScrollableTracksViewportHeight()
If this JList is displayed in a JViewport, don't change its height when the viewports height changes.  | 
 boolean | 
getScrollableTracksViewportWidth()
If this JList is displayed in a JViewport, don't change its width when the viewports width changes.  | 
 int | 
getScrollableUnitIncrement(Rectangle visibleRect,
                           int orientation,
                           int direction)
If we're scrolling downwards ( direction is
 greater than 0), and the first row is completely visible with respect
 to visibleRect, then return its height. | 
 String | 
getToolTipText(MouseEvent event)
Overrides JComponent's getToolTipText method in order to allow renderer's tips to be used if it has text set.  | 
 int | 
getVisibleColumnCount()
Return the value of the visibleRowCount property.  | 
 Point | 
indexToLocation(int index)
Returns the origin of the specified item in JList coordinates, null if index isn't valid.  | 
 boolean | 
isOpaque()
JList components are always opaque.  | 
 int | 
locationToIndex(Point location)
Convert a point in JList coordinates to the index of the cell at that location.  | 
protected  void | 
paintBackground(Graphics g)
If the list is opaque, paint its background.  | 
protected  void | 
paintComponent(Graphics g)
Paint the rows that intersect the Graphics objects clipRect.  | 
 void | 
setVisibleColumnCount(int visibleColumnCount)
Set the preferred number of rows in the list that are visible within the nearest JViewport ancestor, if any.  | 
| Methods inherited from class java.awt.Container | 
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public ListPane(ListModel dataModel)
public ListPane(Object[] listData)
public ListPane(Vector listData)
public ListPane()
| Method Detail | 
public boolean isOpaque()
isOpaque in class JComponentpublic int getVisibleColumnCount()
JList.setVisibleRowCount(int)public void setVisibleColumnCount(int visibleColumnCount)
The default value of this property is 8.
This is a JavaBeans bound property.
JList.getVisibleRowCount(), 
JComponent.getVisibleRect()public void ensureIndexIsVisible(int index)
ensureIndexIsVisible in class JListThe - index of the cell to make visibleJComponent.scrollRectToVisible(java.awt.Rectangle), 
JComponent.getVisibleRect()public int locationToIndex(Point location)
locationToIndex in class JListlocation - The JList relative coordinates of the cellpublic Point indexToLocation(int index)
indexToLocation in class JListindex - The index of the JList cell.
public Rectangle getCellBounds(int index1,
                               int index2)
getCellBounds in class JListindex - The index of the JList cell.public Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize in class JListgetPreferredScrollableViewportSize()
public int getScrollableUnitIncrement(Rectangle visibleRect,
                                      int orientation,
                                      int direction)
direction is
 greater than 0), and the first row is completely visible with respect
 to visibleRect, then return its height.  If
 we're scrolling downwards and the first row is only partially visible,
 return the height of the visible part of the first row.  Similarly
 if we're scrolling upwards we return the height of the row above
 the first row, unless the first row is partially visible.getScrollableUnitIncrement in class JListScrollable.getScrollableUnitIncrement(java.awt.Rectangle, int, int)
public int getScrollableBlockIncrement(Rectangle visibleRect,
                                       int orientation,
                                       int direction)
getScrollableBlockIncrement in class JListScrollable.getScrollableUnitIncrement(java.awt.Rectangle, int, int)public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth in class JListScrollable.getScrollableTracksViewportWidth()public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight in class JListScrollable.getScrollableTracksViewportWidth()protected void paintBackground(Graphics g)
JComponent.paint(java.awt.Graphics)protected void paintComponent(Graphics g)
paintComponent in class JComponentpaintBackground(java.awt.Graphics)public Dimension getPreferredSize()
getPreferredSize in class JComponentpublic Dimension getMinimumSize()
getMinimumSize in class JComponentpublic String getToolTipText(MouseEvent event)
getToolTipText in class JComponentevent - the MouseEvent that initiated the ToolTip display
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||