public class QueryEditorTopicPanel extends java.lang.Object implements TopicPanel
| Modifier and Type | Field and Description |
|---|---|
protected Topic |
openedTopic |
protected QueryEditorDockPanel |
panel |
| Constructor and Description |
|---|
QueryEditorTopicPanel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyChanges()
Topic panel should store all pending changes immediately.
|
void |
associationChanged(Association a)
A notification used to report general or large changes in association.
|
void |
associationPlayerChanged(Association a,
Topic role,
Topic newPlayer,
Topic oldPlayer)
A notification that a player in an association with a certain role has
been changed.
|
void |
associationRemoved(Association a)
A notification that an association has been completely removed.
|
void |
associationTypeChanged(Association a,
Topic newType,
Topic oldType)
A notification that association type has changed.
|
javax.swing.JPanel |
getGui()
Return the UI element for the topic panel.
|
javax.swing.Icon |
getIcon()
Return icon image of the topic panel.
|
java.lang.String |
getName()
Return name of the topic panel.
|
int |
getOrder()
Return integer number that specifies topic panel's order.
|
java.lang.String |
getTitle()
Return title of the topic panel.
|
Topic |
getTopic()
Return the active topic in topic panel.
|
LocatorHistory |
getTopicHistory()
A topic panel can store it's own topic history.
|
javax.swing.JMenu |
getViewMenu() |
java.lang.Object[] |
getViewMenuStruct()
Topic panel can provide a menu structure that Wandora views in UI.
|
javax.swing.JPopupMenu |
getViewPopupMenu() |
void |
init()
Initialize the TopicPanel.
|
boolean |
noScroll()
If this returns true, then the topic panel will not be wrapped inside
a scroll pane.
|
void |
open(Topic topic)
Open a topic in the topic panel.
|
void |
refresh()
Request topic panel UI refresh.
|
void |
stop()
A topic panel should stop all threads and close all (shared) resources.
|
boolean |
supportsOpenTopic()
Does the topic panel support topic open? In other words can one call the
open method with a topic.
|
void |
topicBaseNameChanged(Topic t,
java.lang.String newName,
java.lang.String oldName)
Notification that the base name has been changed.
|
void |
topicChanged(Topic t)
A notification used to report general or large changes in topic, for example when topics are merged.
|
void |
topicDataChanged(Topic t,
Topic type,
Topic version,
java.lang.String newValue,
java.lang.String oldValue)
Notification that topic occurrence has been changed.
|
void |
topicRemoved(Topic t)
Notification that a topic has been completely removed.
|
void |
topicSubjectIdentifierChanged(Topic t,
Locator added,
Locator removed)
Notification that a subject identifier has changed.
|
void |
topicSubjectLocatorChanged(Topic t,
Locator newLocator,
Locator oldLocator)
Notification that the subject locator has been changed.
|
void |
topicTypeChanged(Topic t,
Topic added,
Topic removed)
Notification that a topic type has changed.
|
void |
topicVariantChanged(Topic t,
java.util.Collection<Topic> scope,
java.lang.String newName,
java.lang.String oldName)
Notification that a variant name has been changed.
|
protected Topic openedTopic
protected QueryEditorDockPanel panel
public void init()
TopicPanelinit in interface TopicPanelpublic boolean supportsOpenTopic()
TopicPanelsupportsOpenTopic in interface TopicPanelpublic void open(Topic topic) throws TopicMapException, OpenTopicNotSupportedException
TopicPanelopen in interface TopicPanelTopicMapExceptionOpenTopicNotSupportedExceptionpublic void stop()
TopicPanelstop in interface TopicPanelpublic void refresh()
throws TopicMapException
TopicPanelrefresh in interface TopicPanelTopicMapExceptionpublic boolean applyChanges()
throws CancelledException,
TopicMapException
TopicPanelapplyChanges in interface TopicPanelCancelledExceptionTopicMapExceptionpublic javax.swing.JPanel getGui()
TopicPanelgetGui in interface TopicPanelpublic Topic getTopic() throws TopicMapException
TopicPanelgetTopic in interface TopicPanelTopicMapExceptionpublic java.lang.String getName()
TopicPanelgetName in interface TopicPanelpublic java.lang.String getTitle()
TopicPanelgetTitle in interface TopicPanelpublic javax.swing.Icon getIcon()
TopicPanelgetIcon in interface TopicPanelpublic int getOrder()
TopicPanelgetOrder in interface TopicPanelpublic boolean noScroll()
TopicPanelnoScroll in interface TopicPanelpublic java.lang.Object[] getViewMenuStruct()
TopicPanelgetViewMenuStruct in interface TopicPanelpublic javax.swing.JMenu getViewMenu()
getViewMenu in interface TopicPanelpublic javax.swing.JPopupMenu getViewPopupMenu()
getViewPopupMenu in interface TopicPanelpublic LocatorHistory getTopicHistory()
TopicPanelgetTopicHistory in interface TopicPanelpublic void topicSubjectIdentifierChanged(Topic t, Locator added, Locator removed) throws TopicMapException
TopicMapListenertopicSubjectIdentifierChanged in interface TopicMapListenerTopicMapExceptionpublic void topicBaseNameChanged(Topic t, java.lang.String newName, java.lang.String oldName) throws TopicMapException
TopicMapListenertopicBaseNameChanged in interface TopicMapListenerTopicMapExceptionpublic void topicTypeChanged(Topic t, Topic added, Topic removed) throws TopicMapException
TopicMapListenertopicTypeChanged in interface TopicMapListenerTopicMapExceptionpublic void topicVariantChanged(Topic t, java.util.Collection<Topic> scope, java.lang.String newName, java.lang.String oldName) throws TopicMapException
TopicMapListenertopicVariantChanged in interface TopicMapListenerTopicMapExceptionpublic void topicDataChanged(Topic t, Topic type, Topic version, java.lang.String newValue, java.lang.String oldValue) throws TopicMapException
TopicMapListenertopicDataChanged in interface TopicMapListenerTopicMapExceptionpublic void topicSubjectLocatorChanged(Topic t, Locator newLocator, Locator oldLocator) throws TopicMapException
TopicMapListenertopicSubjectLocatorChanged in interface TopicMapListenerTopicMapExceptionpublic void topicRemoved(Topic t) throws TopicMapException
TopicMapListenertopicRemoved in interface TopicMapListenerTopicMapExceptionpublic void topicChanged(Topic t) throws TopicMapException
TopicMapListenertopicChanged in interface TopicMapListenerTopicMapExceptionpublic void associationTypeChanged(Association a, Topic newType, Topic oldType) throws TopicMapException
TopicMapListenerassociationTypeChanged in interface TopicMapListenerTopicMapExceptionpublic void associationPlayerChanged(Association a, Topic role, Topic newPlayer, Topic oldPlayer) throws TopicMapException
TopicMapListenerassociationPlayerChanged in interface TopicMapListenerTopicMapExceptionpublic void associationRemoved(Association a) throws TopicMapException
TopicMapListenerassociationRemoved in interface TopicMapListenerTopicMapExceptionpublic void associationChanged(Association a) throws TopicMapException
TopicMapListenerassociationChanged in interface TopicMapListenerTopicMapExceptionCopyright 2004-2015 Wandora Team