<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">El 27/4/22 a las 09:09, Hilaire
Fernandes via Cuis-dev escribió:<br>
</div>
<blockquote type="cite"
cite="mid:77a1de58-bf8d-d033-2c48-c541ce1e1518@drgeo.eu">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">Le 27/04/2022 à 08:38, Luciano
Notarfrancesco via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAL5GDyr+6JnA+BxuyRyqwnxH86a7AE1b-oFWiAN9XCqTy_+p0Q@mail.gmail.com">
<div class="moz-text-html" lang="x-unicode">
<div>
<div class="gmail_quote"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div text="#000000" bgcolor="#FFFFFF">
<p dir="auto">To overcome the limitation of Preference
mode, we could have subclasses of Preference, each
specialized in one form of preference model: list,
free text, closure, boolean, integer, integer in an
interval, color, etc. Each one could be then
extended in a third party package with the
appropriate widget to edit its content.</p>
</div>
</blockquote>
<div dir="auto"><span
style="border-color:rgb(0,0,0);color:rgb(0,0,0)">I
agree with Mariano that a Symbol for the type should
be enough, I’d prefer to make it as simple as possible
without creating lots of new clases. </span><br>
</div>
</div>
</div>
</div>
</blockquote>
One symbol will help for preferences depending only on one value
(boolean, string, closure). But when the value should be picked up
in a list (as it is the case for the ScreenSize element) it will
not be enough. <br>
</blockquote>
<p>Yes, that's a problem.</p>
<p>Also if you want to have an interval type for example, something
like (you can imagine): <br>
</p>
<p>IntegerPreferenceType new default:0; min: 0; max: 100; yourself</p>
</body>
</html>