| java.lang.Object net.xoetrope.xui.data.XListBinding net.xoetrope.optional.data.XLocalisedListBinding
XLocalisedListBinding | public class XLocalisedListBinding extends XListBinding implements XCustomDataBinding(Code) | | A list binding that supports localization of the list content
Copyright Xoetrope (c) 2001-2004
$Revision: 1.7 $
|
Constructor Summary | |
public | XLocalisedListBinding() | public | XLocalisedListBinding(Component c, String dataElement) | public | XLocalisedListBinding(Component c, String dataElement, String destElement, XModel srcModel, XModel dstModel) | public | XLocalisedListBinding(Component c, String dataElement, String destElement) | public | XLocalisedListBinding(Component c, String dataElement, String destElement, XModel srcModel, XModel dstModel, boolean saveToSource) |
XLocalisedListBinding | public XLocalisedListBinding()(Code) | | |
XLocalisedListBinding | public XLocalisedListBinding(Component c, String dataElement)(Code) | | Construct a new data binding
Parameters: c - the component to be bound Parameters: dataElement - the name of the data in the model |
XLocalisedListBinding | public XLocalisedListBinding(Component c, String dataElement, String destElement, XModel srcModel, XModel dstModel)(Code) | | Construct a new data binding
Parameters: c - the component to be bound Parameters: dataElement - the name of the data in the model Parameters: destElement - the name of the destination data in the model Parameters: srcModel - the model node that acts as the data source for this node Parameters: dstModel - the model node to which the selection is saved |
XLocalisedListBinding | public XLocalisedListBinding(Component c, String dataElement, String destElement)(Code) | | Construct a new data binding
Parameters: c - the component to be bound Parameters: dataElement - the name of the data in the model Parameters: srcModel - the model node that acts as the data source for this node |
XLocalisedListBinding | public XLocalisedListBinding(Component c, String dataElement, String destElement, XModel srcModel, XModel dstModel, boolean saveToSource)(Code) | | Construct a new data binding, and set the languageResourceBundle for text
to be translated
Parameters: c - the component to be bound Parameters: dataElement - the name of the data in the model Parameters: destElement - the name of the destination data in the model Parameters: srcModel - the model node that acts as the data source for this node Parameters: dstModel - the model node to which the selection is saved Parameters: saveToSource - true to save the selected value as the value of the source node, false to save only to the output node |
addItem | protected String addItem(String s)(Code) | | translate the text at this point
Parameters: s - the text to be translated |
getKey | public String getKey(int idx)(Code) | | Get the untranslated key for a list item
Parameters: idx - the list index |
setup | public void setup(Component c, XmlElement xmlElement)(Code) | | Used to setup custom components where the constructor. The properties of the
binding are specified by the xmlElement and the date pointed to by the
dataElement path is bound to the component
Parameters: c - the component to bind to Parameters: xmlElement - the XML element which contains the binding configuration |
translate | protected String translate(String key)(Code) | | Translate the text being added to the list.
Parameters: key - the key to be look up in the resourcebundle the translated key or the key itself if no translation found |
|
|