Creating Custom Fields and Managers is Easier than You Think!

Page 45

Slider Handle Navigation Event • When in edit mode, intercept navigation movements, change state, and notify field change listeners – Otherwise, just pass them up to the superclass to handle boolean navigationMovement( int dx, int dy, int status, int time ) { if( _pressed ) { if( dx > 0 || dy > 0 ) { incrementValue(); } else { decrementValue(); } fieldChangeNotify( 0 ); return true; } return super.navigationMovement( dx, dy, status, time ); }


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.