Answers below.
By the way, hurry up and fix the links on your blog (index and widget
launch), so I can link to it from the WidgetFX homepage. ;-)
Pär Dahlberg wrote:
> I plan to have several devices monitored with my disk space widget.
> What would the best scenario be for WidgetFX? To let the user add
> several instances of the widget or to configure the widget for several
> devices in one instance?
>
> I guess the best would be to be able to do both :)
>
> As it is now I can only add one instance of a widget. But I guess that
> most widgets could have a multi instance use. Even the clock if you
> could configure the time zone. Is there a plan for this or is it
> already possible, but I've missed it?
>
Right now the framework restricts widgets to a single instance only. I
was thinking about relaxing this restriction (it used to work before),
and I think you've convinced me it is worth doing. Maybe for the
upcoming 0.2 release...
> Then the programming question. I would like to let the user add an
> optional number of devices to monitor, but I'm not sure how I would
> code that with WidgetFX Configuration. Do you have any idea? I'm going
> to let each device have at least path, title, icon, refresh rate and
> progress bar warning threashold configurable. I guess it could work
> with ...SequenceProperty, but I get the feeling it would be a bit
> clumsy.
>
SequencesProperties are the way to go. JavaFX has a nice feature to
allow you to iterate over multiple properties in lock-step, so it might
not be as ugly as you think. (although I am open to suggestions)