Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » checkbox.layout hint is ignored [SOLVED]
checkbox.layout hint is ignored [SOLVED] [message #1754773] Wed, 22 February 2017 09:39
Jens Rabe is currently offline Jens RabeFriend
Messages: 81
Registered: September 2013
Member
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 09:52]

Report message to a moderator

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


Current Time: Sun Oct 06 05:24:50 GMT 2024

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

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

Back to the top