Examples of bindChecked()


Examples of org.terasology.rendering.nui.widgets.UICheckbox.bindChecked()

    }

    public static void tryBindCheckbox(UIWidget widget, String id, Binding<Boolean> binding) {
        UICheckbox checkbox = widget.find(id, UICheckbox.class);
        if (checkbox != null) {
            checkbox.bindChecked(binding);
        }
    }
}
View Full Code Here

Examples of org.terasology.rendering.nui.widgets.UICheckbox.bindChecked()

    private class CheckboxPropertyFactory implements PropertyFactory<Checkbox> {
        @Override
        public Property create(FieldMetadata<Object, ?> fieldMetadata, String id, Checkbox info) {
            UICheckbox checkbox = new UICheckbox();
            Binding<Boolean> binding = new BooleanTextBinding((FieldMetadata<Object, Boolean>) fieldMetadata);
            checkbox.bindChecked(binding);
            String label = fromLabelOrId(info.label(), id);
            return new Property<>(label, binding, checkbox, info.description());
        }
    }
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.