Caution: | Do not add logic to the Java classes in the gen/src or gen/api-src folders. When you generate sources or when you generate sources and API for a Mobile Project, Mobile Development regenerates all the Java classes in those folders. Changes you make will be lost. |
Type of Logic | Description |
Genera | Logic that applies to the entire application. For example, you might want to add logic to respond when a user rotates a device from portrait mode to landscape or vice versa. |
View | Business logic for a view. For more information, see Logic for a View. |
Dialog | Business logic for a dialog. For more information, see Logic to Display and Close a Dialog. |
Method Name property | Logic for a Method Name property. Several user interface objects have a Method Name property where you can specify a method to invoke at run time. For example, you specify a method name for the DynamicDropDownListEntryItem object to identify the method the application executes at run time to populate the parent DropDownListEntry object. For information, see Logic for a Method Name Property. |
Property value | Logic to programmatically set a property. Many properties allow you to specify a method name as the property value. At run time, the application executes the method to determine the property value. For example, you might want to programmatically determine the color to use for the Background Color property for a Tablerow object. To do so, specify the name of the method that sets the color as the value of the Background Color property. For information, see Logic to Programmatically Set a Property
Value at Run Time. |
Event handling | Logic to respond to a user-initiated event. For more information, see Responding to user-initiated events. |
View transitions | Logic to transition to another view. For more information, see Logic to Transition to Another View |
Templates | Logic for templates to define custom user interface objects. For more information, see Creating a Template for a Custom
Object. |