|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.isi.powerloom.gui.components.PowerloomTrees
PowerloomTrees is responsible for setting up views in the BrowserFrame and managing selection events and updating. There are several classes of methods, including:
getSelectedXXX
, where XXX is the object type (concept, instance, etc).
These methods retrieve the currently selected items of the specified object type. There
are two variations of this method. One is parameterless, which just examines the current
selection state of the navigation pane. The other takes a selection event as an argument.
This is so that the item that is being selected during a selection event can be retrieved-
it seems to be the case that examining the current selection state doesn't return the desired
results during event processing.
installXXXPopup
, where XXX is the object type. This installs the context-sensitive
(i.e., right-clickable) popups on each navigation pane.
makeXXX{Tree | List }
. These methods are called at startup time to create the initial
navigation panes.
processXXX{Tree | List }SelectionEvent. These methods are called whenever a
selection event occurs for a particular object. It is the responsibility of these methods
to update dependent views. E.g., when a module selection event occurs, concept,
relation, and instance navigation panes should be updated.
refreshXXX{Tree | List}
refreshes a navigation pane. This should be called
after the underlying model for a navigation view has changed. For example, after a concept has
been edited, the concept tree view should be refreshed. These methods should invalidate and
refresh applicable caches. For example, refreshing the concept view should invalidate the
module->concept cache and all caches that are dependent on concepts that were affected
by an edit. For example, if an edit changed the definitions of concepts A, B, and C,
instance, relation, proposition, and rule caches should be refreshed for all 3 concepts.
updateXXXX{Tree | List}Model
updates the currently-shown model of
a given object type based on a selection event or the combined state of all current
selections in the BrowserFrame.
Field Summary | |
static int |
SHOW_DIRECT_INSTANCES
|
static int |
SHOW_DIRECT_RELATIONS
|
static int |
SHOW_INHERITED_INSTANCES
|
static int |
SHOW_INHERITED_RELATIONS
|
Constructor Summary | |
PowerloomTrees(BrowserPanel4 parent)
Insert the method's description here. |
Method Summary | |
edu.isi.powerloom.gui.components.PowerloomTrees.SelectionRecord |
getAllSelections()
Return a tuple of selected objects, which includes Module, Concept, Relation, Instance, Proposition, and Rule |
int |
getInstanceFilter()
|
PLModule |
getMostRecentlyTouchedModule()
|
PLObject |
getMostRecentlyTouchedObject()
|
PLModule |
getPropositionViewModule()
|
int |
getRelationFilter()
|
PLModule |
getRuleViewModule()
|
PLConcept |
getSelectedConcept()
|
PLConcept[] |
getSelectedConcepts()
|
PLInstance |
getSelectedInstance()
|
PLModule |
getSelectedModule()
|
PLProposition |
getSelectedProposition()
|
PLRelation |
getSelectedRelation()
|
PLProposition |
getSelectedRule()
|
edu.isi.powerloom.gui.components.PowerloomTrees.SelectionRecord |
getSelectionAtCursor()
|
boolean |
isAtBeginningOfHistory()
|
boolean |
isAtEndOfHistory()
|
javax.swing.JTree |
makeConceptTree(PLSurrogateContainer root)
|
javax.swing.JList |
makeInstanceList(PLSurrogateContainer instances)
|
void |
makeObjectVisible(PLModule module,
PLObject object,
boolean selectPaths)
Make concept, relation, or instance visible in Browser... |
javax.swing.JList |
makePropositionList(PLSurrogateContainer propositions)
|
javax.swing.JTree |
makeRelationTree(PLSurrogateContainer root)
|
javax.swing.JList |
makeRuleList(PLSurrogateContainer propositions)
|
void |
navigateToNextSelection()
|
void |
navigateToPreviousSelection()
|
void |
performEdit(PLEditEvent e)
Insert the method's description here. |
void |
recordCurrentSelection()
|
void |
recordCurrentSelection(PLConcept concept)
|
void |
recordCurrentSelection(PLInstance instance)
|
void |
recordCurrentSelection(PLModule module)
|
void |
recordCurrentSelection(PLProposition proposition,
boolean isRule)
|
void |
recordCurrentSelection(PLRelation relation)
|
void |
refreshConceptTree(PLConcept editedConcept)
The refresh methods are called when some update to the kb has been performed which can affect the contents of a given navigation pane. |
void |
refreshEverything()
Wipes out all caches, and refreshes all trees and selections |
void |
refreshInstanceList()
|
void |
refreshModuleTree()
|
void |
refreshPropositionList()
|
void |
refreshRelationTree()
|
void |
refreshRuleList()
|
void |
setAllSelections(edu.isi.powerloom.gui.components.PowerloomTrees.SelectionRecord selections)
|
void |
setInstanceFilter(int instanceFilter)
|
void |
setRelationFilter(int relationFilter)
|
void |
updateMostRecentlyTouchedObject(PLObject object)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SHOW_INHERITED_RELATIONS
public static final int SHOW_DIRECT_RELATIONS
public static final int SHOW_INHERITED_INSTANCES
public static final int SHOW_DIRECT_INSTANCES
Constructor Detail |
public PowerloomTrees(BrowserPanel4 parent) throws AppException
AppException
- The exception description.Method Detail |
public int getRelationFilter()
public int getInstanceFilter()
public PLConcept getSelectedConcept()
public PLConcept[] getSelectedConcepts()
public PLInstance getSelectedInstance()
public PLModule getPropositionViewModule()
public PLModule getRuleViewModule()
public PLModule getSelectedModule()
public PLProposition getSelectedProposition()
public PLRelation getSelectedRelation()
public PLProposition getSelectedRule()
public javax.swing.JTree makeConceptTree(PLSurrogateContainer root) throws java.lang.Exception
java.lang.Exception
public javax.swing.JList makeInstanceList(PLSurrogateContainer instances) throws java.lang.Exception
java.lang.Exception
public javax.swing.JList makePropositionList(PLSurrogateContainer propositions) throws java.lang.Exception
java.lang.Exception
public javax.swing.JTree makeRelationTree(PLSurrogateContainer root) throws java.lang.Exception
java.lang.Exception
public javax.swing.JList makeRuleList(PLSurrogateContainer propositions) throws java.lang.Exception
java.lang.Exception
public void performEdit(PLEditEvent e)
performEdit
in interface PLEditListener
e
- redesign.gui.components.PLEditEventpublic void makeObjectVisible(PLModule module, PLObject object, boolean selectPaths)
public boolean isAtBeginningOfHistory()
public boolean isAtEndOfHistory()
public void recordCurrentSelection()
public void recordCurrentSelection(PLModule module)
public void recordCurrentSelection(PLConcept concept)
public void recordCurrentSelection(PLRelation relation)
public void recordCurrentSelection(PLInstance instance)
public void recordCurrentSelection(PLProposition proposition, boolean isRule)
public edu.isi.powerloom.gui.components.PowerloomTrees.SelectionRecord getSelectionAtCursor()
public void navigateToPreviousSelection()
public void navigateToNextSelection()
public edu.isi.powerloom.gui.components.PowerloomTrees.SelectionRecord getAllSelections()
public void refreshEverything()
public void setAllSelections(edu.isi.powerloom.gui.components.PowerloomTrees.SelectionRecord selections)
public void refreshConceptTree(PLConcept editedConcept) throws java.lang.Exception
java.lang.Exception
public void refreshInstanceList() throws java.lang.Exception
java.lang.Exception
public void refreshModuleTree() throws java.lang.Exception
java.lang.Exception
public void refreshPropositionList() throws java.lang.Exception
java.lang.Exception
public void refreshRelationTree() throws java.lang.Exception
java.lang.Exception
public void refreshRuleList() throws java.lang.Exception
java.lang.Exception
public void setRelationFilter(int relationFilter)
public void setInstanceFilter(int instanceFilter)
public PLObject getMostRecentlyTouchedObject()
public PLModule getMostRecentlyTouchedModule()
public void updateMostRecentlyTouchedObject(PLObject object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |