|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MenuCreator
This interface represents an object that can create the menus for the predictive editor.
DefaultMenuCreator
is the menu creator used by default.
Method Summary | |
---|---|
MenuEntry |
createMenuEntry(ConcreteOption option)
This method must create and return the menu entry object for the given concrete option. |
java.util.List<SpecialMenuItem> |
createSpecialMenuItems(NextTokenOptions options)
This method should return the special menu items for the given situation (described by the next token options). |
int |
getColorShift(java.lang.String menuBlockName)
This method should return the shift of the color to be used for the given menu block. |
java.util.List<java.lang.String> |
getMenuGroupOrdering()
This method can be used to define the ordering of the menu groups. |
java.util.Comparator<MenuItem> |
getMenuItemComparator()
This method can return a comparator to define the order of the menu items within each menu group. |
Method Detail |
---|
MenuEntry createMenuEntry(ConcreteOption option)
option
- The concrete option that represents a possible next token.
java.util.List<SpecialMenuItem> createSpecialMenuItems(NextTokenOptions options)
options
- The options for the next token.
java.util.List<java.lang.String> getMenuGroupOrdering()
int getColorShift(java.lang.String menuBlockName)
menuBlockName
- The name of the menu block for which the color shift should be
returned.
java.util.Comparator<MenuItem> getMenuItemComparator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |