public class StringMenuFactoryImpl extends Object implements StringMenuFactory
| Constructor and Description |
|---|
StringMenuFactoryImpl(Preferences preferences,
Workbench workbench) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Comparable<T> & Serializable> |
getMenu(Class<T> clazz,
String preferenceKey)
Get a menu.
|
public StringMenuFactoryImpl(Preferences preferences, Workbench workbench)
public <T extends Comparable<T> & Serializable> StringMenu<T> getMenu(Class<T> clazz, String preferenceKey)
StringMenuFactorygetMenu in interface StringMenuFactoryclazz - The that is the value of the menu items.preferenceKey - The key to use to store the menu when the application shuts
down. Will be used to restore the menu when it is created.Copyright © 2012. All Rights Reserved.