Skip to main content



      Home
Home » Archived » Sapphire » checkbox.layout hint is ignored [SOLVED]
checkbox.layout hint is ignored [SOLVED] [message #1754773] Wed, 22 February 2017 04:39
Eclipse UserFriend
I am trying to show a checkbox that is bound to a boolean property. Currently I have in my model:

    @XmlBinding(path = "use-authentication")
    @Label(standard = "Use Authentication")
    ValueProperty PROP_USE_AUTHENTICATION =
            new ValueProperty(TYPE, "UseAuthentication");

    Value<Boolean> getUseAuthentication();

    void setUseAuthentication(Boolean value);


And in my sdef:
                        <property-editor>
                            <hint>
                                <name>checkbox.layout</name>
                                <value>trailing.label.idented</value>
                            </hint>
                            <property>UseAuthentication</property>
                        </property-editor>


However, the field is still shown as a text box. What am I missing?

EDIT: Found out myself what I was missing.

I was missing the following in my model:
@Type(base = Boolean.class)

[Updated on: Wed, 22 February 2017 04:52] by Moderator

Previous Topic:Outline without root node
Next Topic:How do I display a text box as password?
Goto Forum:
  


Current Time: Thu May 22 03:47:10 EDT 2025

Powered by FUDForum. Page generated in 0.03702 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top