|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultTreeModel
org.openquark.gems.client.browser.BrowserTreeModel
public class BrowserTreeModel
The model for the browser tree displayed in the outline control. This model contains the abstract tree model and has various methods to construct the displayed tree.
| Nested Class Summary | |
|---|---|
static class |
BrowserTreeModel.DefaultCategoryNodeProvider
The default category node provider just returns an empty default mutable tree node. |
| Field Summary |
|---|
| Fields inherited from class javax.swing.tree.DefaultTreeModel |
|---|
asksAllowsChildren, listenerList, root |
| Constructor Summary | |
|---|---|
BrowserTreeModel()
Default constructor for BrowserTreeModel. |
|
| Method Summary | |
|---|---|
void |
arrangeAsDefaultTreeStructure(ModuleNameDisplayUtilities.TreeViewDisplayMode moduleTreeDisplayMode)
Reverts the browser tree model to the "original" structure. |
void |
categorizeByArity(BrowserTreeNode selectedNode)
Starting from the currently selected node, we categorize the currently selected node's children according to the child's arity. |
void |
categorizeByGemType(BrowserTreeNode selectedNode)
Starting from the currently selected node, we categorize the currently selected node's children according to the child's gem type (type signature). |
void |
categorizeByInput(BrowserTreeNode selectedNode)
Starting from the currently selected node, we categorize the currently selected node's children according to the child's input type. |
void |
categorizeByModule(BrowserTreeNode selectedNode,
ModuleNameDisplayUtilities.TreeViewDisplayMode moduleTreeDisplayMode)
Starting from the currently selected node, we categorize the currently selected node's children according to the child's module. |
void |
categorizeByOutput(BrowserTreeNode selectedNode)
Starting from the currently selected node, we categorize the currently selected node's children according to the child's output type. |
void |
clearDrawers()
Clear all gem drawers from the workspace. |
boolean |
doesNamespaceContainVisibleModules(ModuleName namespaceName)
Return whether a given namespace contains modules visible from the perspective from which the tree was last populated. |
void |
doSearch(String searchString)
Performs a sub-string search on all node names and type expressions in the model and inserts nodes for matching gems into the search results node. |
FeatureVisibilityPolicy |
getFeatureVisibilityPolicy()
Returns the visibility policy used for this browser tree model. |
BrowserTreeNode |
getSearchResultsNode()
Returns the tree node that represents the "Search Results" node. |
String |
getSearchString()
|
boolean |
getShowAllModules()
Determines whether modules not visible from the current perspective should be shown in the tree view. |
boolean |
getShowPublicGemsOnly()
Determines whether only public gems should be displayed. |
GemTreeNode |
getTreeNode(GemEntity newGemEntity)
Get a GemTreeNode corresponding to a given entity. |
BrowserTreeNode |
getWorkspaceNode()
Returns the tree node that represents the "Workspace" node. |
boolean |
isVisibleGem(GemEntity gemEntity)
Return whether a given gem is visible from the perspective from which the tree was last populated. |
boolean |
isVisibleModule(ModuleName moduleName)
Return whether a given module is visible from the perspective from which the tree was last populated. |
void |
populate(Perspective perspective,
boolean showAllModules,
ModuleNameDisplayUtilities.TreeViewDisplayMode moduleTreeDisplayMode)
Populate the model with entities. |
void |
reload()
Reloads the model from the perspective it was originally populated from and uses the same parameters as when originally populated. |
void |
setFeatureVisibilityPolicy(FeatureVisibilityPolicy predicate)
Sets the visibility policy used for this browser tree model. |
void |
setPerspectiveAndReload(Perspective perspective)
Refreshes with a new perspective. |
void |
setShowAllModules(boolean showAllModules)
Determines whether modules not visible from the current perspective should be shown in the tree view. |
void |
setShowPublicGemsOnly(boolean showPublicGemsOnly)
Determines whether only public gems should be displayed. |
void |
setWorkspaceNodeName(String name)
Sets the name of the Workspace node in the tree to include the name of the current workspace in square brackets. |
void |
sortByForm(BrowserTreeNode treeNode)
Starting from the currently selected node, we sort the currently selected node's children according to its form (Data Constructor, Supercombinator, Class Method, ...) |
void |
sortByUnqualifiedName(BrowserTreeNode selectedNode)
Starting from the currently selected node, we sort the currently selected node's children according to the alphabet: A, a, B, b, etc... |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BrowserTreeModel()
| Method Detail |
|---|
public FeatureVisibilityPolicy getFeatureVisibilityPolicy()
public void setFeatureVisibilityPolicy(FeatureVisibilityPolicy predicate)
null is used as an argument, then the default visibility predicate is used.
predicate - public boolean isVisibleModule(ModuleName moduleName)
moduleName -
public boolean doesNamespaceContainVisibleModules(ModuleName namespaceName)
namespaceName -
public boolean isVisibleGem(GemEntity gemEntity)
gemEntity -
public GemTreeNode getTreeNode(GemEntity newGemEntity)
newGemEntity - the entity to look up
public void categorizeByArity(BrowserTreeNode selectedNode)
selectedNode - The node below which all entities will be categorized.public void categorizeByGemType(BrowserTreeNode selectedNode)
selectedNode - The node below which all entities will be categorized.public void categorizeByOutput(BrowserTreeNode selectedNode)
selectedNode - The node below which all entities will be categorized.public void categorizeByInput(BrowserTreeNode selectedNode)
selectedNode - The node below which all entities will be categorized.
public void categorizeByModule(BrowserTreeNode selectedNode,
ModuleNameDisplayUtilities.TreeViewDisplayMode moduleTreeDisplayMode)
selectedNode - The node below which all entities will be categorized.moduleTreeDisplayMode - the display mode for the module tree.public void sortByUnqualifiedName(BrowserTreeNode selectedNode)
selectedNode - The node below which all entities will be sorted.public void sortByForm(BrowserTreeNode treeNode)
treeNode - the node below which all entities will be sorted.public void setShowAllModules(boolean showAllModules)
showAllModules - if true all modules will be shown, if false only visible modulespublic boolean getShowAllModules()
public void setShowPublicGemsOnly(boolean showPublicGemsOnly)
showPublicGemsOnly - true if only public gems should be shown, false if all gems
(public, private, protected)should be shown.public boolean getShowPublicGemsOnly()
public void arrangeAsDefaultTreeStructure(ModuleNameDisplayUtilities.TreeViewDisplayMode moduleTreeDisplayMode)
moduleTreeDisplayMode - the display mode for the module tree.public BrowserTreeNode getSearchResultsNode()
public BrowserTreeNode getWorkspaceNode()
public void setWorkspaceNodeName(String name)
name - the name to have in square bracketspublic void doSearch(String searchString)
searchString - the string to search forpublic String getSearchString()
public void reload()
reload in class DefaultTreeModelpopulate(org.openquark.cal.services.Perspective, boolean, org.openquark.gems.client.ModuleNameDisplayUtilities.TreeViewDisplayMode),
GemBrowser.refresh()
public void populate(Perspective perspective,
boolean showAllModules,
ModuleNameDisplayUtilities.TreeViewDisplayMode moduleTreeDisplayMode)
perspective - the perspective from which entities are gathered.showAllModules - whether modules not visible from the given perspective should also be visible.moduleTreeDisplayMode - the display mode for the module tree.public void clearDrawers()
public void setPerspectiveAndReload(Perspective perspective)
perspective - the new perspective
|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||