openhab-core/itests
lolodomo 1fb949ba8f
Set a default presentation pattern for String/Number/Datetime items (#4175)
* Set a default presentation pattern for String/Number/Datetime items

A default state pattern was previously provided by ChannelStateDescriptionProvider only for String and Number items linked to a channel.
It is now the class DefaultStateDescriptionFragmentProvider which is responsible for providing the default state pattern for items, whether the item is linked to a channel or not.
This new class is the lowest ranked StateDescriptionFragmentProvider so that all other providers have priority in setting the state pattern.

Default pattern for string item: %s
Default pattern for datetime item or group with datetime state: %1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS
Default pattern for number item or group with number state: %.0f
Default pattern for number+dimension item or group with number+dimension state: %.0f %unit%

Closes #4071
Closes #3835

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-05-02 16:29:35 +02:00
..
org.openhab.core.addon.tests Upgrade to Karaf 4.4.5 and Xtext 2.34 (#4133) 2024-03-17 09:41:15 +01:00
org.openhab.core.auth.oauth2client.tests Upgrade to Karaf 4.4.5 and Xtext 2.34 (#4133) 2024-03-17 09:41:15 +01:00
org.openhab.core.automation.integration.tests Upgrade Jollyday to 0.27.0 (#4178) 2024-04-14 22:20:55 +02:00
org.openhab.core.automation.module.core.tests Upgrade Jollyday to 0.27.0 (#4178) 2024-04-14 22:20:55 +02:00
org.openhab.core.automation.module.script.tests Upgrade Jollyday to 0.27.0 (#4178) 2024-04-14 22:20:55 +02:00
org.openhab.core.automation.module.timer.tests Upgrade Jollyday to 0.27.0 (#4178) 2024-04-14 22:20:55 +02:00
org.openhab.core.automation.tests Upgrade Jollyday to 0.27.0 (#4178) 2024-04-14 22:20:55 +02:00
org.openhab.core.config.core.tests Upgrade to Karaf 4.4.5 and Xtext 2.34 (#4133) 2024-03-17 09:41:15 +01:00
org.openhab.core.config.discovery.mdns.tests Upgrade to Karaf 4.4.5 and Xtext 2.34 (#4133) 2024-03-17 09:41:15 +01:00
org.openhab.core.config.discovery.tests Upgrade to Karaf 4.4.5 and Xtext 2.34 (#4133) 2024-03-17 09:41:15 +01:00
org.openhab.core.config.discovery.usbserial.linuxsysfs.tests Upgrade Jollyday to 0.27.0 (#4178) 2024-04-14 22:20:55 +02:00
org.openhab.core.config.discovery.usbserial.tests Upgrade to Karaf 4.4.5 and Xtext 2.34 (#4133) 2024-03-17 09:41:15 +01:00
org.openhab.core.config.dispatch.tests Upgrade to Karaf 4.4.5 and Xtext 2.34 (#4133) 2024-03-17 09:41:15 +01:00
org.openhab.core.ephemeris.tests Upgrade Jollyday to 0.27.0 (#4178) 2024-04-14 22:20:55 +02:00
org.openhab.core.io.net.tests Upgrade to Karaf 4.4.5 and Xtext 2.34 (#4133) 2024-03-17 09:41:15 +01:00
org.openhab.core.io.rest.core.tests Upgrade to Karaf 4.4.5 and Xtext 2.34 (#4133) 2024-03-17 09:41:15 +01:00
org.openhab.core.model.item.tests Upgrade Jollyday to 0.27.0 (#4178) 2024-04-14 22:20:55 +02:00
org.openhab.core.model.rule.tests Upgrade Jollyday to 0.27.0 (#4178) 2024-04-14 22:20:55 +02:00
org.openhab.core.model.script.tests Upgrade Jollyday to 0.27.0 (#4178) 2024-04-14 22:20:55 +02:00
org.openhab.core.model.thing.tests Upgrade Jollyday to 0.27.0 (#4178) 2024-04-14 22:20:55 +02:00
org.openhab.core.model.thing.testsupport Fix JavaDoc issues (#4004) 2024-01-04 00:03:48 +01:00
org.openhab.core.storage.json.tests Upgrade to Karaf 4.4.5 and Xtext 2.34 (#4133) 2024-03-17 09:41:15 +01:00
org.openhab.core.tests Set a default presentation pattern for String/Number/Datetime items (#4175) 2024-05-02 16:29:35 +02:00
org.openhab.core.thing.tests Upgrade to Karaf 4.4.5 and Xtext 2.34 (#4133) 2024-03-17 09:41:15 +01:00
org.openhab.core.voice.tests Upgrade to Karaf 4.4.5 and Xtext 2.34 (#4133) 2024-03-17 09:41:15 +01:00
itest-common.bndrun Upgrade to Karaf 4.4.3 (#3252) 2023-03-01 13:09:07 +01:00
itest-include.bndrun Upgrade to Karaf 4.4.4 (#3814) 2023-09-29 20:23:31 +02:00
pom.xml Update plugins (#4197) 2024-04-27 09:34:39 +02:00