|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdevplugin.Plugin
i18nplugin.I18NPlugin
public class I18NPlugin
This Plugin should help a User to create Translations for the TV-Browser Attention: This Plugin uses some Core-Stuff, but "normal" Plugins are not allowed to do this !
| Field Summary |
|---|
| Fields inherited from class devplugin.Plugin |
|---|
BIG_ICON, DISABLED_ON_TASK_MENU, parent, SINGLE_CLICK_WAITING_TIME |
| Constructor Summary | |
|---|---|
I18NPlugin()
Constructor, stores current instance in static field |
|
| Method Summary | |
|---|---|
ActionMenu |
getButtonAction()
Gets the action to use for the main menu and the toolbar. |
PluginInfo |
getInfo()
Gets the meta information about the plugin. |
static I18NPlugin |
getInstance()
|
ThemeIcon |
getMarkIconFromTheme()
This gets the ThemeIcon containg your mark icon. |
protected Color |
getTranslationColor(int state)
|
static Version |
getVersion()
|
void |
loadSettings(Properties settings)
Called by the host-application during start-up. |
int |
parseNumber(String str)
Parses a Number from a String. |
Properties |
storeSettings()
Called by the host-application during shut-down. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public I18NPlugin()
| Method Detail |
|---|
public static I18NPlugin getInstance()
public static Version getVersion()
public PluginInfo getInfo()
PluginOverride this method to provide information about your plugin.
getInfo in class Pluginpublic ActionMenu getButtonAction()
PluginOverride this method to provide a menu item in the main menu and a toolbar button.
The following action values will be used:
Action.NAME: The text for the main menu item and the
toolbar button.Action.SHORT_DESCRIPTION: The description for the button
action. Used as tooltip and for the status bar.Action.SMALL_ICON: The icon for the main menu item. Should
be 16x16.BIG_ICON: The icon for the toolbar button. Should be
24x24.
getButtonAction in class Pluginnull
if the plugin does not provide this feature.public void loadSettings(Properties settings)
PluginOverride this method to load your plugins settings from the file system.
loadSettings in class Pluginsettings - The settings for this plugin (May be empty).public int parseNumber(String str)
str - Number in String to Parse
public Properties storeSettings()
PluginOverride this method to store your plugins settings to the file system. ATTENTION: Don't use any logger, thread or access to Frames in this method.
storeSettings in class Pluginnull if this plugin
does not need to save any settings.public ThemeIcon getMarkIconFromTheme()
PluginPluginManager.getIconFromTheme(Plugin, String, String, int)
getMarkIconFromTheme in class Pluginprotected Color getTranslationColor(int state)
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||