diff options
author | Artur Signell <artur@vaadin.com> | 2012-03-20 10:37:54 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-03-21 15:27:50 +0200 |
commit | eece939c47a93870d0b536ae6e7e79022f22289d (patch) | |
tree | b6effbed05ec438a3c32c9ae796496e449f302fa /src/com/vaadin/ui/Table.java | |
parent | 8ba0e099ac481384e75cd7f9a198ec361cd83cca (diff) | |
download | vaadin-framework-eece939c47a93870d0b536ae6e7e79022f22289d.tar.gz vaadin-framework-eece939c47a93870d0b536ae6e7e79022f22289d.zip |
Added generics to KeyMapper and made it based on HashMap instead of
Hashtable
Diffstat (limited to 'src/com/vaadin/ui/Table.java')
-rw-r--r-- | src/com/vaadin/ui/Table.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java index 52981b875f..079082cc25 100644 --- a/src/com/vaadin/ui/Table.java +++ b/src/com/vaadin/ui/Table.java @@ -349,7 +349,7 @@ public class Table extends AbstractSelect implements Action.Container, /** * Keymapper for column ids. */ - private final KeyMapper columnIdMap = new KeyMapper(); + private final KeyMapper<Object> columnIdMap = new KeyMapper<Object>(); /** * Holds visible column propertyIds - in order. @@ -451,7 +451,7 @@ public class Table extends AbstractSelect implements Action.Container, /** * Action mapper. */ - private KeyMapper actionMapper = null; + private KeyMapper<Action> actionMapper = null; /** * Table cell editor factory. @@ -2595,7 +2595,7 @@ public class Table extends AbstractSelect implements Action.Container, (String) variables.get("action"), ","); if (st.countTokens() == 2) { final Object itemId = itemIdMapper.get(st.nextToken()); - final Action action = (Action) actionMapper.get(st.nextToken()); + final Action action = actionMapper.get(st.nextToken()); if (action != null && (itemId == null || containsId(itemId)) && actionHandlers != null) { @@ -3605,7 +3605,7 @@ public class Table extends AbstractSelect implements Action.Container, if (actionHandlers == null) { actionHandlers = new LinkedList<Handler>(); - actionMapper = new KeyMapper(); + actionMapper = new KeyMapper<Action>(); } if (!actionHandlers.contains(actionHandler)) { |