|
||||||||||
| 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.JPanel
ucar.unidata.ui.TwoListPanel
public class TwoListPanel
This supports exchanging entries between two jlists
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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 | |
|---|---|
TwoListPanel(List fromEntries,
String fromLabel,
List toEntries,
String toLabel,
JComponent extraButtons)
_more_ |
|
TwoListPanel(List fromEntries,
String fromLabel,
List toEntries,
String toLabel,
JComponent extraButtons,
boolean showUpDownButtons)
_more_ |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ae)
Handle the action |
boolean |
getChanged()
Keeps track if there were any changes |
JComponent |
getContents(String windowLabel,
List labels,
List ids,
Hashtable current)
_more_ |
List |
getCurrentEntries()
_more_ |
JList |
getFromList()
Return the from list |
JList |
getToList()
Return the to list |
void |
insertEntry(Object tfo)
Insert the given entry into the toEntries lsit |
void |
reinitialize(List fromEntries,
List toEntries)
_more_ |
void |
reload()
Set the initial list of toEntries |
boolean |
showDialog(String title,
String windowLabel,
List labels,
List ids,
Hashtable current)
_more_ |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TwoListPanel(List fromEntries,
String fromLabel,
List toEntries,
String toLabel,
JComponent extraButtons)
fromEntries - All available entriesfromLabel - _more_toEntries - Currently use entriestoLabel - _more_extraButtons - _more_
public TwoListPanel(List fromEntries,
String fromLabel,
List toEntries,
String toLabel,
JComponent extraButtons,
boolean showUpDownButtons)
fromEntries - _more_fromLabel - _more_toEntries - _more_toLabel - _more_extraButtons - _more_showUpDownButtons - _more_| Method Detail |
|---|
public boolean showDialog(String title,
String windowLabel,
List labels,
List ids,
Hashtable current)
title - _more_windowLabel - _more_labels - _more_ids - _more_current - _more_
public JComponent getContents(String windowLabel,
List labels,
List ids,
Hashtable current)
windowLabel - _more_labels - _more_ids - _more_current - _more_
public void reinitialize(List fromEntries,
List toEntries)
fromEntries - _more_toEntries - _more_public List getCurrentEntries()
public void insertEntry(Object tfo)
tfo - The new entrypublic JList getFromList()
public JList getToList()
public void reload()
public void actionPerformed(ActionEvent ae)
actionPerformed in interface ActionListenerae - The actionpublic boolean getChanged()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||