org.tbee.swing
Class StandardComponentPopupMenu

java.lang.Object
  extended by org.tbee.swing.StandardComponentPopupMenu
All Implemented Interfaces:
ClipboardOwner, EventListener, PopupMenuListener

public class StandardComponentPopupMenu
extends Object
implements ClipboardOwner, PopupMenuListener

Allow for popup menu's on all components by default. Usage: StandardComponentPopupMenu.install();

Version:
$Revision: 1.82 $

Field Summary
protected  ResourceBundle iResourceBundle
           
static String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
StandardComponentPopupMenu()
           
 
Method Summary
 void addIgnoreClass(Class c)
          Ignore Class
 void addIgnoreComponent(Component c)
          Ignore single component
 void awtEventOccured(AWTEvent event)
           
 void fileTreePanelRefresh_click(Map<String,Object> parameters)
           
static StandardComponentPopupMenu get()
          Singleton
 Component getComponent()
          get the component that is clicked upon
 JMenu getExtendedMenu(Class c)
           
 JPopupMenu getExtendedMenu(Object c)
           
 List<Class> getIgnoreClass()
           
 List<Component> getIgnoreComponent()
           
static Component getPoppedOverComponent()
          identical to getComponent, only static
static void install()
          Install me
static boolean isInstalled()
           
 boolean isPopupVisible()
           
 void jcheckBoxCopyText_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jcomponentPrint_click(Map<String,Object> parameters)
          handle the click on the menuitem
 void jcomponentPrintWindow_click(Map<String,Object> parameters)
          handle the click on the menuitem
 void jlabelCopyImage_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jlabelCopyText_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jlabelShowImage_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jlistClearSelection_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jlistCopyAll_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jlistCopySelection_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jlistCopyUnderMouse_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jradioButtonCopyText_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableAddRow_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableAllRowsThisSize_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableAutoResizeAll_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableAutoResizeLast_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableAutoResizeNext_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableAutoResizeOff_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableAutoResizeSubsequent_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableClearSelection_click()
          handle the click on the table menu
 void jtableCopy_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableCopySelection_click()
          handle the click on the table menu
 void jtableCutSelection_click()
          handle the click on the table menu
 void jtableDeleteRow_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableFilter_click()
          handle the click on the table menu
 void jtableheaderNoSort_click(Map<String,Object> parameters)
          handle the click on the menu
 void jtableheaderNoSort2_click(Map<String,Object> parameters)
          handle the click on the menu
 void jtableheaderNoSortAll_click(Map<String,Object> parameters)
          handle the click on the menu
 void jtableheaderNoSortAll2_click(Map<String,Object> parameters)
          handle the click on the menu
 void jtableheaderSortAsc_click(Map<String,Object> parameters)
          handle the click on the menu
 void jtableheaderSortAsc2_click(Map<String,Object> parameters)
          handle the click on the menu
 void jtableheaderSortAscAlso_click(Map<String,Object> parameters)
          handle the click on the menu
 void jtableheaderSortAscAlso2_click(Map<String,Object> parameters)
          handle the click on the menu
 void jtableheaderSortDesc_click(Map<String,Object> parameters)
          handle the click on the menu
 void jtableheaderSortDesc2_click(Map<String,Object> parameters)
          handle the click on the menu
 void jtableheaderSortDescAlso_click(Map<String,Object> parameters)
          handle the click on the menu
 void jtableheaderSortDescAlso2_click(Map<String,Object> parameters)
          handle the click on the menu
 void jtablePaste_click()
          handle the click on the table menu
 void jtableRememberAutoSave_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableRememberColumnOrder_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableRememberColumnVisible_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableRememberColumnWidths_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableRememberRestore_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtableSelectAll_click()
          handle the click on the table menu
 void jtreeCopy_click(Map<String,Object> parameters)
          handle the click on the table menu
 void jtreeRedo_click()
          handle the click on the table menu
 void jtreeUndo_click()
          handle the click on the table menu
 void lostOwnership(Clipboard clip, Transferable tr)
          called when someone else puts something on the clipboard
 void popupMenuCanceled(PopupMenuEvent e)
           
 void popupMenuWillBecomeInvisible(PopupMenuEvent e)
           
 void popupMenuWillBecomeVisible(PopupMenuEvent e)
           
 void removeExtendedMenu(Class c)
           
 void removeExtendedMenu(Object c)
           
 void removeIgnoreClass(Class c)
           
 void removeIgnoreComponent(Component c)
           
 void setExtendedMenu(Class c, JMenu menu)
          Allow for extended menu's on certain classes.
 void setExtendedMenu(Object c, JMenu menu)
          Allow for extended menu's on specific objects.
 void showJCheckBoxMenu(JCheckBox list, MouseEvent mouseEvent)
          show the menu associated with tables
 void showJComponentMenu(Component component, MouseEvent mouseEvent, JPopupMenu menu, String prefix)
          for reuse: compose the menu associated with components
 void showJComponentMenu(JComponent component, MouseEvent mouseEvent)
          show the menu associated with jcomponents
