Package org.locationtech.udig.feature.editor.field

Examples of org.locationtech.udig.feature.editor.field.StringAttributeField


        super.init(site, memento);
    }

    @Override
    public void createFieldEditors() {
        addField(new StringAttributeField("LONG_NAME", "Name", getParent()));
        addField(new IntegerAttributeField("POP_CNTRY", "Population", getParent()));
        addField(new StringAttributeField(CNTRY_NAME, "Country", getParent()));

        // one way to do things!
        currCode = addField(new StringAttributeField("CURR_CODE", "Currancy", getParent()));

        // another way to do things
        currType = new StringAttributeField(CURR_TYPE, "Currancy Type", getParent());
        addField(currType);

        addField(new StringAttributeField("FIPS_CNTRY", "FIPS", getParent()));
        addField(new StringAttributeField(GMI_CNTRY, "Code", getParent()));
        addField(new StringAttributeField("ISO_3DIGIT", "ISO 3", getParent()));
        addField(new StringAttributeField("ISO_2DIGIT", "ISO 2", getParent()));

        // combo box!
        addField(new ComboAttributeField2("LANDLOCKED", "Landbound", Arrays.asList(new Object[]{
                "Y", "N"}), getParent()));
    }
View Full Code Here


        super.init(site, memento);
    }

    @Override
    public void createFieldEditors() {
        StringAttributeField field = addField(new StringAttributeField("SQKM", "Area (square km)",
                getParent()));
        field.getLabelControl(getParent()).setToolTipText("Area km");

        field = addField(new StringAttributeField("SQMI", "Square Miles:", getParent()));
        field.getLabelControl(getParent()).setToolTipText("Area miles");

        ComboAttributeField2 combo = addField(new ComboAttributeField2(COLOR_MAP, "Color Map",
                Arrays.asList(COLOR_MAP_OPTS), getParent()));
        ComboViewer viewer = combo.getViewer();
        viewer.setLabelProvider(new LabelProvider(){
View Full Code Here

TOP

Related Classes of org.locationtech.udig.feature.editor.field.StringAttributeField

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.