net.ajaest.lib.swing.util
Class EditContextMenuEngine
java.lang.Object
net.ajaest.lib.swing.util.EditContextMenuEngine
- All Implemented Interfaces:
- WinHandler
public class EditContextMenuEngine
- extends java.lang.Object
- implements WinHandler
Method Summary |
javax.swing.JPopupMenu |
addContextMenu(javax.swing.JComponent c)
Adds a default edit context menu to the specified component. |
javax.swing.JPopupMenu |
addContextMenu(javax.swing.JComponent c,
javax.swing.JPopupMenu jpm)
Adds manually an edit context menu to the specified component. |
private javax.swing.JPopupMenu |
createDefaultEditContextMenu(java.awt.Component c)
Returns null if no default edit context menu can be created |
javax.swing.JPopupMenu |
getContextMenu(java.awt.Component c)
|
java.awt.Font |
getUnicodeFont()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
menus
private java.util.Map<java.awt.Component,javax.swing.JPopupMenu> menus
messages
private java.util.Map<SwingMessagesEnums.ContextMenuEnums.editMenu,java.lang.String> messages
cmml
private EditContextMenuEngine.ContextMenuMouseListener cmml
EditContextMenuEngine
public EditContextMenuEngine(SystemEnums.ISO639ー1 messageLang)
addContextMenu
public javax.swing.JPopupMenu addContextMenu(javax.swing.JComponent c,
javax.swing.JPopupMenu jpm)
- Adds manually an edit context menu to the specified component.
- Parameters:
c
- the component to which context menu will be added.jpm
- the pop menu to be added
- Returns:
- the added
JPopupMenu
, null if no context menu were added.
addContextMenu
public javax.swing.JPopupMenu addContextMenu(javax.swing.JComponent c)
- Adds a default edit context menu to the specified component.
- Parameters:
c
- the component to which context menu will be added.
- Returns:
- the added
JPopupMenu
, null if no context menu were added.
createDefaultEditContextMenu
private javax.swing.JPopupMenu createDefaultEditContextMenu(java.awt.Component c)
- Returns
null
if no default edit context menu can be created
getContextMenu
public javax.swing.JPopupMenu getContextMenu(java.awt.Component c)
getUnicodeFont
public java.awt.Font getUnicodeFont()
- Specified by:
getUnicodeFont
in interface WinHandler