public class HintManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
fillString(java.lang.String source)
Return the longest text that can be appended to the one typed by the user (which is the argument provided).
|
void |
generateHints(java.lang.String source)
Internally update the list of hints, based on what the user has typed.
|
static HintManager |
get(GUIPanel gp)
Singleton getter
|
java.lang.String |
getHints(java.lang.String source) |
public static HintManager get(GUIPanel gp)
gp
- the GUIPanel
to assign to this HintManager
public java.lang.String getHints(java.lang.String source)
source
- the string typed by the userpublic java.lang.String fillString(java.lang.String source)
source
- the string typed by the user which should be filledpublic void generateHints(java.lang.String source)
source
- the string typed by the user