|
||||||||||
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
dods.clients.importwizard.URLList
public class URLList
This class display a hierarchial list of Dods URLs. Inventories are shown
at the top level, and Data URLs selected from those inventories are shown
as children of the inventories. The list supports basic operations such
as removing Data URLs or inventories, and throws events as
TreeSelectionEvent
s to allow for more complex manipulation
of URLs.
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.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 |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
void |
addInventory(DodsURL inv)
Add an inventory to the URLList. |
void |
addTreeSelectionListener(TreeSelectionListener t)
Add a TreeSelectionListener |
void |
addURL(DodsURL url)
Add a URL to the URLList. |
void |
addURLsToInventory(DodsURL[] newURLs,
DodsURL inv)
Add multiple URLs to an inventory. |
void |
addURLToInventory(DodsURL url,
DodsURL inv)
Adds a URL to the URLList to be associated with the inventory inv. |
Object |
getSelectedValue()
Returns the first selected URL from the list. |
Object[] |
getSelectedValues()
Returns all the selected URLs from the list. |
int |
getURLCount()
Returns the number of Data URLs in the list. |
int |
getURLCount(DodsURL inv)
Returns the number of Data URLs associated with an inventory. |
DodsURL[] |
getURLs()
Return all the Data URLs from the URLList |
void |
removeAllURLsFromInventory(DodsURL inv)
Removes all the Data URLs that have been selected from an inventory. |
void |
removeSelectedURLs()
Removes all the selected URLs. |
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 |
Method Detail |
---|
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void addInventory(DodsURL inv)
inv
- The DodsURL
where the inventory can be found.public void addTreeSelectionListener(TreeSelectionListener t)
TreeSelectionListener
t
- The TreeSelectionListenerpublic void addURL(DodsURL url)
url
- The URL.public void addURLToInventory(DodsURL url, DodsURL inv)
url
- The URL to add.inv
- The inventory to add it to.public void addURLsToInventory(DodsURL[] newURLs, DodsURL inv)
newURLs
- The URLs to add.inv
- The inventory to add it to.public DodsURL[] getURLs()
public int getURLCount()
public int getURLCount(DodsURL inv)
inv
- The inventory URL.
public Object getSelectedValue()
public Object[] getSelectedValues()
public void removeAllURLsFromInventory(DodsURL inv)
inv
- The inventory whose URLs will be removed.public void removeSelectedURLs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |