Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sapphire-dev] ElementProperty rendering

I have the following element property:
 
    @Type
    (
        base = IMethodCallOutcome.class,
        possible =
        {
            IFixedOutcome.class,
            IToStringOutcome.class
        }
    )   
    @Label( standard = "outcome" )
    @XmlElementBinding
    (
        path = "outcome",
        mappings =
        {
            @XmlElementBinding.Mapping( element = "fixed-outcome", type = IFixedOutcome.class ),
            @XmlElementBinding.Mapping( element = "to-string", type = IToStringOutcome.class )
        }
    )
    @Required
       
    ElementProperty PROP_OUTCOME = new ElementProperty( TYPE, "Outcome" );
   
    ModelElementHandle<IMethodCallOutcome> getOutcome();
 
When this property is rendered using Sapphire's "with" mechanism, the default style is to use radio buttons. Besides the options for "fixed-outcome" and "to-string" types, Sapphire UI also renders a "None" option. This is somewhat confusing to the users since they might think "None" is a valid option for the outcome property.
 
I wonder whether its feasible to provide Sapphire users to not render the "None" option for the element property?
 
Thanks!
 
Shenxue

Back to the top