Package org.getspout.spoutapi.gui

Examples of org.getspout.spoutapi.gui.ListWidget


            if (data.equals("HORIZONTAL") || data.equals("VERTICAL")) {
              Orientation axis = Orientation.valueOf(data);
              Scrollable scroll = (Scrollable) control;
              scroll.setScrollPosition(axis, (int) state);
            } else if (control instanceof ListWidget) {
              ListWidget list = (ListWidget) control;
              boolean dblclick = false;
              if (data.equals("click") || data.equals("doubleclick") || data.equals("selected")) {
                int item = (int) state;
                if (data.equals("doubleclick")) {
                  dblclick = true;
                }
                list.setSelection(item);
                list.onSelected(item, dblclick);
              }
            }
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.getspout.spoutapi.gui.ListWidget

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.