Package burp.api.montoya.ui.menu
Interface BasicMenuItem
-
Method Summary
Modifier and TypeMethodDescriptionvoid
action()
The action performed when theBasicMenuItem
is clicked.static BasicMenuItem
basicMenuItem
(String caption) Create a new instance ofBasicMenuItem
with a caption.withAction
(Runnable action) Create a copy ofBasicMenuItem
with a newRunnable
action.withCaption
(String caption) Create a copy ofBasicMenuItem
with a new caption.
-
Method Details
-
action
void action()The action performed when theBasicMenuItem
is clicked. -
withAction
Create a copy ofBasicMenuItem
with a newRunnable
action.- Parameters:
action
- The newRunnable
action.- Returns:
- An updated copy of
BasicMenuItem
.
-
withCaption
Create a copy ofBasicMenuItem
with a new caption.- Parameters:
caption
- The new caption.- Returns:
- An updated copy of
BasicMenuItem
-
basicMenuItem
Create a new instance ofBasicMenuItem
with a caption.- Parameters:
caption
- The caption for theBasicMenuItem
.- Returns:
- A new instance of the
BasicMenuItem
.
-