fi.hut.tml.xsmiles.gui.components.swing
Class SwingLinkPopup

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.components.swing.SwingPopup
      extended byfi.hut.tml.xsmiles.gui.components.swing.SwingLinkPopup
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class SwingLinkPopup
extends SwingPopup
implements java.awt.event.ActionListener

A Menu, that can be opened when the user clicks right mouse button on a link

Author:
Mikko Honkala

Field Summary
protected  javax.swing.JMenuItem copyLinkLocationItem
           
protected  javax.swing.JMenuItem newWindowItem
           
protected  javax.swing.JMenuItem openInTabItem
           
protected  javax.swing.JMenuItem saveLinkTargetItem
           
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.swing.SwingPopup
bw, document, popup, url
 
Constructor Summary
SwingLinkPopup()
          Swing link popup menu
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void copyToClipboard(java.lang.String st)
           
 void init()
           
 void show(java.awt.Component comp, int x, int y, XMLDocument doc, java.net.URL link, MLFCListener window)
           
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.swing.SwingPopup
addSeparator, createItem, isTabbed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newWindowItem

protected javax.swing.JMenuItem newWindowItem

saveLinkTargetItem

protected javax.swing.JMenuItem saveLinkTargetItem

copyLinkLocationItem

protected javax.swing.JMenuItem copyLinkLocationItem

openInTabItem

protected javax.swing.JMenuItem openInTabItem
Constructor Detail

SwingLinkPopup

public SwingLinkPopup()
Swing link popup menu

Method Detail

show

public void show(java.awt.Component comp,
                 int x,
                 int y,
                 XMLDocument doc,
                 java.net.URL link,
                 MLFCListener window)

init

public void init()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

copyToClipboard

public void copyToClipboard(java.lang.String st)


X-Smiles 1.2