Module org.autogui
Package org.autogui.swing
Class GuiSwingViewCollectionTable.PopupExtensionCollection
java.lang.Object
org.autogui.swing.util.PopupExtension
org.autogui.swing.GuiSwingViewCollectionTable.PopupExtensionCollection
- All Implemented Interfaces:
ActionListener
,KeyListener
,MouseListener
,EventListener
,PopupMenuListener
- Enclosing class:
GuiSwingViewCollectionTable
public static class GuiSwingViewCollectionTable.PopupExtensionCollection
extends PopupExtension
implements PopupMenuListener
menu creation for selected rows and columns.
For columns, it uses GuiSwingViewCollectionTable.CollectionColumnMenuSupplier
.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.autogui.swing.util.PopupExtension
PopupExtension.DefaultPopupGetter, PopupExtension.DefaultPopupMenu, PopupExtension.MenuKeySelector, PopupExtension.PopupCancelChecker, PopupExtension.PopupExtensionDisplayAction, PopupExtension.PopupMenuBuilder, PopupExtension.PopupMenuBuilderEmpty, PopupExtension.PopupMenuFilter, PopupExtension.PopupMenuFilterAsIs, PopupExtension.PopupMenuHidingFix, PopupExtension.PopupMenuListenerForSetup, PopupExtension.PredicateKeyMatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set
<ObjectTableColumn.TableMenuCompositeShared> protected int
protected boolean
protected Timer
protected int
Fields inherited from class org.autogui.swing.util.PopupExtension
action, cancelChecker, filter, keyMatcher, menu, MENU_CATEGORY_EDIT, MENU_CATEGORY_JUMP, MENU_CATEGORY_PREFS, MENU_CATEGORY_SELECT, MENU_CATEGORY_SET, MENU_CATEGORY_TRANSFER, MENU_CATEGORY_UNDO, MENU_CATEGORY_VIEW, MENU_CATEGORY_WINDOW, MENU_FILTER_IDENTITY, MENU_SUB_CATEGORY_COPY, MENU_SUB_CATEGORY_CUT, MENU_SUB_CATEGORY_DELETE, MENU_SUB_CATEGORY_EXPORT, MENU_SUB_CATEGORY_IMPORT, MENU_SUB_CATEGORY_NEW, MENU_SUB_CATEGORY_PASTE, MENU_SUB_CATEGORY_PREFS_CHANGE, MENU_SUB_CATEGORY_PREFS_WINDOW, MENU_SUB_CATEGORY_REDO, MENU_SUB_CATEGORY_SELECT, MENU_SUB_CATEGORY_UNDO, MENU_SUB_CATEGORY_WINDOW_SELECT, MENU_SUB_CATEGORY_WINDOW_VIEW, menuBuilder, pane
-
Constructor Summary
ConstructorsConstructorDescriptionPopupExtensionCollection
(GuiSwingViewCollectionTable.CollectionTable pane, Predicate<KeyEvent> keyMatcher, Supplier<? extends Collection<PopupCategorized.CategorizedMenuItem>> items) -
Method Summary
Modifier and TypeMethodDescriptiongetTable()
int
void
Note: currently disabled using the mechanism, instead shown by framework original impl.void
void
void
void
void
void
void
void
void
Methods inherited from class org.autogui.swing.util.PopupExtension
actionPerformed, addListenersTo, addListenersToAsPopupMenuListener, addListenersToPane, getAction, getDefaultKeyMatcher, getDefaultKeyStroke, getFilter, getKeyCode, getKeyMatcher, getKeyStroke, getMenu, getMenuBuilder, getMenuShortcutKeyMask, getPane, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseReleased, setFilter, setMenuBuilder, setupCancelChecker, show, show
-
Field Details
-
table
-
targetColumnIndex
protected int targetColumnIndex -
lastClickColumnIndex
protected int lastClickColumnIndex -
showing
protected boolean showing -
showingTimer
-
-
Constructor Details
-
PopupExtensionCollection
public PopupExtensionCollection(GuiSwingViewCollectionTable.CollectionTable pane, Predicate<KeyEvent> keyMatcher, Supplier<? extends Collection<PopupCategorized.CategorizedMenuItem>> items)
-
-
Method Details
-
popupMenuWillBecomeVisible
- Specified by:
popupMenuWillBecomeVisible
in interfacePopupMenuListener
-
popupMenuWillBecomeInvisible
- Specified by:
popupMenuWillBecomeInvisible
in interfacePopupMenuListener
-
popupMenuCanceled
- Specified by:
popupMenuCanceled
in interfacePopupMenuListener
-
setupMenu
public void setupMenu()- Overrides:
setupMenu
in classPopupExtension
-
getTable
-
mousePressed
Description copied from class:PopupExtension
Note: currently disabled using the mechanism, instead shown by framework original impl. Some LAF relies on it.- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classPopupExtension
- Parameters:
e
- the handling event
-
updatePopupLocation
- Parameters:
p
- location with the table coordinate- Since:
- 1.3
-
showByKey
- Overrides:
showByKey
in classPopupExtension
-
getTargetColumnIndex
public int getTargetColumnIndex()- Returns:
- model index
-
getTargetColumn
-
getTargetColumns
-
setupCompositeKeyMap
public void setupCompositeKeyMap() -
setupCompositeKeyMapByAddingColumn
-