You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by rw...@apache.org on 2017/05/29 22:26:51 UTC
svn commit: r1796713 - in
/pivot/trunk/tutorials/src/org/apache/pivot/tutorials:
bxmlexplorer/tools/ComponentInspectorSkin.java
explorer/tools/ComponentInspectorSkin.java
Author: rwhitcomb
Date: Mon May 29 22:26:51 2017
New Revision: 1796713
URL: http://svn.apache.org/viewvc?rev=1796713&view=rev
Log:
PIVOT-999: Use the new default "getIntValue()" and "setIntValue()"
methods in the Dictionary interface.
Modified:
pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tools/ComponentInspectorSkin.java
pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/tools/ComponentInspectorSkin.java
Modified: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tools/ComponentInspectorSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tools/ComponentInspectorSkin.java?rev=1796713&r1=1796712&r2=1796713&view=diff
==============================================================================
--- pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tools/ComponentInspectorSkin.java (original)
+++ pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tools/ComponentInspectorSkin.java Mon May 29 22:26:51 2017
@@ -247,7 +247,7 @@ abstract class ComponentInspectorSkin ex
private static Component addIntControl(final Dictionary<String, Object> dictionary,
final String key, Form.Section section) {
- int value = (Integer) dictionary.get(key);
+ int value = dictionary.getIntValue(key);
TextInput textInput = new TextInput();
textInput.setTextSize(10);
@@ -267,7 +267,7 @@ abstract class ComponentInspectorSkin ex
dictionary.put(key, Integer.parseInt(textInputLocal.getText()));
} catch (Exception exception) {
displayErrorMessage(exception, component.getWindow());
- int valueLocal = (Integer) dictionary.get(key);
+ int valueLocal = dictionary.getIntValue(key);
textInputLocal.setText(String.valueOf(valueLocal));
}
}
@@ -281,7 +281,7 @@ abstract class ComponentInspectorSkin ex
TextInput textInput = (TextInput) controls.get(key);
if (textInput != null) {
- int value = (Integer) dictionary.get(key);
+ int value = dictionary.getIntValue(key);
textInput.setText(String.valueOf(value));
}
}
Modified: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/tools/ComponentInspectorSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/tools/ComponentInspectorSkin.java?rev=1796713&r1=1796712&r2=1796713&view=diff
==============================================================================
--- pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/tools/ComponentInspectorSkin.java (original)
+++ pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/tools/ComponentInspectorSkin.java Mon May 29 22:26:51 2017
@@ -247,7 +247,7 @@ abstract class ComponentInspectorSkin ex
private static Component addIntControl(final Dictionary<String, Object> dictionary,
final String key, Form.Section section) {
- int value = (Integer) dictionary.get(key);
+ int value = dictionary.getIntValue(key);
TextInput textInput = new TextInput();
textInput.setTextSize(10);
@@ -267,7 +267,7 @@ abstract class ComponentInspectorSkin ex
dictionary.put(key, Integer.parseInt(textInputLocal.getText()));
} catch (Exception exception) {
displayErrorMessage(exception, component.getWindow());
- int valueLocal = (Integer) dictionary.get(key);
+ int valueLocal = dictionary.getIntValue(key);
textInputLocal.setText(String.valueOf(valueLocal));
}
}
@@ -281,7 +281,7 @@ abstract class ComponentInspectorSkin ex
TextInput textInput = (TextInput) controls.get(key);
if (textInput != null) {
- int value = (Integer) dictionary.get(key);
+ int value = dictionary.getIntValue(key);
textInput.setText(String.valueOf(value));
}
}