Revision history [back]

click to hide/show revision 1
initial version

asked 2017-10-26 18:40:06 +0800

MaxJava gravatar image MaxJava

SimpleTreeModel

hello everyone i have this scenario:

  1. 1 tree (simpletreemodel)
  2. listbox

i would like drag listitem of my listbox in tree to build it. when i drop listitem in tree fires event but get object dragged empty maybe it happens because i have 2 different component

public void onEvent(Event event) throws Exception {
    if (event instanceof DropEvent) {
        DropEvent de = (DropEvent) event;
        ListItem item = (ListItem) de.getDragged();

got item null

SimpleTreeModel

hello everyone i have this scenario:

  1. 1 tree (simpletreemodel)
  2. listbox

i would like drag listitem of my listbox in tree to build it. when i drop listitem in tree fires event but get object dragged empty maybe it happens because i have 2 different component

public void onEvent(Event event) throws Exception {
    if (event instanceof DropEvent) {
        DropEvent de = (DropEvent) event;
        ListItem item = (ListItem) de.getDragged();

got item null

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More