Global Options

The options in the top bar are global, and apply to all views as appropriate:

  • Consts Code Module is a text field that holds a name of a Code Module. The name is used as the name of an associated Static Code Module where it expects to find the constants when accessing the a data map. It also acts as a flag to generate any Globals related to Map keys on a separate page.
  • Register Prefixes When creating get/setters in a class the variable names need to be different to the get/set methods that update them. This can be done with prefixes. My preferred method it to use a lower case abreviation of the field type. So lblProjectName, or taText. Entering the prefixes as a comma delimited string i.e. lbl,ta then allows ClassFromLayout to remove them from views as needed, ensuring that get/setters will work correctly.
  • Prefer Views Is the global setting of either B4xView or Native, again these can be overridden by field. Custom views will always use their Native type.
  • Get/Set The get set drop down allows specifying the use of get/set to create properties for fields, or using Get/Set which will not create properties. You can also specify either just get/Get of just set/Set. 'get/set' is the default, which can be overridden for each field.

The button next to register prefixes field allows entering a regex string to parse all of the view names and obtain their prefixes. Regex is included for camel cased names that will select the characters upto the first Capital letter. You can add more regex strings as needed.