diff options
| author | jaguillo | 2015-10-24 16:32:49 +0200 |
|---|---|---|
| committer | jaguillo | 2015-10-24 16:32:49 +0200 |
| commit | 8bd0214e2695c2a621624967a595a069902e6fdd (patch) | |
| tree | 909fe80e335069f393c621516391605ac4d2b805 /srcs/juloo.keyboard2/Emoji.java | |
| parent | db20d528847fe6b451c19eb0b95eeb12954f98a4 (diff) | |
| download | unexpected-keyboard-8bd0214e2695c2a621624967a595a069902e6fdd.tar.gz unexpected-keyboard-8bd0214e2695c2a621624967a595a069902e6fdd.zip | |
Emoji pane
Diffstat (limited to 'srcs/juloo.keyboard2/Emoji.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Emoji.java | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/srcs/juloo.keyboard2/Emoji.java b/srcs/juloo.keyboard2/Emoji.java index ed28603..064ee6c 100644 --- a/srcs/juloo.keyboard2/Emoji.java +++ b/srcs/juloo.keyboard2/Emoji.java @@ -2,7 +2,7 @@ package juloo.keyboard2; import java.util.HashMap; -public class Emoji +public class Emoji extends KeyValue { public static final int TYPE_EMOTICONS = 1; public static final int TYPE_DINGBATS = 2; @@ -10,27 +10,14 @@ public class Emoji public static final int TYPE_UNCATEGORIZED = 4; public static final int TYPE_ENCLOSED_CHARACTERS = 5; - private final String _name; - private final String _bytecode; private final String _desc; - private Emoji(String name, String bytecode, String desc) + protected Emoji(String name, String bytecode, String desc) { - _name = name; - _bytecode = bytecode; + super(name, bytecode, CHAR_NONE, EVENT_NONE, 0); _desc = desc; } - public String getName() - { - return (_name); - } - - public String getBytecode() - { - return (_bytecode); - } - public String getDescription() { return (_desc); @@ -38,7 +25,7 @@ public class Emoji private static final HashMap<Integer, Emoji[]> emoji_type_map = new HashMap<Integer, Emoji[]>(); - public static Emoji[] getEmojiByType(int type) + public static Emoji[] getEmojisByType(int type) { return (emoji_type_map.get(type)); } |
