|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.beansbinding.Converter<String,String>
org.openpermis.editor.policy.gui.binding.TranslationConverter
public class TranslationConverter
Converts string to a translated version using a ResourceMap
.
This converter only supports forward translation and converts input strings to a translated version by using the input value (with an optional prefix) as translation keys.
Reverse translation yields the input string.
Constructor Summary | |
---|---|
TranslationConverter(org.jdesktop.application.ResourceMap resourceMap,
String prefix)
Creates a translation converter that operates on the specified resource map and prefix. |
Method Summary | |
---|---|
String |
convertForward(String value)
Translates the specified input value. |
String |
convertReverse(String value)
Reverse translation is not supported by this translator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TranslationConverter(org.jdesktop.application.ResourceMap resourceMap, String prefix)
resourceMap
- the resource map where translations are retrieved from.prefix
- prefix prepended to the string to translate, may be null
to use
the input string without prefix.Method Detail |
---|
public String convertForward(String value)
convertForward
in class org.jdesktop.beansbinding.Converter<String,String>
value
- the input strings to be translated.
public String convertReverse(String value)
convertReverse
in class org.jdesktop.beansbinding.Converter<String,String>
value
- the input string.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG