public class SubMenu
extends Object
Modifier and Type | Field and Description |
---|---|
String |
accelerator
Defines the hotkey that can be used to jump to this entry.
|
List<SubMenu> |
children |
String |
configIndex
This field provides a shortcut to make this menu's command act as the configToggle(string config) command.
|
String |
consoleCommand
Defines the command to be executed when the user clicks on this menu item.
|
boolean |
disabled
Defines whether this menuitem is disabled or not.
|
boolean |
separator
Defines whether this menuitem acts as a separator or not.
|
String |
title
Defines the text that will be displayed on this menu item.
|
Constructor and Description |
---|
SubMenu(String title)
Creates a new SubMenu with given title and default properties.
|
SubMenu(String accelerator,
String configIndex,
String consoleCommand,
boolean disabled,
boolean separator,
String title)
Creates a new SubMenu with the given properties.
|
Modifier and Type | Method and Description |
---|---|
void |
addSubMenu(SubMenu subMenu) |
String |
toString() |
public List<SubMenu> children
public String consoleCommand
public String accelerator
public String configIndex
public boolean disabled
public boolean separator
public String title
public SubMenu(String accelerator, String configIndex, String consoleCommand, boolean disabled, boolean separator, String title)
public SubMenu(String title)
public void addSubMenu(SubMenu subMenu)
public String toString()
toString
in class Object