public abstract class AbstractListBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractListBuilder.Model |
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JList |
myList |
protected AbstractListBuilder.Model |
myModel |
protected javax.swing.JLabel |
myParentTitle |
protected Project |
myProject |
protected AbstractTreeStructure |
myTreeStructure |
Constructor and Description |
---|
AbstractListBuilder(Project project,
javax.swing.JList list,
AbstractListBuilder.Model model,
AbstractTreeStructure treeStructure,
java.util.Comparator comparator,
boolean showRoot) |
Modifier and Type | Method and Description |
---|---|
void |
buildRoot() |
void |
dispose() |
void |
drillDown() |
protected void |
ensureSelectionExist() |
void |
enterElement(AbstractTreeNode element) |
void |
enterElement(PsiElement element,
VirtualFile file) |
protected abstract java.util.List<AbstractTreeNode<?>> |
getAllAcceptableNodes(java.lang.Object[] childElements,
VirtualFile file) |
AbstractTreeNode |
getParentNode() |
protected java.lang.Object |
getSelectedValue() |
void |
goUp() |
protected abstract boolean |
nodeIsAcceptableForElement(AbstractTreeNode node,
java.lang.Object element) |
void |
selectElement(java.lang.Object element,
VirtualFile virtualFile) |
protected void |
selectItem(int i) |
void |
setParentTitle(javax.swing.JLabel parentTitle) |
protected boolean |
shouldAddTopElement() |
protected abstract boolean |
shouldEnterSingleTopLevelElement(java.lang.Object rootChild) |
protected void |
updateList() |
protected abstract void |
updateParentTitle() |
protected final Project myProject
protected final javax.swing.JList myList
protected final AbstractListBuilder.Model myModel
protected final AbstractTreeStructure myTreeStructure
protected javax.swing.JLabel myParentTitle
public AbstractListBuilder(Project project, javax.swing.JList list, AbstractListBuilder.Model model, AbstractTreeStructure treeStructure, java.util.Comparator comparator, boolean showRoot)
protected abstract boolean shouldEnterSingleTopLevelElement(java.lang.Object rootChild)
public final void setParentTitle(javax.swing.JLabel parentTitle)
public final void drillDown()
public final void goUp()
protected java.lang.Object getSelectedValue()
protected void selectItem(int i)
protected void ensureSelectionExist()
public final void selectElement(java.lang.Object element, VirtualFile virtualFile)
public final void enterElement(PsiElement element, VirtualFile file)
public final void enterElement(AbstractTreeNode element)
protected abstract boolean nodeIsAcceptableForElement(AbstractTreeNode node, java.lang.Object element)
protected abstract java.util.List<AbstractTreeNode<?>> getAllAcceptableNodes(java.lang.Object[] childElements, VirtualFile file)
public void dispose()
protected boolean shouldAddTopElement()
protected final void updateList()
public final AbstractTreeNode getParentNode()
protected abstract void updateParentTitle()
public final void buildRoot()