|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ter.util.DictionnaryWordStyle
Title: DictionnaryWordStyle
Description: this class represent a dictionnary of words that are associated with some Style. This class is usefull with the JTextPaneAutoStyled.
Copyright: Copyright (c) 2003
Company:
Style
,
JTextPaneAutoStyled
Constructor Summary | |
DictionnaryWordStyle()
Create a new empty dictionnary. |
Method Summary | |
void |
addEntrie(java.lang.String word,
java.lang.String styleName)
Add an entrie to the dictionnary |
java.lang.String |
getStyleForThisWord(java.lang.String aWord)
|
void |
SetStyleForThisWord(java.lang.String aWord,
java.lang.String c)
Set the word to the new Style. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DictionnaryWordStyle()
Method Detail |
public void addEntrie(java.lang.String word, java.lang.String styleName)
word
- the word to be styledstyleName
- the name of the stylepublic java.lang.String getStyleForThisWord(java.lang.String aWord)
aWord
- the word we want the associated style.
public void SetStyleForThisWord(java.lang.String aWord, java.lang.String c)
aWord
- the word to change the stylec
- the new name of the style.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |