public class CtxMenuManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
char[] |
addEntry(char[] letters,
java.lang.Object id,
char c,
boolean after)
Create a new char array with the letter associated to this id the place after or before the one of the letter c.
|
char[] |
addEntry(char[] letters,
java.lang.Object id,
int index)
Create a new char array with the letter associated to this id at the given index.
|
char[] |
addEntry(char[] letters,
java.lang.Object id,
java.lang.Object idPreviousEntry,
boolean after)
Create a new char array with the letter associated to this id the place after or before the one of the letter bounds to the idPreviousEntry.
|
char[] |
addEntryAtBottom(char[] letters,
java.lang.Object id)
Create a new char array with the letter associated to this id at the end.
|
char[] |
addEntryAtTop(char[] letters,
java.lang.Object id)
Create a new char array with the letter associated to this id at the top.
|
char |
createMenuEntry(java.lang.Object id,
java.lang.Class<? extends AbstractCtxMenu> ctxMenuClazz)
Retrieve or create a letter and associates it with the id for this ctx menu.
|
static CtxMenuManager |
getInstance() |
boolean |
isCurrent(java.lang.Object id,
char letter)
Tell if the given id corresponds to the given letter in the menu.
|
public static CtxMenuManager getInstance()
public char createMenuEntry(java.lang.Object id, java.lang.Class<? extends AbstractCtxMenu> ctxMenuClazz)
id
- an object to handle the new entryctxMenuClazz
- the given ctx menupublic boolean isCurrent(java.lang.Object id, char letter)
id
- letter
- public char[] addEntryAtBottom(char[] letters, java.lang.Object id)
letters
- the previous char arrayid
- public char[] addEntryAtTop(char[] letters, java.lang.Object id)
letters
- the previous char arrayid
- public char[] addEntry(char[] letters, java.lang.Object id, int index)
letters
- the previous char arrayid
- index
- the index (from 0 to letters.length) of the new letterpublic char[] addEntry(char[] letters, java.lang.Object id, char c, boolean after)
letters
- the previous char arrayid
- c
- the letterafter
- to place the new entry after the previous one (otherwise, before)public char[] addEntry(char[] letters, java.lang.Object id, java.lang.Object idPreviousEntry, boolean after)
letters
- the previous char arrayid
- idPreviousEntry
- the id that bounds to the letterafter
- to place the new entry after the previous one (otherwise, before)Copyright © 2001-2018 Jalios SA. All Rights Reserved.