|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JList
gov.nih.nlm.swing.SuperJList
JList
with a key listener and other extras.
Nested Class Summary |
Nested classes inherited from class javax.swing.JList |
JList.AccessibleJList |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JList |
HORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAP |
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 | |
SuperJList()
Instantiates an empty SuperJList . |
|
SuperJList(Object[] items)
Instantiates a SuperJList from the specified data. |
Method Summary | |
String[] |
getSelectedStringValues()
Returns all selected values as String s. |
String |
getToolTipText(MouseEvent event)
Returns the tool tip text. |
void |
processMouseEvent(MouseEvent e)
Opens the popup menu if the is one, otherwise forwards the request to the superclass. |
void |
resizeList(int min,
int max)
Resize the list to be within specifications. |
void |
selectAll()
Selects all elements of the list. |
void |
setListData(Object[] items)
Sets the list data. |
void |
setPopupMenu(JPopupMenu popup)
Sets the JPopupMenu . |
void |
setSelectedValues(Object[] items,
boolean should_scroll)
Programatically selects multiple items. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SuperJList()
SuperJList
.
public SuperJList(Object[] items)
SuperJList
from the specified data.
items
- the list itemsMethod Detail |
public void selectAll()
public void setListData(Object[] items)
items
- the list datapublic void resizeList(int min, int max)
min
- minimum sizemax
- maximum sizepublic void setSelectedValues(Object[] items, boolean should_scroll)
true
scroll to the first selected item.
items
- list of items to selectshould_scroll
- indicates whether or not to scroll to first selected itempublic String[] getSelectedStringValues()
String
s.
String
spublic String getToolTipText(MouseEvent event)
event
- a MouseEvent
public void setPopupMenu(JPopupMenu popup)
JPopupMenu
.
popup
- the JPopupMenu
public void processMouseEvent(MouseEvent e)
e
- the MouseEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |