public class LayerInfoPanel extends java.lang.Object implements java.awt.event.ActionListener, TopicPanel, java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
private javax.swing.JPanel |
buttonPanel |
private SimpleButton |
copyButton |
private java.util.HashMap<java.lang.Object,SimpleLabel> |
fieldLabels |
private javax.swing.JPanel |
infoPanel |
private TopicMap |
map |
private java.util.HashMap |
originalValues |
private java.lang.Thread |
refresher |
private boolean |
requiresRefresh |
private java.lang.StringBuilder |
stats |
private boolean |
trackChanges |
private SimpleToggleButton |
trackChangesButton |
private Wandora |
wandora |
| Constructor and Description |
|---|
LayerInfoPanel() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
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.
|
void |
copyActionPerformed() |
private javax.swing.JPanel |
getButtonPanel() |
private java.lang.String |
getCurrentLayerName() |
private TopicMap |
getCurrentTopicMap() |
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.
|
void |
initInfo() |
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 |
refreshInfo() |
void |
run() |
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.
|
void |
trackChangesActionPerformed() |
private SimpleButton copyButton
private SimpleToggleButton trackChangesButton
private javax.swing.JPanel infoPanel
private Wandora wandora
private TopicMap map
private java.lang.StringBuilder stats
private java.util.HashMap originalValues
private boolean trackChanges
private javax.swing.JPanel buttonPanel
private java.util.HashMap<java.lang.Object,SimpleLabel> fieldLabels
private boolean requiresRefresh
private java.lang.Thread refresher
public void init()
TopicPanelinit in interface TopicPanelpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void trackChangesActionPerformed()
public void copyActionPerformed()
public boolean supportsOpenTopic()
TopicPanelsupportsOpenTopic in interface TopicPanelpublic void open(Topic topic) throws TopicMapException, OpenTopicNotSupportedException
TopicPanelopen in interface TopicPanelTopicMapExceptionOpenTopicNotSupportedExceptionpublic void stop()
TopicPanelstop in interface TopicPanelpublic void initInfo()
public void refreshInfo()
private javax.swing.JPanel getButtonPanel()
private TopicMap getCurrentTopicMap()
private java.lang.String getCurrentLayerName()
public void refresh()
throws TopicMapException
TopicPanelrefresh in interface TopicPanelTopicMapExceptionpublic void run()
run in interface java.lang.Runnablepublic 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 boolean noScroll()
TopicPanelnoScroll in interface TopicPanelpublic int getOrder()
TopicPanelgetOrder 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