| Package | Description |
|---|---|
| net.pterodactylus.util.i18n | |
| net.pterodactylus.util.i18n.gui |
Contains various i18n-related Swing helper classes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
I18n.addI18nable(I18nable i18nable,
I18n.RemovalReference removalReference)
Adds an i18n listener that is notified when the language is changed or
additional sources add added or removed.
|
void |
I18n.removeI18nables(I18n.RemovalReference removalReference)
Removes all i18n listeners that have been
I18n.addI18nable(I18nable, RemovalReference) using the given object
as removal reference. |
| Constructor and Description |
|---|
I18nAction(I18n i18n,
I18n.RemovalReference removalReference,
String i18nName)
Creates a new action that uses the given name as base name to get values
from
I18n. |
I18nAction(I18n i18n,
I18n.RemovalReference removalReference,
String i18nName,
boolean enabled)
Creates a new action that uses the given name as base name to get values
from
I18n. |
I18nAction(I18n i18n,
I18n.RemovalReference removalReference,
String i18nName,
boolean enabled,
Icon icon)
Creates a new action that uses the given name as base name to get values
from
I18n and the given icon. |
I18nAction(I18n i18n,
I18n.RemovalReference removalReference,
String i18nName,
Icon icon)
Creates a new action that uses the given name as base name to get values
from
I18n and the given icon. |
I18nLabel(I18n i18n,
I18n.RemovalReference removalReference,
String i18nBasename)
Creates a new label with the given I18n basename.
|
I18nLabel(I18n i18n,
I18n.RemovalReference removalReference,
String i18nBasename,
Component component)
Creates a new label with the given I18n basename that optionally is a
label for the given component.
|
I18nLabel(I18n i18n,
I18n.RemovalReference removalReference,
String i18nBasename,
Component component,
Object... arguments)
Creates a new label with the given I18n basename that optionally is a
label for the given component.
|
I18nLabel(I18n i18n,
I18n.RemovalReference removalReference,
String i18nBasename,
Object... arguments)
Creates a new label with the given I18n basename that optionally is a
label for the given component.
|
I18nMenu(I18n i18n,
I18n.RemovalReference removalReference,
String i18nBasename)
Creates a new menu with the given
I18n basename. |
I18nMenuItem(I18n i18n,
I18n.RemovalReference removalReference,
I18nAction i18nAction)
Creates a new i18nable menu item that used the properties of the given
I18nAction. |
I18nMenuItem(I18n i18n,
I18n.RemovalReference removalReference,
String i18nBasename)
Creates a new i18nable menu item.
|
I18nMenuItem(I18n i18n,
I18n.RemovalReference removalReference,
String i18nBasename,
Action action)
Creates a new i18nable menu item that will perform the given action when
selected.
|
Copyright © 2026. All rights reserved.