public class WebViewTopicPanel extends java.lang.Object implements TopicPanel
Modifier and Type | Field and Description |
---|---|
private Topic |
currentTopic |
private WebViewPanel |
webPanel |
Constructor and Description |
---|
WebViewTopicPanel() |
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.
|
java.lang.Object |
executeJavascript(java.lang.String script) |
private javax.swing.JPanel |
getErrorPanel() |
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 |
getSelectedText() |
java.lang.String |
getSource() |
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() |
javafx.scene.web.WebEngine |
getWebEngine() |
java.lang.String |
getWebLocation() |
java.lang.String |
getWebTitle() |
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.
|
private Topic currentTopic
private WebViewPanel webPanel
public void init()
TopicPanel
init
in interface TopicPanel
public boolean supportsOpenTopic()
TopicPanel
supportsOpenTopic
in interface TopicPanel
public void open(Topic topic) throws TopicMapException
TopicPanel
open
in interface TopicPanel
TopicMapException
public void stop()
TopicPanel
stop
in interface TopicPanel
public void refresh() throws TopicMapException
TopicPanel
refresh
in interface TopicPanel
TopicMapException
public boolean applyChanges() throws CancelledException, TopicMapException
TopicPanel
applyChanges
in interface TopicPanel
CancelledException
TopicMapException
public javax.swing.JPanel getGui()
TopicPanel
getGui
in interface TopicPanel
private javax.swing.JPanel getErrorPanel()
public Topic getTopic() throws TopicMapException
TopicPanel
getTopic
in interface TopicPanel
TopicMapException
public java.lang.String getName()
TopicPanel
getName
in interface TopicPanel
public java.lang.String getTitle()
TopicPanel
getTitle
in interface TopicPanel
public javax.swing.Icon getIcon()
TopicPanel
getIcon
in interface TopicPanel
public int getOrder()
TopicPanel
getOrder
in interface TopicPanel
public java.lang.Object[] getViewMenuStruct()
TopicPanel
getViewMenuStruct
in interface TopicPanel
public javax.swing.JMenu getViewMenu()
getViewMenu
in interface TopicPanel
public javax.swing.JPopupMenu getViewPopupMenu()
getViewPopupMenu
in interface TopicPanel
public LocatorHistory getTopicHistory()
TopicPanel
getTopicHistory
in interface TopicPanel
public boolean noScroll()
TopicPanel
noScroll
in interface TopicPanel
public javafx.scene.web.WebEngine getWebEngine()
public java.lang.String getWebLocation()
public java.lang.String getSource()
public java.lang.String getSelectedText()
public java.lang.String getWebTitle()
public java.lang.Object executeJavascript(java.lang.String script)
public void topicSubjectIdentifierChanged(Topic t, Locator added, Locator removed) throws TopicMapException
TopicMapListener
topicSubjectIdentifierChanged
in interface TopicMapListener
TopicMapException
public void topicBaseNameChanged(Topic t, java.lang.String newName, java.lang.String oldName) throws TopicMapException
TopicMapListener
topicBaseNameChanged
in interface TopicMapListener
TopicMapException
public void topicTypeChanged(Topic t, Topic added, Topic removed) throws TopicMapException
TopicMapListener
topicTypeChanged
in interface TopicMapListener
TopicMapException
public void topicVariantChanged(Topic t, java.util.Collection<Topic> scope, java.lang.String newName, java.lang.String oldName) throws TopicMapException
TopicMapListener
topicVariantChanged
in interface TopicMapListener
TopicMapException
public void topicDataChanged(Topic t, Topic type, Topic version, java.lang.String newValue, java.lang.String oldValue) throws TopicMapException
TopicMapListener
topicDataChanged
in interface TopicMapListener
TopicMapException
public void topicSubjectLocatorChanged(Topic t, Locator newLocator, Locator oldLocator) throws TopicMapException
TopicMapListener
topicSubjectLocatorChanged
in interface TopicMapListener
TopicMapException
public void topicRemoved(Topic t) throws TopicMapException
TopicMapListener
topicRemoved
in interface TopicMapListener
TopicMapException
public void topicChanged(Topic t) throws TopicMapException
TopicMapListener
topicChanged
in interface TopicMapListener
TopicMapException
public void associationTypeChanged(Association a, Topic newType, Topic oldType) throws TopicMapException
TopicMapListener
associationTypeChanged
in interface TopicMapListener
TopicMapException
public void associationPlayerChanged(Association a, Topic role, Topic newPlayer, Topic oldPlayer) throws TopicMapException
TopicMapListener
associationPlayerChanged
in interface TopicMapListener
TopicMapException
public void associationRemoved(Association a) throws TopicMapException
TopicMapListener
associationRemoved
in interface TopicMapListener
TopicMapException
public void associationChanged(Association a) throws TopicMapException
TopicMapListener
associationChanged
in interface TopicMapListener
TopicMapException
Copyright 2004-2015 Wandora Team