public Object getStartIcon ( ) { Object iconStart = null ; Record recCalendarCategory = ( ( ReferenceField ) this . getField ( CalendarEntry . CALENDAR_CATEGORY_ID ) ) . getReference ( ) ; if ( ( recCalendarCategory == null ) || ( recCalendarCategory . getEditMode ( ) != DBConstants . EDIT_CURRENT ) ) if ( this . getField ( Anniversary . ANNIV_MASTER_ID ) instanceof ReferenceField ) { // Record recAnnivMaster = ((ReferenceField)this.getField(Anniversary.ANNIV_MASTER_ID)).getReference(); // if ((recAnnivMaster != null) && ((recAnnivMaster.getEditMode() == DBConstants.EDIT_CURRENT) || (recAnnivMaster.getEditMode() == DBConstants.EDIT_IN_PROGRESS))) // recCalendarCategory = ((ReferenceField)recAnnivMaster.getField(AnnivMaster.CALENDAR_CATEGORY_ID)).getReference(); } if ( ( recCalendarCategory != null ) && ( recCalendarCategory . getEditMode ( ) == DBConstants . EDIT_CURRENT ) ) iconStart = ( ( ImageField ) recCalendarCategory . getField ( CalendarCategory . ICON ) ) . getImage ( ) . getImage ( ) ; if ( iconStart == null ) { if ( this . getTask ( ) instanceof BaseApplet ) iconStart = ( ( BaseApplet ) this . getTask ( ) ) . loadImageIcon ( "Calendar" ) ; } return iconStart ; }
Get the icon for the screen display .