Examples of Dropdown


Examples of com.github.gwtbootstrap.client.ui.Dropdown

            container.getElement().appendChild( element );
        }

        container.add( new NavigatorBreadcrumbs( NavigatorBreadcrumbs.Mode.HEADER ) {{

            final Dropdown groups = new Dropdown( "financial" ) {{
                add( new NavList() {{
                    add( new NavLink( "financial" ) );
                    add( new NavLink( "demo" ) );
                }} );
            }};

            final Dropdown repos = new Dropdown( "uf-playground" ) {{
                add( new NavList() {{
                    add( new NavLink( "uf-playground" ) );
                }} );
            }};

            final Dropdown projects = new Dropdown( "mortgages" ) {{
                add( new NavList() {{
                    add( new NavLink( "mortgages" ) );
                }} );
            }};
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Dropdown

    public void build( final Dropdown... headers ) {
        breadcrumbs.clear();

        for ( int i = 0; i < headers.length; i++ ) {
            final Dropdown header = headers[ i ];
            header.addStyleName( NavigatorResources.INSTANCE.css().breadcrumbHeader() );
            if ( i + 1 == headers.length ) {
                header.setRightDropdown( true );
            }
            breadcrumbs.add( header );
        }
    }
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Dropdown

        if ( widgetList.isEmpty() ) {
            return null;
        }

        return new Dropdown( groups.getCaption() ) {{
            for ( final Widget widget : widgetList ) {
                add( widget );
            }
        }};
    }
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Dropdown

        if ( widgetList.isEmpty() ) {
            return null;
        }

        return new Dropdown( groups.getCaption() ) {{
            for ( final Widget widget : widgetList ) {
                add( widget );
            }
        }};
    }
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Dropdown

        if ( widgetList.isEmpty() ) {
            return null;
        }

        return new Dropdown( groups.getCaption() ) {{
            for ( final Widget widget : widgetList ) {
                add( widget );
            }
        }};
    }
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Dropdown

                if ( widgetList.isEmpty() ) {
                    return null;
                }

                gwtItem = new Dropdown( groups.getCaption() ) {{
                    for ( final Widget widget : widgetList ) {
                        add( widget );
                    }
                }};
            }
View Full Code Here

Examples of com.sun.webui.jsf.component.DropDown

            @HandlerInput(name="dropDownComponent", type=com.sun.webui.jsf.component.DropDown.class, required=true),
            @HandlerInput(name="poolMap", type=java.util.Map.class)
            }
        )
    public static void setConnectionDefDropdown(HandlerContext handlerCtx) {
        DropDown dp = (DropDown)handlerCtx.getInputValue("dropDownComponent");
        Map poolMap = (Map)handlerCtx.getInputValue("poolMap");
        String resAdapter = (String) poolMap.get("resAdapter");
        if (GuiUtil.isEmpty(resAdapter)){
            return;
        }
        Object[] params = {resAdapter};
        String[] types = {"java.lang.String"};
        String[] connectionDefinitions = (String[])JMXUtil.invoke(
                    "com.sun.appserv:type=resources,category=config",
                     "getConnectionDefinitionNames", params, types );
        if (connectionDefinitions == null)
            return;
        ArrayList list = new ArrayList();
        for(int i=0; i<connectionDefinitions.length; i++)
        {
            list.add(new Option(connectionDefinitions[i], connectionDefinitions[i]));
        }
        dp.setItems(list);
    }
View Full Code Here

Examples of com.sun.webui.jsf.component.DropDown

            @HandlerInput(name = "tableDD", type = com.sun.webui.jsf.component.DropDown.class),
            @HandlerInput(name = "validationField", type = com.sun.webui.jsf.component.DropDown.class),
            @HandlerInput(name = "methodValue", type = String.class)})
    public static void setDisableConnectionPoolTableField(HandlerContext handlerCtx) {
        String methodValue = (String) handlerCtx.getInputValue("methodValue");
        DropDown tableDD = (DropDown) handlerCtx.getInputValue("tableDD");
        DropDown validationDD = (DropDown) handlerCtx.getInputValue("validationField");
        if ("table".equals(methodValue)) {
            tableDD.setDisabled(false);
            validationDD.setDisabled(true);
        } else if ("custom-validation".equals(methodValue)) {
            tableDD.setDisabled(true);
            validationDD.setDisabled(false);

        } else {
            tableDD.setDisabled(true);
            validationDD.setDisabled(true);
        }
    }
View Full Code Here

Examples of com.sun.webui.jsf.component.DropDown

            @HandlerInput(name = "tableDD", type = com.sun.webui.jsf.component.DropDown.class),
            @HandlerInput(name = "validationField", type = com.sun.webui.jsf.component.DropDown.class),
            @HandlerInput(name = "methodValue", type = String.class)})
    public static void setDisableConnectionPoolTableField(HandlerContext handlerCtx) {
        String methodValue = (String) handlerCtx.getInputValue("methodValue");
        DropDown tableDD = (DropDown) handlerCtx.getInputValue("tableDD");
        DropDown validationDD = (DropDown) handlerCtx.getInputValue("validationField");
        if ("table".equals(methodValue)) {
            tableDD.setDisabled(false);
            validationDD.setDisabled(true);
        } else if ("custom-validation".equals(methodValue)) {
            tableDD.setDisabled(true);
            validationDD.setDisabled(false);

        } else {
            tableDD.setDisabled(true);
            validationDD.setDisabled(true);
        }
    }
View Full Code Here

Examples of com.sun.webui.jsf.component.DropDown

            @HandlerInput(name = "tableDD", type = com.sun.webui.jsf.component.DropDown.class),
            @HandlerInput(name = "validationField", type = com.sun.webui.jsf.component.DropDown.class),
            @HandlerInput(name = "methodValue", type = String.class)})
    public static void setDisableConnectionPoolTableField(HandlerContext handlerCtx) {
        String methodValue = (String) handlerCtx.getInputValue("methodValue");
        DropDown tableDD = (DropDown) handlerCtx.getInputValue("tableDD");
        DropDown validationDD = (DropDown) handlerCtx.getInputValue("validationField");
        if ("table".equals(methodValue)) {
            tableDD.setDisabled(false);
            validationDD.setDisabled(true);
        } else if ("custom-validation".equals(methodValue)) {
            tableDD.setDisabled(true);
            validationDD.setDisabled(false);

        } else {
            tableDD.setDisabled(true);
            validationDD.setDisabled(true);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.