06-02-2009 03:59 PM
How do I change the style (e.g. LabelField.FIELD_LEFT) of a LabelField after it has been instantiated? I didn't see a setStyle or setFieldStyle for any of the Field subclasses. Did I miss something?
06-02-2009 04:10 PM
No, you did not miss anything.
there is no setStyle() neither setFieldStyle() methods available for LabelField nor for Field classes.
to change style of LabelField instance remove it from the Manager instance, compose a new one and add to the Manager instance.
assign null to the variable that holds the reference to removed LabelField instance. It will help to recycle the unused memory in your application.
06-02-2009 05:18 PM
Set field reference to null after the field has been removed from the manager.
Setting field reference to null does not remove it from the screen/manager. It is just additional memory conserving measure.
To remove field from the screen/manager use delete() method.