My favorites
▼
|
Sign in
tokenfield
A Vaadin component for selecting multiple tokens (e.g tags, email addresses...)
Project Home
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
10
attachment: sortable.patch
(1.7 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff -rupN orig/org/vaadin/tokenfield/TokenField.java new/org/vaadin/tokenfield/TokenField.java
--- orig/org/vaadin/tokenfield/TokenField.java 2013-01-09 13:58:11.941615026 +0100
+++ new/org/vaadin/tokenfield/TokenField.java 2013-01-09 18:02:52.206875709 +0100
@@ -47,7 +47,7 @@ import com.vaadin.ui.Button.ClickEvent;
* In much the same way, {@link #onTokenDelete()} is called when the user
* presses delete or backspace when the input is empty, and can be customized.<br/>
* The token buttons can be styled customized by overriding
- * {@link #configureTokenButton(TokenField, Object, Button).
+ * {@link #configureTokenButton(TokenField, Object, Button)}.
* </p>
* <p>
* The content of the input (ComboBox) can be bound to a Container datasource,
@@ -56,7 +56,7 @@ import com.vaadin.ui.Button.ClickEvent;
* Also note that if you use {@link #setTokenCaptionPropertyId(Object)} (to use
* a specific property as token caption) AND allow new tokens to be input (
* {@link #setNewTokensAllowed(boolean)}, you should probably use a custom
- * {@link NewItemHandler) ({@link #setNewTokenHandler(NewItemHandler)}) in
+ * {@link NewItemHandler)} ({@link #setNewTokenHandler(NewItemHandler)}) in
* order to provide a sensible caption for the new token.
* </p>
*
@@ -311,8 +311,8 @@ public class TokenField extends CustomFi
vals = new HashSet<Object>();
}
- Set<Object> remove = new HashSet<Object>(old);
- Set<Object> add = new HashSet<Object>(vals);
+ Set<Object> remove = new LinkedHashSet<Object>(old);
+ Set<Object> add = new LinkedHashSet<Object>(vals);
remove.removeAll(vals);
add.removeAll(old);
Powered by
Google Project Hosting