protected  void showJLabelComponentMenu(JLabel component, MouseEvent mouseEvent)
          show the menu associated with TextComponents
protected  void showJLabelComponentMenu(JLabel component, MouseEvent mouseEvent, JPopupMenu lJPopupMenu, String prefix)
          show the menu associated with TextComponents
 void showJListMenu(JList list, MouseEvent mouseEvent)
          show the menu associated with tables
 void showJRadioButtonMenu(JRadioButton list, MouseEvent mouseEvent)
          show the menu associated with tables
 void showJTableHeaderMenu(JTableHeader tableHeader, MouseEvent mouseEvent)
          show the menu associated with tables
 void showJTableMenu(JTable table, MouseEvent mouseEvent)
          show the menu associated with tables
protected  void showJTextComponentMenu(JTextComponent component, MouseEvent mouseEvent)
          show the menu associated with TextComponents
 void showJTreeMenu(JTree tree, MouseEvent mouseEvent)
          show the menu associated with tables
 void textPopup_click()
          popup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values

iResourceBundle

protected ResourceBundle iResourceBundle
Constructor Detail

StandardComponentPopupMenu

public StandardComponentPopupMenu()
Method Detail

install

public static void install()
Install me


isInstalled

public static boolean isInstalled()

get

public static StandardComponentPopupMenu get()
Singleton

Returns:

awtEventOccured

public void awtEventOccured(AWTEvent event)

getComponent

public Component getComponent()
get the component that is clicked upon

Returns:

getPoppedOverComponent

public static Component getPoppedOverComponent()
identical to getComponent, only static

Returns:

setExtendedMenu

public void setExtendedMenu(Class c,
                            JMenu menu)
Allow for extended menu's on certain classes.


getExtendedMenu

public JMenu getExtendedMenu(Class c)

removeExtendedMenu

public void removeExtendedMenu(Class c)

addIgnoreClass

public void addIgnoreClass(Class c)
Ignore Class


removeIgnoreClass

public void removeIgnoreClass(Class c)

getIgnoreClass

public List<Class> getIgnoreClass()

setExtendedMenu

public void setExtendedMenu(Object c,
                            JMenu menu)
Allow for extended menu's on specific objects.


getExtendedMenu

public JPopupMenu getExtendedMenu(Object c)

removeExtendedMenu

public void removeExtendedMenu(Object c)

addIgnoreComponent

public void addIgnoreComponent(Component c)
Ignore single component


removeIgnoreComponent

public void removeIgnoreComponent(Component c)

getIgnoreComponent

public List<Component> getIgnoreComponent()

showJComponentMenu

public void showJComponentMenu(JComponent component,
                               MouseEvent mouseEvent)
show the menu associated with jcomponents


showJComponentMenu

public void showJComponentMenu(Component component,
                               MouseEvent mouseEvent,
                               JPopupMenu menu,
                               String prefix)
for reuse: compose the menu associated with components


jcomponentPrint_click

public void jcomponentPrint_click(Map<String,Object> parameters)
handle the click on the menuitem


jcomponentPrintWindow_click

