Changes between Version 41 and Version 42 of PRO_LIB_CORE_TUTORIAL
- Timestamp:
- 07/14/09 14:42:26 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PRO_LIB_CORE_TUTORIAL
v41 v42 648 648 649 649 === Bad Code Examples === 650 * Resource Property is a better choice.650 ==== Resource Property is a better choice ==== 651 651 {{{ 652 652 public Prop<JComponent> swingComponent() { … … 669 669 }}} 670 670 671 * Trying to initialize a resource or auto property manually:671 ==== Trying to initialize a resource or auto property manually: ==== 672 672 * suppose one has the following: 673 673 {{{ … … 699 699 }}} 700 700 701 * People tend to the the following in order to initialize the prorperty:701 * People tend to the the following in order to initialize the prorperty: 702 702 {{{ 703 703 button().get(); //does nothing! 704 704 }}} 705 * '''This actually will do nothing. The property is automatically created and initialized when the value property containing the tool-tip is initialized.''' Same applied to auto properties! You do not need to "get()" the property in order for it to be "computed". This is automatically provided by the pro lib.706 * Using a non-ProObject or non-@Immutable object as a value of a property:705 * '''This actually will do nothing. The property is automatically created and initialized when the value property containing the tool-tip is initialized.''' Same applied to auto properties! You do not need to "get()" the property in order for it to be "computed". This is automatically provided by the pro lib. 706 ==== Using a non-ProObject or non-@Immutable object as a value of a property: ==== 707 707 {{{ 708 708