|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.xui.data.XListBinding
net.xoetrope.optional.data.XLocalisedListBinding
public class XLocalisedListBinding
A list binding that supports localization of the list content
Copyright Xoetrope (c) 2001-2004
$Revision: 2.8 $ License: see license.txt
| Field Summary | |
|---|---|
protected java.util.Vector |
keys
|
protected java.util.ResourceBundle |
languageResourceBundle
|
| Fields inherited from class net.xoetrope.xui.data.XListBinding |
|---|
attribStr, bDirty, comp, model, outputNode, outputPath, saveToSourceNode, srcPath, useUnique |
| Fields inherited from interface net.xoetrope.xui.data.XDataBinding |
|---|
DEFAULT_OUTPUT_PATH |
| Constructor Summary | |
|---|---|
XLocalisedListBinding()
null ctor |
|
XLocalisedListBinding(java.lang.Object c,
java.lang.String dataElement)
Construct a new data binding |
|
XLocalisedListBinding(java.lang.Object c,
java.lang.String dataElement,
java.lang.String destElement)
Construct a new data binding |
|
XLocalisedListBinding(java.lang.Object c,
java.lang.String dataElement,
java.lang.String destElement,
XModel srcModel,
XModel dstModel)
Construct a new data binding |
|
XLocalisedListBinding(java.lang.Object c,
java.lang.String dataElement,
java.lang.String destElement,
XModel srcModel,
XModel dstModel,
java.lang.String attribStr,
boolean saveToSource)
Construct a new data binding, and set the languageResourceBundle for text to be translated |
|
| Method Summary | |
|---|---|
protected java.lang.String |
addItem(java.lang.String s)
translate the text at this point |
java.lang.String |
getKey(int idx)
Get the untranslated key for a list item |
void |
setup(java.lang.Object c,
XmlElement xmlElement)
Used to setup custom components where the constructor. |
protected java.lang.String |
translate(java.lang.String key)
Translate the text being added to the list. |
| Methods inherited from class net.xoetrope.xui.data.XListBinding |
|---|
get, getComponent, getDirty, getName, getOutputPath, getSourcePath, set, setDirty, setOutput, setOutputPath, setSource, setSourcePath, setUseUnique |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ResourceBundle languageResourceBundle
protected java.util.Vector keys
| Constructor Detail |
|---|
public XLocalisedListBinding()
public XLocalisedListBinding(java.lang.Object c,
java.lang.String dataElement)
c - the component to be bounddataElement - the name of the data in the model
public XLocalisedListBinding(java.lang.Object c,
java.lang.String dataElement,
java.lang.String destElement,
XModel srcModel,
XModel dstModel)
c - the component to be bounddataElement - the name of the data in the modeldestElement - the name of the destination data in the modelsrcModel - the model node that acts as the data source for this nodedstModel - the model node to which the selection is saved
public XLocalisedListBinding(java.lang.Object c,
java.lang.String dataElement,
java.lang.String destElement)
c - the component to be bounddataElement - the name of the data in the modeldestElement - The path to the model node that acts as the output model
public XLocalisedListBinding(java.lang.Object c,
java.lang.String dataElement,
java.lang.String destElement,
XModel srcModel,
XModel dstModel,
java.lang.String attribStr,
boolean saveToSource)
c - the component to be bounddataElement - the name of the data in the modeldestElement - the name of the destination data in the modelsrcModel - the model node that acts as the data source for this nodedstModel - the model node to which the selection is savedsaveToSource - true to save the selected value as the value of the source node, false to save only to the output node| Method Detail |
|---|
public void setup(java.lang.Object c,
XmlElement xmlElement)
setup in interface XCustomDataBindingc - the component to bind toxmlElement - the XML element which contains the binding configurationprotected java.lang.String translate(java.lang.String key)
key - the key to be look up in the resourcebundle
protected java.lang.String addItem(java.lang.String s)
addItem in class XListBindings - the text to be translated
public java.lang.String getKey(int idx)
idx - the list index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||