Package gri.gui.widgets

Examples of gri.gui.widgets.Widget


                ListDataType listType = (ListDataType)type;
                if (type.getRepresentationClass().isAssignableFrom(List.class)) {
                    DataType memberType = listType.getMemberType();
                    WidgetFactory memberWidgetFactory = new TypedWidgetFactoryWrapper(this, memberType);
                   
                    Widget widget = new WidgetList(memberWidgetFactory);
                    return widget;
                }
            }
           
            //simple types:
View Full Code Here


    }
   
    // -------------------------------------------------------- Implementation
   
    public Widget createWidget(ParameterDef param) {
        Widget widget;
       
        //create option widget if parameter options given:
        if (param.hasOptions()) {
            Option [] options = param.getOptions();
            OptionWidget optWidget = new ComboBoxWidget();
View Full Code Here

        super(null);
        super.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
       
        Widget [] widgets = new Widget[params.length];
        for (int i=0; i<params.length; i++) {
            Widget widget = factory.createWidget(params[i]);
            if (widget == null)
                throw new RuntimeException("No widget available for parameter: " + params[i].getName());
           
            widgets[i] = widget;
        }
View Full Code Here

TOP

Related Classes of gri.gui.widgets.Widget

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.