public void jcomponentPrintWindow_click(Map<String,Object> parameters)
handle the click on the menuitem


showJTableMenu

public void showJTableMenu(JTable table,
                           MouseEvent mouseEvent)
show the menu associated with tables


jtableCopy_click

public void jtableCopy_click(Map<String,Object> parameters)
handle the click on the table menu


jtableCopySelection_click

public void jtableCopySelection_click()
handle the click on the table menu


jtableCutSelection_click

public void jtableCutSelection_click()
handle the click on the table menu


jtablePaste_click

public void jtablePaste_click()
handle the click on the table menu


jtableFilter_click

public void jtableFilter_click()
handle the click on the table menu


jtableAllRowsThisSize_click

public void jtableAllRowsThisSize_click(Map<String,Object> parameters)
handle the click on the table menu


jtableSelectAll_click

public void jtableSelectAll_click()
handle the click on the table menu

Parameters:
e -
v -

jtableClearSelection_click

public void jtableClearSelection_click()
handle the click on the table menu

Parameters:
e -
v -

jtableAddRow_click

public void jtableAddRow_click(Map<String,Object> parameters)
handle the click on the table menu


jtableDeleteRow_click

public void jtableDeleteRow_click(Map<String,Object> parameters)
handle the click on the table menu


jtableAutoResizeOff_click

public void jtableAutoResizeOff_click(Map<String,Object> parameters)
handle the click on the table menu


jtableAutoResizeAll_click

public void jtableAutoResizeAll_click(Map<String,Object> parameters)
handle the click on the table menu


jtableAutoResizeLast_click

public void jtableAutoResizeLast_click(Map<String,Object> parameters)
handle the click on the table menu


jtableAutoResizeSubsequent_click

public void jtableAutoResizeSubsequent_click(Map<String,Object> parameters)
handle the click on the table menu


jtableAutoResizeNext_click

public void jtableAutoResizeNext_click(Map<String,Object> parameters)
handle the click on the table menu


jtableRememberRestore_click

public void jtableRememberRestore_click(Map<String,Object> parameters)
handle the click on the table menu


jtableRememberColumnWidths_click

public void jtableRememberColumnWidths_click(Map<String,Object> parameters)
handle the click on the table menu


jtableRememberColumnOrder_click

public void jtableRememberColumnOrder_click(Map<String,Object> parameters)
handle the click on the table menu


jtableRememberColumnVisible_click

public void jtableRememberColumnVisible_click(Map<String,Object> parameters)
handle the click on the table menu


jtableRememberAutoSave_click

public void jtableRememberAutoSave_click(Map<String,Object> parameters)
handle the click on the table menu


showJTableHeaderMenu

public void showJTableHeaderMenu(JTableHeader tableHeader,
                                 MouseEvent mouseEvent)
show the menu associated with tables


jtableheaderNoSortAll_click

public void jtableheaderNoSortAll_click(Map<String,Object> parameters)
handle the click on the menu


jtableheaderNoSort_click

public void jtableheaderNoSort_click(Map<String,Object> parameters)
handle the click on the menu


jtableheaderSortDesc_click

public void jtableheaderSortDesc_click(Map<String,Object> parameters)
handle the click on the menu


jtableheaderSortDescAlso_click

public void jtableheaderSortDescAlso_click(Map<String,Object> parameters)
handle the click on the menu


jtableheaderSortAsc_click

public void jtableheaderSortAsc_click(Map<String,Object> parameters)
handle the click on the menu


jtableheaderSortAscAlso_click

public void jtableheaderSortAscAlso_click(Map<String,Object> parameters)
handle the click on the menu


jtableheaderNoSortAll2_click

public void jtableheaderNoSortAll2_click(Map<String,Object> parameters)
handle the click on the menu


jtableheaderNoSort2_click

public void jtableheaderNoSort2_click(Map<String,Object> parameters)
handle the click on the menu


jtableheaderSortDesc2_click

public void jtableheaderSortDesc2_click(Map<String,Object> parameters)
handle the click on the menu


jtableheaderSortDescAlso2_click

