|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.dss.dataView.TokenSubstitutionAdapter
This class supports replaceable text in a text component. This class maintains a list of items that can be chosen from the "Insert" drop-down list in the Title UI panel. The items are localizable strings. For example, "Dimension" is a list item. For each list item, this class also maintains the following:
JTextField that the end user can edit in the Title panel| Constructor Summary | |
TokenSubstitutionAdapter(DataviewCommon view)Constructor. | |
| Method Summary | |
java.lang.String |
getKey(java.lang.String listItem)Retrieves a keyword for a list item. |
java.lang.String |
getKeyString(java.lang.String tokenString)Retrieves a String that includes unlocalizable keywords instead of localizable tokens. |
java.lang.String[] |
getListItems()Retrieves an array of items for the "Insert" drop-down list box. |
java.lang.String |
getParsedString(java.lang.String keyString)Retrieves a parsed String that is displayed in the view. |
java.lang.String |
getToken(java.lang.String listItem)Retrieves a token that corresponds to a list item. |
java.lang.String |
getTokenString(java.lang.String keyString)Retrieves a String that includes localizable tokens instead of unlocalizable keywords. |
void |
setLocale(java.util.Locale locale)Specifies the Locale for this TokenSubstitution. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TokenSubstitutionAdapter(DataviewCommon view)
view - The DataviewCommon for which this adapter provides token substitution support.| Method Detail |
public java.lang.String[] getListItems()
getListItems in interface TokenSubstitutionpublic java.lang.String getToken(java.lang.String listItem)
JTextField. The token usually includes an indicator that it will be replaced in the actual view. For example, if the list item is "Dimension", the token is "&Dimension". The UI places this token in the text field with any other text. For example, the text field might then display "Sales by &Dimension".getToken in interface TokenSubstitutionlistItem - The list item that the user selected from the drop-down list.JTextField. If listItem does not contain any items in the array that getListItems returns, then this method returns null.public java.lang.String getKeyString(java.lang.String tokenString)
String that includes unlocalizable keywords instead of localizable tokens. When the view saves itself in XML, it uses this string to identify the text that it represents. Currently, this key string is also passed to setText methods in graph components. If you present your own UI that allows token substitution, and you call setText methods, you should call this method in your implementation of this interface to get the String to pass to setText.getKeyString in interface TokenSubstitutiontokenString - The String that the JTextField displays. This is the String that the user has entered into the text field, including any tokens for replaceable text.String that has unlocalizable keys instead of any localizable tokens. If tokenString does not contain any tokens, then this method returns tokenString.public java.lang.String getTokenString(java.lang.String keyString)
String that includes localizable tokens instead of unlocalizable keywords. The String that this method returns is displayed in the JTextField. The view calls this method when it applies XML that includes a setting for the Text property. The view uses the key string as the Text value in XML.getTokenString in interface TokenSubstitutionkeyString - The String that can include unlocalizable keys.String that contains localizable tokens instead of any keys in keyString. If keyString does not include any tokens, then this method returns keyString.public java.lang.String getParsedString(java.lang.String keyString)
String that is displayed in the view. The String that this method returns has replacement text in place of the keys in keyString. The setText methods in a graph call this method to retrieve the text to display in the graph text component. If you call setText, be sure to pass a key string and not a token string.getParsedString in interface TokenSubstitutionkeyString - The string that the view stores as the setting of the Text property.String that contains localized text instead of any keys in keyString. If keyString does not include any keys, then this method returns keyString.getKeyString(java.lang.String)public java.lang.String getKey(java.lang.String listItem)
String. This method is not used in the 1.5 graph.getKey in interface TokenSubstitutionlistItem - A String that represents a list item from the drop-down "Insert" list.String.public void setLocale(java.util.Locale locale)
Locale for this TokenSubstitution.setLocale in interface TokenSubstitutionlocale - The Locale for this TokenSubstitution.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||