|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.valhalla.jbother.ConversationFormatter
public class ConversationFormatter
Replaces different emote symbols with images
| Field Summary | |
|---|---|
protected java.util.ResourceBundle |
resources
|
| Method Summary | |
|---|---|
java.lang.String |
checkHyperlink(java.lang.String text,
javax.swing.text.StyledDocument doc,
javax.swing.text.SimpleAttributeSet sas)
|
void |
displayEmoticonChooser(javax.swing.JFrame window,
java.awt.Component component,
javax.swing.text.JTextComponent area)
Shows a small window displaying all available emoticons. |
static ConversationFormatter |
getInstance()
|
void |
replaceIcons(java.lang.String text,
javax.swing.text.StyledDocument doc,
javax.swing.text.SimpleAttributeSet sas,
javax.swing.JTextPane pane,
boolean emotes)
Replaces the different symbols with the images defined in the emote data file |
void |
switchTheme(java.lang.String theme)
Switches the emoticon theme |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ResourceBundle resources
| Method Detail |
|---|
public static ConversationFormatter getInstance()
public void switchTheme(java.lang.String theme)
theme - the theme to switch to
public void replaceIcons(java.lang.String text,
javax.swing.text.StyledDocument doc,
javax.swing.text.SimpleAttributeSet sas,
javax.swing.JTextPane pane,
boolean emotes)
text - the text to modify
public java.lang.String checkHyperlink(java.lang.String text,
javax.swing.text.StyledDocument doc,
javax.swing.text.SimpleAttributeSet sas)
public void displayEmoticonChooser(javax.swing.JFrame window,
java.awt.Component component,
javax.swing.text.JTextComponent area)
window - the parent windowcomponent - the Component to display this frame overarea - the text area that the emoticons will be placed on when the
user clicks an image
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||