Package ca.cgjennings.ui.textedit
Interface CodeEditorBase.PopupMenuBuilder
-
- Enclosing class:
- CodeEditorBase
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface CodeEditorBase.PopupMenuBuilder
Interface implemented by code editor users to create custom popup menus.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.swing.JPopupMenu
buildMenu(CodeEditorBase editor, javax.swing.JPopupMenu menu)
Called to create the popup menu for the current editor state.
-
-
-
Method Detail
-
buildMenu
javax.swing.JPopupMenu buildMenu(CodeEditorBase editor, javax.swing.JPopupMenu menu)
Called to create the popup menu for the current editor state.- Parameters:
editor
- the editor component which will display a menumenu
- a default menu that can be extended- Returns:
- the menu to display, or null
-
-