|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.managers.language.updaters.DefaultLanguageUpdater<E>
public abstract class DefaultLanguageUpdater<E extends java.awt.Component>
This class prvides an additional set of methods to simplify language updaters usage. Most of default predefined language updaters extend this class.
Field Summary | |
---|---|
static java.lang.String |
DROP_TEXT
|
static java.lang.String |
INPUT_PROMPT
Predefined component states. |
Constructor Summary | |
---|---|
DefaultLanguageUpdater()
|
Method Summary | |
---|---|
java.lang.Class |
getComponentClass()
Returns class which instance should be updated using this LanguageUpdater. |
protected java.lang.String |
getDefaultText(java.lang.String state,
boolean defaultState,
Value value,
java.lang.Object... data)
Returns state text taken from value and formatted using specified data. |
protected java.lang.String |
getDefaultText(java.lang.String state,
Value value,
java.lang.Object... data)
Returns state text taken from value and formatted using specified data. |
protected java.lang.String |
getDefaultText(Value value,
java.lang.Object... data)
Returns default text taken from value and formatted using specified data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.alee.managers.language.updaters.LanguageUpdater |
---|
update |
Field Detail |
---|
public static final java.lang.String INPUT_PROMPT
public static final java.lang.String DROP_TEXT
Constructor Detail |
---|
public DefaultLanguageUpdater()
Method Detail |
---|
public java.lang.Class getComponentClass()
getComponentClass
in interface LanguageUpdater<E extends java.awt.Component>
protected java.lang.String getDefaultText(Value value, java.lang.Object... data)
value
- language valuedata
- formatting data
protected java.lang.String getDefaultText(java.lang.String state, Value value, java.lang.Object... data)
state
- component statevalue
- language valuedata
- formatting data
protected java.lang.String getDefaultText(java.lang.String state, boolean defaultState, Value value, java.lang.Object... data)
state
- component statedefaultState
- whether default text should be taken if no state text found or notvalue
- language valuedata
- formatting data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |