Révision 2530
tmp/org.txm.core/src/java/org/txm/core/results/TXMResult.java (revision 2530) | ||
---|---|---|
943 | 943 |
* default preferences nodes. |
944 | 944 |
* |
945 | 945 |
* @param key |
946 |
* @return |
|
946 |
* @return value as int
|
|
947 | 947 |
*/ |
948 | 948 |
public int getIntParameterValue(String key) { |
949 | 949 |
return TXMPreferences.getInt(key, this, this.commandPreferencesNodePath); |
... | ... | |
954 | 954 |
* default preferences nodes. |
955 | 955 |
* |
956 | 956 |
* @param key |
957 |
* @return |
|
957 |
* @return value as float
|
|
958 | 958 |
*/ |
959 | 959 |
public float getFloatParameterValue(String key) { |
960 | 960 |
return TXMPreferences.getFloat(key, this, this.commandPreferencesNodePath); |
... | ... | |
965 | 965 |
* default preferences nodes. |
966 | 966 |
* |
967 | 967 |
* @param key |
968 |
* @return |
|
968 |
* @return value as double
|
|
969 | 969 |
*/ |
970 | 970 |
public double getDoubleParameterValue(String key) { |
971 | 971 |
return TXMPreferences.getDouble(key, this, this.commandPreferencesNodePath); |
... | ... | |
976 | 976 |
* default preferences nodes. |
977 | 977 |
* |
978 | 978 |
* @param key |
979 |
* @return |
|
979 |
* @return value as boolean
|
|
980 | 980 |
*/ |
981 | 981 |
public boolean getBooleanParameterValue(String key) { |
982 | 982 |
return TXMPreferences.getBoolean(key, this, this.commandPreferencesNodePath); |
... | ... | |
987 | 987 |
* default preferences nodes. |
988 | 988 |
* |
989 | 989 |
* @param key |
990 |
* @return |
|
990 |
* @return value as long
|
|
991 | 991 |
*/ |
992 | 992 |
public long getLongParameterValue(String key) { |
993 | 993 |
return TXMPreferences.getLong(key, this, this.commandPreferencesNodePath); |
... | ... | |
998 | 998 |
* default preferences nodes. |
999 | 999 |
* |
1000 | 1000 |
* @param key |
1001 |
* @return |
|
1001 |
* @return value as String
|
|
1002 | 1002 |
*/ |
1003 | 1003 |
public String getStringParameterValue(String key) { |
1004 | 1004 |
return TXMPreferences.getString(key, this, this.commandPreferencesNodePath); |
... | ... | |
1009 | 1009 |
* default preferences nodes. |
1010 | 1010 |
* |
1011 | 1011 |
* @param key |
1012 |
* @return |
|
1012 |
* @return value as Date
|
|
1013 | 1013 |
*/ |
1014 | 1014 |
public Date getDateParameterValue(String key) { |
1015 | 1015 |
return TXMPreferences.getDate(key, this, this.commandPreferencesNodePath); |
... | ... | |
1020 | 1020 |
* default preferences nodes. |
1021 | 1021 |
* |
1022 | 1022 |
* @param key |
1023 |
* @return |
|
1023 |
* @return value as File
|
|
1024 | 1024 |
*/ |
1025 | 1025 |
public File getFileParameterValue(String key) { |
1026 | 1026 |
String v = TXMPreferences.getString(key, this, this.commandPreferencesNodePath); |
... | ... | |
1046 | 1046 |
/** |
1047 | 1047 |
* Checks if a preference is empty (equals to "") in the command preference node. |
1048 | 1048 |
* An empty preference can be used to disable a functionality for a kind of result |
1049 |
* (eg. A partition dimension bar chart does not have a legend so it can be used to not offer the hide/show legend button in UI).
|
|
1049 |
* (eg. A partition dimension bar chart does not have a legend so it can be used to not display the hide/show legend button in UI).
|
|
1050 | 1050 |
* |
1051 | 1051 |
* @param key |
1052 | 1052 |
* @return |
... | ... | |
2470 | 2470 |
for (int i = 0; i < this.children.size(); i++) { |
2471 | 2471 |
|
2472 | 2472 |
TXMResult child = this.children.get(i); |
2473 |
// lazy loading test |
|
2474 |
// only compute the child it has already been computed one time ("loaded" one time) |
|
2475 |
// or if this result always needs its children synchronized/computed to be consistent (eg. Partition and children parts) |
|
2473 | 2476 |
if (child.mustBeSynchronizedWithParent() || child.hasBeenComputedOnce()) { |
2474 | 2477 |
child.compute(monitor, deepComputing); |
2475 | 2478 |
} |
Formats disponibles : Unified diff