Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_WEIGHT |
Constructor and Description |
---|
MenuEntry(String name) |
MenuEntry(String name,
double weight) |
MenuEntry(String name,
double weight,
char mnemonic,
Accelerator acc,
String iconPath) |
Modifier and Type | Method and Description |
---|---|
void |
assignProperties(MenuEntry entry)
Updates any default properties of this menu entry to match those of the
given menu entry.
|
Accelerator |
getAccelerator() |
String |
getIconPath() |
char |
getMnemonic() |
String |
getName()
Gets the name of the object.
|
double |
getWeight() |
void |
setAccelerator(Accelerator accelerator) |
void |
setIconPath(String iconPath) |
void |
setMnemonic(char mnemonic) |
void |
setName(String name)
Sets the name of the object.
|
void |
setWeight(double weight) |
String |
toString() |
public static final double DEFAULT_WEIGHT
public MenuEntry(String name)
public MenuEntry(String name, double weight)
public MenuEntry(String name, double weight, char mnemonic, Accelerator acc, String iconPath)
public void setWeight(double weight)
public double getWeight()
public void setMnemonic(char mnemonic)
public char getMnemonic()
public void setAccelerator(Accelerator accelerator)
public Accelerator getAccelerator()
public void setIconPath(String iconPath)
public String getIconPath()
public void assignProperties(MenuEntry entry)
public String getName()
Named
public void setName(String name)
Named
Copyright © 2015–2022 SciJava. All rights reserved.