public interface TokenSubstitution extends BaseTokenSubstitution
To use this interface, you must create four strings for each token that will be replaced by text:
Stringthat is displayed in the insert drop down list, such as "Date". Store all of these in an array. The UI will ask for the array.
String, such as "&Date", that appears in the
JTextFieldwhen a user has selected a ListItem.
Stringthat is actually stored in the unparsed
Stringmust not be localized, because it needs to be same
Stringin all languages.
Stringthat is displayed in the view itself, such as "24 March 2001".
In addition, you must provide conversion between these strings, which are used as follows:
JTextField, including the token, and asks you for a
Stringthat has the key instead of the token.
Stringwith the key, to ask you for the parsed
Stringto display in the graph.
When a graph is persisted, the
String with key is stored in
the XML, and this
String is given to your implementation
of this interface to restore the parsed
String in the