public ImageField getIconField ( Record record ) { if ( record == null ) record = this . getReferenceRecord ( ) ; for ( int i = 0 ; i < record . getFieldCount ( ) ; i ++ ) { BaseField field = record . getField ( i ) ; if ( field instanceof ImageField ) return ( ImageField ) field ; } return null ; // No icon in this status record }
Get the IconField from this record .