Creating a type of toggle with two labels..
Pedro Duque Vieira
pedro.duquevieira at gmail.com
Wed Dec 4 13:16:55 PST 2013
Hi,
I'm trying to create a new control to be used by other developers. It is
know as "Toggle Switch".
You can see this control in android:
http://ankri.de/switch-button-for-android-2-3-gingerbread/ in iOS:
http://iosguides.net/ios-menus-comparison/ (search for "Toggle Switch") and
on Windows 8:
http://www.c-sharpcorner.com/UploadFile/83f858/manage-the-windows-8-sync-feature/
(below
"Step 2").
My approach was to subclass ButtonBase which is itself a subclass of
Labeled. The problem here is that Labeled only accepts one label but the
Toggle Switch needs two: one for the "on" state and another for the "off".
Any ideas on how to best approach this problem?
Thanks in advance, regards,
--
Pedro Duque Vieira
More information about the openjfx-dev
mailing list