|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.swing.icons.Emoticons
public class Emoticons
Emoticons.
Emoticons are small icons. The ".gif" files reside in the "resources/emoticons" subdirectory of the package directory.
This static class manages and encapsulates access to the emoticons.
Field Summary | |
---|---|
static java.lang.String[][] |
smileyFaces
|
static java.lang.String |
smileyFacesEndChars
End characters in smiley face strings. |
Method Summary | |
---|---|
static javax.swing.ImageIcon |
get(int index)
Gets an icon by index. |
static javax.swing.ImageIcon |
get(java.lang.String name)
Gets an emoticon by name. |
static int |
indexOf(javax.swing.ImageIcon icon)
Gets the index of an emoticon. |
static javax.swing.JPopupMenu |
popup(java.awt.event.ActionListener listener,
boolean shortcuts)
Creates and returns a popup menu for all the emoticons. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String[][] smileyFaces
public static java.lang.String smileyFacesEndChars
Update this to match "smileyFaces" above.
Method Detail |
---|
public static javax.swing.ImageIcon get(int index)
index
- The index of the icon.
public static javax.swing.ImageIcon get(java.lang.String name)
name
- The emoticon name.
public static javax.swing.JPopupMenu popup(java.awt.event.ActionListener listener, boolean shortcuts)
listener
- Shared action listener for all the menu items.shortcuts
- True to include keyboard shortcuts in menu item
names.
public static int indexOf(javax.swing.ImageIcon icon)
icon
- The image icon.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |