Created
August 18, 2020 16:08
-
-
Save doom369/85b96d637ce090f985d6fe143757e6f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static WidgetProperty valueOfSwitch(String value) { | |
switch (value) { | |
case "LABEL" : | |
return WidgetProperty.LABEL; | |
case "COLOR" : | |
return WidgetProperty.COLOR; | |
case "ON_LABEL" : | |
return WidgetProperty.ON_LABEL; | |
case "OFF_LABEL" : | |
return WidgetProperty.OFF_LABEL; | |
case "MIN" : | |
return WidgetProperty.MIN; | |
case "MAX" : | |
return WidgetProperty.MAX; | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment