public class WebViewPanel extends javax.swing.JPanel implements TopicMapListener, RefreshListener, java.awt.event.ActionListener, java.awt.event.ComponentListener
| Modifier and Type | Class and Description |
|---|---|
class |
WebViewPanel.WandoraJFXPanel |
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
private javax.swing.JButton |
backButton |
private BrowserExtractorManager |
browserExtractorManager |
private javax.swing.JPanel |
buttonPanel |
private static java.lang.String |
failedToOpenMessage |
private javax.swing.JButton |
forwardButton |
private java.awt.Component |
fxPanelHandle |
private boolean |
informPopupBlocking |
private boolean |
informVisibilityChanges |
private boolean |
isUIInitialized |
static java.lang.String |
javaFXVersion |
static int |
javaFXVersionInt |
private static java.lang.String |
JAVASCRIPT_RESOURCE_GET_SELECTED_SOURCE |
private static java.lang.String |
JAVASCRIPT_RESOURCE_GET_SOURCE_WITH_SELECTION_INDEXES |
private javax.swing.JButton |
menuButton |
private Options |
options |
private javax.swing.JButton |
reloadButton |
private Topic |
rootTopic |
private java.lang.Object |
scriptReturn |
private ModulesWebApp |
selectedWebApp |
private javax.swing.JButton |
stopButton |
private java.lang.String |
title |
private TopicMap |
tm |
private javax.swing.JTextField |
urlTextField |
boolean |
USE_LOCAL_OPTIONS |
private boolean |
viewBrowser |
private static java.awt.Color |
WEBAPP_ACTIVE_COLOR |
private static java.awt.Color |
WEBAPP_PASSIVE_COLOR |
private javafx.scene.web.WebEngine |
webEngine |
private java.lang.String |
webSource |
private javafx.scene.web.WebView |
webView |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
WebViewPanel()
Creates new form WebViewPanel
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
boolean |
applyChanges() |
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.
|
private void |
backButtonActionPerformed(java.awt.event.ActionEvent evt) |
void |
browse(java.lang.String url) |
void |
browse(java.lang.String url,
boolean resetWebApp) |
void |
browse(Topic topic) |
void |
componentHidden(java.awt.event.ComponentEvent e) |
void |
componentMoved(java.awt.event.ComponentEvent e) |
void |
componentResized(java.awt.event.ComponentEvent e) |
void |
componentShown(java.awt.event.ComponentEvent e) |
void |
doRefresh() |
void |
executeScript(java.lang.String script) |
java.lang.Object |
executeSynchronizedScript(java.lang.String script) |
java.lang.Object |
executeSynchronizedScriptResource(java.lang.String scriptResource) |
private void |
forwardButtonActionPerformed(java.awt.event.ActionEvent evt) |
private java.lang.Object[] |
getBrowserMenuStruct() |
java.lang.String |
getSelectedSource() |
java.lang.String |
getSelectedText() |
java.awt.Image |
getSnapshot() |
java.lang.String |
getSource() |
Tuples.T3<java.lang.String,java.lang.Integer,java.lang.Integer> |
getSourceWithSelectionIndexes() |
java.lang.String |
getTitle() |
Topic |
getTopic() |
javafx.scene.web.WebEngine |
getWebEngine() |
java.lang.String |
getWebLocation() |
java.lang.String |
getWebTitle() |
private void |
handleComponentEvent(java.awt.event.ComponentEvent e) |
private void |
initComponents()
This method is called from within the constructor to initialize the form.
|
private void |
initFX(javafx.embed.swing.JFXPanel fxPanel) |
private void |
initializeUI() |
private void |
menuButtonMousePressed(java.awt.event.MouseEvent evt) |
void |
open(Topic topic) |
void |
openContent(java.lang.String str) |
void |
refresh() |
private void |
reloadButtonActionPerformed(java.awt.event.ActionEvent evt) |
private void |
startLoadingAnimation() |
void |
stop() |
private void |
stopButtonActionPerformed(java.awt.event.ActionEvent evt) |
private void |
stopLoadingAnimation() |
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 static java.lang.String |
toURL(java.lang.String str) |
private void |
urlTextFieldKeyPressed(java.awt.event.KeyEvent evt) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprivate static final java.lang.String JAVASCRIPT_RESOURCE_GET_SELECTED_SOURCE
private static final java.lang.String JAVASCRIPT_RESOURCE_GET_SOURCE_WITH_SELECTION_INDEXES
public static java.lang.String javaFXVersion
public static int javaFXVersionInt
public boolean USE_LOCAL_OPTIONS
private java.lang.String title
private Topic rootTopic
private TopicMap tm
private boolean isUIInitialized
private Options options
private java.awt.Component fxPanelHandle
private javafx.scene.web.WebView webView
private javafx.scene.web.WebEngine webEngine
private java.lang.String webSource
private boolean informPopupBlocking
private boolean informVisibilityChanges
private BrowserExtractorManager browserExtractorManager
private boolean viewBrowser
private static final java.lang.String failedToOpenMessage
private ModulesWebApp selectedWebApp
private static final java.awt.Color WEBAPP_ACTIVE_COLOR
private static final java.awt.Color WEBAPP_PASSIVE_COLOR
private javax.swing.JButton backButton
private javax.swing.JPanel buttonPanel
private javax.swing.JButton forwardButton
private javax.swing.JButton menuButton
private javax.swing.JButton reloadButton
private javax.swing.JButton stopButton
private javax.swing.JTextField urlTextField
private java.lang.Object scriptReturn
private void initComponents()
private void urlTextFieldKeyPressed(java.awt.event.KeyEvent evt)
private void backButtonActionPerformed(java.awt.event.ActionEvent evt)
private void forwardButtonActionPerformed(java.awt.event.ActionEvent evt)
private void menuButtonMousePressed(java.awt.event.MouseEvent evt)
private void reloadButtonActionPerformed(java.awt.event.ActionEvent evt)
private void stopButtonActionPerformed(java.awt.event.ActionEvent evt)
public javafx.scene.web.WebEngine getWebEngine()
public java.lang.String getWebLocation()
private java.lang.Object[] getBrowserMenuStruct()
private static java.lang.String toURL(java.lang.String str)
public 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 TopicMapListenerTopicMapExceptionpublic void doRefresh()
throws TopicMapException
doRefresh in interface RefreshListenerTopicMapExceptionpublic void open(Topic topic) throws TopicMapException
TopicMapExceptionpublic void openContent(java.lang.String str)
private void initializeUI()
public void browse(Topic topic)
public void browse(java.lang.String url)
public void browse(java.lang.String url,
boolean resetWebApp)
public void executeScript(java.lang.String script)
public java.lang.Object executeSynchronizedScript(java.lang.String script)
public java.lang.Object executeSynchronizedScriptResource(java.lang.String scriptResource)
private void startLoadingAnimation()
private void stopLoadingAnimation()
private void initFX(javafx.embed.swing.JFXPanel fxPanel)
public void stop()
public void refresh()
throws TopicMapException
TopicMapExceptionpublic boolean applyChanges()
throws CancelledException,
TopicMapException
CancelledExceptionTopicMapExceptionpublic Topic getTopic() throws TopicMapException
TopicMapExceptionpublic java.lang.String getTitle()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic java.awt.Image getSnapshot()
public java.lang.String getSelectedText()
public java.lang.String getSelectedSource()
public Tuples.T3<java.lang.String,java.lang.Integer,java.lang.Integer> getSourceWithSelectionIndexes()
public java.lang.String getSource()
public java.lang.String getWebTitle()
public void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListenerpublic void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenerpublic void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenerprivate void handleComponentEvent(java.awt.event.ComponentEvent e)
Copyright 2004-2015 Wandora Team