It's a pity. I hoped that there was a solution with the component.xml.
I tried your suggestion and now in th properties-list in swingdesigner i see two value-entries.
The reason is that i wanted to show the value as preferrend entry in the properties-list.
If i remove "value" from properties-preferred names than i get only one entry. But i want to see it bold.
My StringValueField.wbp-component.xml looks like this:
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<description>Eingabefeld für eine Zeichenkette
<li>value = Objekt vom Typ String</li>
<!-- CREATION -->
<!-- CONSTRUCTORS -->
<parameter type="boolean" property="setNullAllowed(boolean)"/>
<!-- PROPERTIES -->
<properties-preferred names="backgroundText nullAllowed value" />
<properties-hidden names="text" />
Also the type (java.lang.String) is shown at the property. Can i hide this?
The more classes i extend i get increasingly more entries for value:
I have some more problems.
Like the StringValueField i have some more Fields.
IntegerValueField: if i enter a value in the property "value" then there is no integer set but an int even the SingDesigner "knows" the type
LongValueField: here the property value didn't get shown in the properties-list
ShortValueField: the same behaviour as for LongValueField
DecimalValueField: (java.lang.Double) the same behaviour as for LongValueField
DateValueField: (java.util.Date) the same behaviour as for LongValueField
Do i have to make somewhere an entry that the right type was used and the value-property get displayed in the properties-list?