|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmars.venus.editors.jeditsyntax.PopupHelpItem
public class PopupHelpItem
Handly little class to contain help information for a popupMenu or tool tip item.
Constructor Summary | |
---|---|
PopupHelpItem(String tokenText,
String example,
String description)
Create popup help item, where match is result of an exact-match search. |
|
PopupHelpItem(String tokenText,
String example,
String description,
boolean exact)
Create popup help item. |
Method Summary | |
---|---|
String |
getDescription()
|
boolean |
getExact()
Determines whether match occurred in an exact-match or prefix-match search. |
String |
getExample()
|
int |
getExampleLength()
|
String |
getExamplePaddedToLength(int length)
|
String |
getTokenText()
The document text that mached this item |
static int |
maxExampleLength(ArrayList matches)
|
void |
setDescription(String description)
|
void |
setExample(String example)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PopupHelpItem(String tokenText, String example, String description, boolean exact)
tokenText
- The document text that matchedexample
- An example instructiondescription
- A textual description of the instructionexact
- True if match occurred as result of exact-match search, false otherwise.public PopupHelpItem(String tokenText, String example, String description)
tokenText
- The document text that matchedexample
- An example instructiondescription
- A textual description of the instructionMethod Detail |
---|
public String getTokenText()
public String getExample()
public String getDescription()
public boolean getExact()
public int getExampleLength()
public String getExamplePaddedToLength(int length)
public void setExample(String example)
public void setDescription(String description)
public static int maxExampleLength(ArrayList matches)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |