Package org.auraframework.components.ui

Examples of org.auraframework.components.ui.InputOption


public class SizeModel {
   
    @AuraEnabled
    public List<InputOption> getSizes() {
        ArrayList<InputOption> a = new ArrayList<InputOption>(4);
        InputOption m1 = new InputOption("X-Small", "xs", false, "X-Small");
        a.add(m1);
        InputOption m2 = new InputOption("Small", "s", false, "Small");
        a.add(m2);
        InputOption m3 = new InputOption("Medium", "m", false, "Medium");
        a.add(m3);
        InputOption m4 = new InputOption("Large", "l", false, "Large");
        a.add(m4);
        InputOption m5 = new InputOption("X-Large", "xl", false, "X-Large");
        a.add(m5);
        return a;
    }
View Full Code Here


    }

    private static ArrayList<InputOption> getSubCategory(String option) {
        ArrayList<InputOption> categoryOption = new ArrayList<InputOption>();
        if (option.equals("option1")) {
            categoryOption.add(new InputOption("", "", false, "opt1-sub1"));
            categoryOption.add(new InputOption("", "", false, "opt1-sub2"));
            categoryOption.add(new InputOption("", "", false, "opt1-sub3"));
        } else if (option.equals("option2")) {
            categoryOption.add(new InputOption("", "", false, "opt2-sub1"));
        } else if (option.equals("option3")) {
            categoryOption.add(new InputOption("", "", false, "opt3-sub1"));
            categoryOption.add(new InputOption("", "", false, "opt3-sub2"));
        }
        return categoryOption;
    }
View Full Code Here

    }
    @AuraEnabled
    public ArrayList<InputOption> getNoOptionsSel() {
        //String label, String name, boolean selected, String value
        return Lists.newArrayList(
            new InputOption("Tiger", "Tiger", false, "Tiger"),
            new InputOption("Lion", "Lion", false, "Lion"),
            new InputOption("Bear", "Bear", false, "Bear")
        );
    }
View Full Code Here

        );
    }
    @AuraEnabled
    public ArrayList<InputOption>  getSecondOptionSel() {
        return Lists.newArrayList(
            new InputOption("Tiger", "Tiger", false, "Tiger"),
            new InputOption("Lion", "Lion", true, "Lion"),
            new InputOption("Bear", "Bear", false, "Bear")
        );
    }
View Full Code Here

        );
    }
    @AuraEnabled
    public ArrayList<InputOption>  getNoOptionsSelWithNone() {
        return Lists.newArrayList(
            new InputOption("None", "None", false, ""),
            new InputOption("Tiger", "Tiger", false, "Tiger"),
            new InputOption("Lion", "Lion", false, "Lion"),
            new InputOption("Bear", "Bear", false, "Bear")
        );
    }
View Full Code Here

        );
    }
    @AuraEnabled
    public ArrayList<InputOption>  getThirdOptionSelWithNone() {
        return Lists.newArrayList(
            new InputOption("None", "None", false, ""),
            new InputOption("Tiger", "Tiger", false, "Tiger"),
            new InputOption("Lion", "Lion", true, "Lion"),
            new InputOption("Bear", "Bear", false, "Bear")
        );
    }
View Full Code Here

        );
    }
    @AuraEnabled
    public ArrayList<InputOption>  getThirdOptionSel() {
        return Lists.newArrayList(
            new InputOption("Tiger", "Tiger", false, "Tiger"),
            new InputOption("Lion", "Lion", false, "Lion"),
            new InputOption("Bear", "Bear", true, "Bear")
        );
    }
View Full Code Here

   
    private List<InputOption> items;
   
    public TodoModel(){
        items = new ArrayList<InputOption>();
        InputOption m1 = new InputOption("Download Aura source code", "first", false, "X-Small");
        items.add(m1);
        InputOption m2 = new InputOption("Make sure you have JDK 1.6 and Maven", "second", false, "Small");
        items.add(m2);
        InputOption m3 = new InputOption("Create your first project", "third", false, "Medium");
        items.add(m3);
        InputOption m4 = new InputOption("Build and run", "fourth", false, "Large");
        items.add(m4);
        InputOption m5 = new InputOption("Give yourself a pat on the back!", "fifth", false, "X-Large");
        items.add(m5);
    }
View Full Code Here

    }

    private static ArrayList<InputOption> getSubCategory(String option) {
        ArrayList<InputOption> categoryOption = new ArrayList<>();
        if (option.equals("option1")) {
            categoryOption.add(new InputOption("", "", false, "opt1-sub1"));
            categoryOption.add(new InputOption("", "", false, "opt1-sub2"));
            categoryOption.add(new InputOption("", "", false, "opt1-sub3"));
        } else if (option.equals("option2")) {
            categoryOption.add(new InputOption("", "", false, "opt2-sub1"));
        } else if (option.equals("option3")) {
            categoryOption.add(new InputOption("", "", false, "opt3-sub1"));
            categoryOption.add(new InputOption("", "", false, "opt3-sub2"));
        }
        return categoryOption;
    }
View Full Code Here

    }

    private static ArrayList<InputOption> getSubCategory(String option) {
        ArrayList<InputOption> categoryOption = new ArrayList<>();
        if (option.equals("option1")) {
            categoryOption.add(new InputOption("", "", false, "opt1-sub1"));
            categoryOption.add(new InputOption("", "", false, "opt1-sub2"));
            categoryOption.add(new InputOption("", "", false, "opt1-sub3"));
        } else if (option.equals("option2")) {
            categoryOption.add(new InputOption("", "", false, "opt2-sub1"));
        } else if (option.equals("option3")) {
            categoryOption.add(new InputOption("", "", false, "opt3-sub1"));
            categoryOption.add(new InputOption("", "", false, "opt3-sub2"));
        }
        return categoryOption;
    }
View Full Code Here

TOP

Related Classes of org.auraframework.components.ui.InputOption

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.