public abstract class AbstractMoleculeArchiveDialog
extends java.lang.Object
implements javax.swing.event.TreeWillExpandListener
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JButton |
browseBtn |
protected javax.swing.JButton |
cancelBtn |
protected java.util.function.Consumer<java.lang.Void> |
cancelCallback |
protected javax.swing.JButton |
clearRecentBtn |
protected se.sawano.java.text.AlphanumericComparator |
comp |
protected javax.swing.JTextField |
containerPathText |
protected java.util.function.Consumer<java.lang.String> |
containerPathUpdateCallback |
protected javax.swing.JTree |
containerTree |
protected javax.swing.JButton |
detectBtn |
protected javax.swing.JFrame |
dialog |
protected java.lang.String |
initialContainerPath |
protected java.lang.String |
lastBrowsePath |
protected java.util.concurrent.ExecutorService |
loaderExecutor |
protected javax.swing.JLabel |
messageLabel |
protected javax.swing.JButton |
okBtn |
protected java.util.function.Consumer<MoleculeArchiveSelection> |
okCallback |
protected java.util.concurrent.ExecutorService |
parseExec |
protected org.scijava.prefs.PrefService |
prefService |
protected javax.swing.JList |
recentList |
protected java.util.List<java.lang.String> |
recentURLs |
protected MoleculeArchiveSwingTreeNode |
rootNode |
protected MoleculeArchiveSource |
source |
protected javax.swing.tree.DefaultTreeModel |
treeModel |
protected javax.swing.tree.TreeCellRenderer |
treeRenderer |
protected org.scijava.ui.UIService |
uiService |
Constructor and Description |
---|
AbstractMoleculeArchiveDialog(org.scijava.Context context) |
AbstractMoleculeArchiveDialog(java.lang.String url,
org.scijava.Context context) |
Modifier and Type | Method and Description |
---|---|
protected javax.swing.JFrame |
buildDialog() |
void |
cancel() |
abstract void |
clearRecent() |
void |
close() |
javax.swing.JTree |
getJTree() |
java.lang.String |
getPath() |
abstract void |
ok() |
void |
run(java.util.function.Consumer<MoleculeArchiveSelection> okCallback) |
void |
setCancelCallback(java.util.function.Consumer<java.lang.Void> cancelCallback) |
void |
setContainerPathUpdateCallback(java.util.function.Consumer<java.lang.String> containerPathUpdateCallback) |
void |
setMessage(java.lang.String message) |
void |
setTreeRenderer(javax.swing.tree.TreeCellRenderer treeRenderer) |
void |
treeWillCollapse(javax.swing.event.TreeExpansionEvent event) |
void |
treeWillExpand(javax.swing.event.TreeExpansionEvent event) |
protected java.util.function.Consumer<MoleculeArchiveSelection> okCallback
protected javax.swing.JFrame dialog
protected javax.swing.JTextField containerPathText
protected javax.swing.JTree containerTree
protected javax.swing.JList recentList
protected java.util.List<java.lang.String> recentURLs
protected javax.swing.JButton browseBtn
protected javax.swing.JButton detectBtn
protected javax.swing.JButton clearRecentBtn
protected javax.swing.JLabel messageLabel
protected javax.swing.JButton okBtn
protected javax.swing.JButton cancelBtn
protected javax.swing.tree.DefaultTreeModel treeModel
protected java.lang.String lastBrowsePath
protected java.util.concurrent.ExecutorService loaderExecutor
protected final java.lang.String initialContainerPath
protected java.util.function.Consumer<java.lang.String> containerPathUpdateCallback
protected java.util.function.Consumer<java.lang.Void> cancelCallback
protected javax.swing.tree.TreeCellRenderer treeRenderer
protected MoleculeArchiveSwingTreeNode rootNode
protected java.util.concurrent.ExecutorService parseExec
protected MoleculeArchiveSource source
protected final se.sawano.java.text.AlphanumericComparator comp
protected org.scijava.prefs.PrefService prefService
protected org.scijava.ui.UIService uiService
public AbstractMoleculeArchiveDialog(org.scijava.Context context)
public AbstractMoleculeArchiveDialog(java.lang.String url, org.scijava.Context context)
public void setTreeRenderer(javax.swing.tree.TreeCellRenderer treeRenderer)
public void setCancelCallback(java.util.function.Consumer<java.lang.Void> cancelCallback)
public void setContainerPathUpdateCallback(java.util.function.Consumer<java.lang.String> containerPathUpdateCallback)
public void setMessage(java.lang.String message)
public java.lang.String getPath()
public void run(java.util.function.Consumer<MoleculeArchiveSelection> okCallback)
protected javax.swing.JFrame buildDialog()
public javax.swing.JTree getJTree()
public void close()
public void cancel()
public void treeWillExpand(javax.swing.event.TreeExpansionEvent event) throws javax.swing.tree.ExpandVetoException
treeWillExpand
in interface javax.swing.event.TreeWillExpandListener
javax.swing.tree.ExpandVetoException
public void treeWillCollapse(javax.swing.event.TreeExpansionEvent event) throws javax.swing.tree.ExpandVetoException
treeWillCollapse
in interface javax.swing.event.TreeWillExpandListener
javax.swing.tree.ExpandVetoException
public abstract void clearRecent()
public abstract void ok()