Didn't have time to try/run this but something like this might work. You'd 
need to remove and re-add the tab in the right location within the drop 
listener so the swipe/animation will work.
It relied a bit on the internal structure of the tabs component hierarchy 
but not too much:

Form hi = new Form("Tabs", new BorderLayout());

Tabs t = new Tabs();

t.addTab("T1", new Label("Tab 1"));
t.addTab("T2", new Label("Tab 2"));
t.addTab("T3", new Label("Tab 3"));
t.addTab("T4", new Label("Tab 4"));

Container tabsC = t.getTabsContainer();
tabsC.setDropTarget(true);
for(Component c : tabsC) {
    c.setDraggable(true);
}

tabsC.addDropListener(e -> {
    /// you need to fill this up
});

hi.add(CENTER, t);

hi.show();



-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/db711e72-2e0f-42bc-933f-d603067c72cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to