DonManfred Expert Licensed User Longtime User Feb 19, 2016 #1 Today i tried to build my first b4a view wrapper with custom properties. B4X: // Code in java wrapper @DesignerProperties(values = { @Property(key="PrefixText", displayName="Prefix Text", defaultValue="", fieldType="String"), @Property(key="SuffixText", displayName="Suffix Text", defaultValue="", fieldType="String"), @Property(key="Countdown", displayName="Countdown time in ms", defaultValue="60000", fieldType="Long") }) I have tried Long and also long Both seems not to be known I get this alert when opening the designer Last edited: Feb 19, 2016
Today i tried to build my first b4a view wrapper with custom properties. B4X: // Code in java wrapper @DesignerProperties(values = { @Property(key="PrefixText", displayName="Prefix Text", defaultValue="", fieldType="String"), @Property(key="SuffixText", displayName="Suffix Text", defaultValue="", fieldType="String"), @Property(key="Countdown", displayName="Countdown time in ms", defaultValue="60000", fieldType="Long") }) I have tried Long and also long Both seems not to be known I get this alert when opening the designer
DonManfred Expert Licensed User Longtime User Feb 19, 2016 #2 I´ve used String for now and parse the string to long in java as workaround Upvote 0
Informatix Expert Licensed User Longtime User Feb 19, 2016 #3 And it would be nice to add also "boolean" as it is a bit cumbersome to handle this type with a list of two strings ("true|false"). Upvote 0
And it would be nice to add also "boolean" as it is a bit cumbersome to handle this type with a list of two strings ("true|false").
DonManfred Expert Licensed User Longtime User Feb 19, 2016 #4 From SwitchviewWraper.java (b4a java examples): B4X: @DesignerProperties(values = { @Property(key="Checked", displayName="Checked", defaultValue="False", fieldType="Boolean") }) Upvote 0
From SwitchviewWraper.java (b4a java examples): B4X: @DesignerProperties(values = { @Property(key="Checked", displayName="Checked", defaultValue="False", fieldType="Boolean") })
Informatix Expert Licensed User Longtime User Feb 19, 2016 #5 DonManfred said: From SwitchviewWraper.java (b4a java examples): B4X: @DesignerProperties(values = { @Property(key="Checked", displayName="Checked", defaultValue="False", fieldType="Boolean") }) Click to expand... Ah ok. It is not listed in the documentation so I thought it was missing. Upvote 0
DonManfred said: From SwitchviewWraper.java (b4a java examples): B4X: @DesignerProperties(values = { @Property(key="Checked", displayName="Checked", defaultValue="False", fieldType="Boolean") }) Click to expand... Ah ok. It is not listed in the documentation so I thought it was missing.
Erel B4X founder Staff member Licensed User Longtime User Feb 21, 2016 #6 Informatix said: Ah ok. It is not listed in the documentation so I thought it was missing. Click to expand... Fixed: https://www.b4x.com/android/forum/t...with-enhanced-designer-support.62488/#content Long is indeed not supported. Note that for a countdown an int should be enough. With millisecond units the maximum value is about 25 days (2147483647 / 1000 / 3600 / 24). Upvote 0
Informatix said: Ah ok. It is not listed in the documentation so I thought it was missing. Click to expand... Fixed: https://www.b4x.com/android/forum/t...with-enhanced-designer-support.62488/#content Long is indeed not supported. Note that for a countdown an int should be enough. With millisecond units the maximum value is about 25 days (2147483647 / 1000 / 3600 / 24).