Package gri.gui.widgets

Examples of gri.gui.widgets.FileInputWidget


  public static class CustomInputWidgetFactory extends DefaultTypedWidgetFactory {
    public Widget createWidget(DataType type) {
      Class repClass = type.getRepresentationClass();

      if (repClass == File.class)
        return new FileInputWidget();
      if (repClass.isAssignableFrom(TransferableFile.class))
        return new TransferableFileWidget(
            new FileInputWidget());
      else
        return super.createWidget(type);
    }
View Full Code Here

TOP

Related Classes of gri.gui.widgets.FileInputWidget

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.