public void jtableheaderSortDescAlso2_click(Map<String,Object> parameters)
handle the click on the menu


jtableheaderSortAsc2_click

public void jtableheaderSortAsc2_click(Map<String,Object> parameters)
handle the click on the menu


jtableheaderSortAscAlso2_click

public void jtableheaderSortAscAlso2_click(Map<String,Object> parameters)
handle the click on the menu


showJTreeMenu

public void showJTreeMenu(JTree tree,
                          MouseEvent mouseEvent)
show the menu associated with tables


jtreeCopy_click

public void jtreeCopy_click(Map<String,Object> parameters)
handle the click on the table menu


jtreeUndo_click

public void jtreeUndo_click()
handle the click on the table menu


jtreeRedo_click

public void jtreeRedo_click()
handle the click on the table menu


fileTreePanelRefresh_click

public void fileTreePanelRefresh_click(Map<String,Object> parameters)
Parameters:
e -
v -

showJTextComponentMenu

protected void showJTextComponentMenu(JTextComponent component,
                                      MouseEvent mouseEvent)
show the menu associated with TextComponents


textPopup_click

public void textPopup_click()
popup


showJLabelComponentMenu

protected void showJLabelComponentMenu(JLabel component,
                                       MouseEvent mouseEvent)
show the menu associated with TextComponents


showJLabelComponentMenu

protected void showJLabelComponentMenu(JLabel component,
                                       MouseEvent mouseEvent,
                                       JPopupMenu lJPopupMenu,
                                       String prefix)
show the menu associated with TextComponents


jlabelCopyText_click

public void jlabelCopyText_click(Map<String,Object> parameters)
handle the click on the table menu

Parameters:
e -
v -

jlabelCopyImage_click

public void jlabelCopyImage_click(Map<String,Object> parameters)
handle the click on the table menu

Parameters:
e -
v -

jlabelShowImage_click

public void jlabelShowImage_click(Map<String,Object> parameters)
handle the click on the table menu

Parameters:
e -
v -

lostOwnership

public void lostOwnership(Clipboard clip,
                          Transferable tr)
called when someone else puts something on the clipboard

Specified by:
lostOwnership in interface ClipboardOwner

showJListMenu

public void showJListMenu(JList list,
                          MouseEvent mouseEvent)
show the menu associated with tables


jlistCopyUnderMouse_click

public void jlistCopyUnderMouse_click(Map<String,Object> parameters)
handle the click on the table menu


jlistCopySelection_click

public void jlistCopySelection_click(Map<String,Object> parameters)
handle the click on the table menu


jlistCopyAll_click

public void jlistCopyAll_click(Map<String,Object> parameters)
handle the click on the table menu


jlistClearSelection_click

public void jlistClearSelection_click(Map<String,Object> parameters)
handle the click on the table menu

Parameters:
e -
v -

showJCheckBoxMenu

public void showJCheckBoxMenu(JCheckBox list,
                              MouseEvent mouseEvent)
show the menu associated with tables


jcheckBoxCopyText_click

public void jcheckBoxCopyText_click(Map<String,Object> parameters)
handle the click on the table menu

Parameters:
e -
v -

showJRadioButtonMenu

public void showJRadioButtonMenu(JRadioButton list,
                                 MouseEvent mouseEvent)
show the menu associated with tables


jradioButtonCopyText_click

public void jradioButtonCopyText_click(Map<String,Object> parameters)
handle the click on the table menu

Parameters:
e -
v -

popupMenuWillBecomeVisible

public void popupMenuWillBecomeVisible(PopupMenuEvent e)
Specified by:
popupMenuWillBecomeVisible in interface PopupMenuListener

popupMenuWillBecomeInvisible

public void popupMenuWillBecomeInvisible(PopupMenuEvent e)
Specified by:
popupMenuWillBecomeInvisible in interface PopupMenuListener

popupMenuCanceled

public void popupMenuCanceled(PopupMenuEvent e)
Specified by:
popupMenuCanceled in interface PopupMenuListener

isPopupVisible

public boolean isPopupVisible()


Copyright © 2012 KnowledgePlaza. All Rights Reserved.