lolodomo and GitHub
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
..
2024-05-02 16:29:35 +02:00
2024-02-04 11:17:55 +01:00
2024-01-03 21:20:34 +01:00
2024-04-14 16:11:38 +02:00
2024-01-03 21:20:34 +01:00
2024-04-28 17:43:49 +02:00
2024-01-03 21:20:34 +01:00
2024-04-28 17:11:54 +02:00
2024-04-29 09:11:56 +02:00
2024-01-03 21:20:34 +01:00
2024-04-21 10:16:03 +02:00
2024-04-20 19:15:06 +02:00
2024-03-27 19:37:36 +01:00
2024-05-02 11:41:53 +02:00
2024-04-20 19:17:47 +02:00
2024-04-28 11:39:27 +02:00
2024-02-14 18:53:41 +01:00
2024-01-03 21:20:34 +01:00
2024-01-31 20:35:23 +01:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-02-04 11:17:55 +01:00
2024-01-03 21:20:34 +01:00
2024-04-20 19:15:06 +02:00
2024-03-17 09:41:15 +01:00
2024-02-04 11:17:55 +01:00
2024-04-02 18:21:57 +02:00
2024-01-03 21:20:34 +01:00
2024-04-14 22:20:55 +02:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-01-21 19:13:01 +01:00
2024-01-03 21:20:34 +01:00
2024-01-20 09:56:41 +01:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-03-10 09:59:38 +01:00
2024-04-27 09:34:39 +02:00
2024-04-27 09:34:39 +02:00
2024-04-21 21:22:37 +02:00
2024-04-28 17:11:54 +02:00
2024-01-03 21:20:34 +01:00
2024-04-05 20:40:06 +02:00
2024-04-28 17:11:54 +02:00
2024-01-03 21:20:34 +01:00
2024-02-04 11:17:55 +01:00
2024-05-01 16:16:08 +02:00
2024-03-01 18:43:02 +01:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-03-27 19:37:36 +01:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-04-28 18:04:40 +02:00
2024-01-20 09:56:41 +01:00
2024-02-04 10:29:48 +01:00
2024-02-04 11:17:55 +01:00
2024-02-04 11:17:55 +01:00
2024-01-03 21:20:34 +01:00
2024-02-04 11:17:55 +01:00
2024-01-03 21:20:34 +01:00
2024-04-28 11:39:27 +02:00
2019-12-28 12:18:16 +01:00
2024-02-04 11:17:55 +01:00
2024-04-21 21:22:37 +02:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-03-17 09:41:15 +01:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-03-17 09:41:15 +01:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-04-21 21:22:37 +02:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-04-07 10:51:24 +02:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-05-02 11:41:53 +02:00
2024-01-03 21:20:34 +01:00
2024-01-03 21:20:34 +01:00
2024-05-01 01:21:27 +02:00
2024-05-02 11:47:12 +02:00
2024-04-28 18:02:53 +02:00
2024-04-28 17:11:54 +02:00
2024-02-06 20:34:05 +01:00
2024-01-04 00:03:48 +01:00
2024-05-02 16:29:35 +02:00
2024-01-03 21:20:34 +01:00
2024-05-01 17:33:38 +02:00
2024-02-04 11:17:55 +01:00
2024-03-10 09:41:35 +01:00
2019-05-14 09:04:35 +02:00
2024-04-27 09:34:39 +02:00