Examples of TerraFileBrowserSheetSkin


Examples of org.apache.pivot.wtk.skin.terra.TerraFileBrowserSheetSkin

        this(Mode.OPEN);
    }

    public FileBrowserWithCharsetTest(Mode mode) {
        super(mode);
        TerraFileBrowserSheetSkin skin = (TerraFileBrowserSheetSkin)getSkin();
        BoxPane box = new BoxPane();
        box.getStyles().put("verticalAlignment", VerticalAlignment.CENTER);
        box.add(new Label("Character set:"));
        Charset defaultCS = Charset.defaultCharset();
        choices.add("US-ASCII");
        choices.add(defaultCS.name());
        choices.add("ISO-8859-1");
        if (!"UTF-8".equals(defaultCS.name()))
            choices.add("UTF-8");

        lb.setListData(choices);
        lb.setSelectedIndex(1);
        box.add(lb);
        skin.addComponent(box);
    }
View Full Code Here

Examples of org.apache.pivot.wtk.skin.terra.TerraFileBrowserSheetSkin

        this(Mode.OPEN);
    }

    public FileBrowserWithCharsetTest(Mode mode) {
        super(mode);
        TerraFileBrowserSheetSkin skin = (TerraFileBrowserSheetSkin)getSkin();
        BoxPane box = new BoxPane();
        box.getStyles().put("verticalAlignment", VerticalAlignment.CENTER);
        box.add(new Label("Character set:"));
        Charset defaultCS = Charset.defaultCharset();
        choices.add("US-ASCII");
        choices.add(defaultCS.name());
        choices.add("ISO-8859-1");
        if (!"UTF-8".equals(defaultCS.name()))
            choices.add("UTF-8");

        lb.setListData(choices);
        lb.setSelectedIndex(1);
        box.add(lb);
        skin.addComponent(box);
    }
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.