[ https://issues.apache.org/jira/browse/FLEX-13154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean updated FLEX-13154: --------------------------------- Labels: easyfix (was: ) > create public static constants for default yesLabel, noLabel, buttonWidth, > etc. in Alert > ---------------------------------------------------------------------------------------- > > Key: FLEX-13154 > URL: https://issues.apache.org/jira/browse/FLEX-13154 > Project: Apache Flex > Issue Type: Improvement > Components: mx: Alert > Affects Versions: Adobe Flex SDK Previous > Environment: Affected OS(s): All OS Platforms > Affected OS(s): All OS Platforms > Browser: Internet Explorer 7.x > Language Found: English > Reporter: Adobe JIRA > Labels: easyfix > > the Alert class lets you override the yesLabel, noLabel, and buttonWidth, but > to restore the values to the default you must hardcode constants in your > code. e.g. > Alert.yesLabel = "Save"; > Alert.noLabel = "Discard"; > Alert.buttonWidth = 80; > Alert.show(...); > Alert.yesLabel = "Yes"; > Alert.noLabel = "No"; > Alert.buttonWidth = 60; > > > i'd rather do the following to restore the defaults: > Alert.yesLabel = Alert.DEFAULT_YES_LABEL; > Alert.noLabel = Alert.DEFAULT_NO_LABEL; > Alert.buttonWidth = Alert.DEFAULT_BUTTON_WIDTH; > > although what i'd really rather do is create an Alert instance and call > show() on it - that way i wouldn't need to modify (and restore) the global > yesLabel, noLabel, and buttonWidth properties of Alert. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira