|
|||||||||
| 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
public class SuperJList
JList with a key listener and other extras.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JList |
|---|
JList.AccessibleJList |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces 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 Strings. |
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 items| Method Detail |
|---|
public void selectAll()
public void setListData(Object[] items)
setListData in class JListitems - the list data
public void resizeList(int min,
int max)
min - minimum sizemax - maximum size
public 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()
Strings.
Stringspublic String getToolTipText(MouseEvent event)
getToolTipText in class JListevent - a MouseEvent
public void setPopupMenu(JPopupMenu popup)
JPopupMenu.
popup - the JPopupMenupublic void processMouseEvent(MouseEvent e)
processMouseEvent in class JComponente - the MouseEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||