public Object doGetData() { Object data = super.doGetData(); if ((data == null) || (DBConstants.BLANK.equals(data))) { if (NONE_BUTTON == null) { String NONE = "None"; if (getRecord().getTask() != null) { BaseAppletReference reference = null; if (getRecord().getTask() instanceof BaseAppletReference) reference = (BaseAppletReference)getRecord().getTask(); if (getRecord().getTask().getApplication() != null) NONE_BUTTON = getRecord().getTask().getApplication().getResourceURL(Util.getImageFilename(NONE, "buttons"), reference); } } return NONE_BUTTON; } return data; } };
public Object doGetData() { Object data = super.doGetData(); if ((data == null) || (DBConstants.BLANK.equals(data))) { if (NONE_BUTTON == null) { String NONE = "None"; if (getRecord().getRecordOwner() instanceof BaseScreen) if (((BaseScreen)getRecord().getRecordOwner()).getParentScreen() != null) if (((BaseScreen)getRecord().getRecordOwner()).getParentScreen().getAppletScreen() != null) NONE_BUTTON = ((BaseApplet)((BaseScreen)getRecord().getRecordOwner()).getParentScreen().getAppletScreen().getScreenFieldView().getControl()).loadImageIcon(NONE, null); } return NONE_BUTTON; } return data; } };
public Object doGetData() { Object data = super.doGetData(); if ((data == null) || (DBConstants.BLANK.equals(data))) { if (NONE_BUTTON == null) { String NONE = "None"; if (getRecord().getRecordOwner() instanceof BaseScreen) if (((BaseScreen)getRecord().getRecordOwner()).getParentScreen() != null) if (((BaseScreen)getRecord().getRecordOwner()).getParentScreen().getAppletScreen() != null) NONE_BUTTON = ((BaseApplet)((BaseScreen)getRecord().getRecordOwner()).getParentScreen().getAppletScreen().getScreenFieldView().getControl()).loadImageIcon(NONE, null); } return NONE_BUTTON; } return data; } };
/** * Get the target field in this record. */ public Converter getTargetField(Record record) { if (record == null) { BaseTable currentTable = m_recMerge.getTable().getCurrentTable(); if (currentTable == null) currentTable = m_recMerge.getTable(); // First time only record = currentTable.getRecord(); } Converter field = record.getField(m_iFieldSeq); // Get the current field if (m_iSecondaryFieldSeq != -1) if (field instanceof ReferenceField) if (((ReferenceField)field).getRecord() != null) if (((ReferenceField)field).getRecord().getTable() != null) // Make sure this isn't being called in free() { // Special case - field in the secondary file Record recordSecond = ((ReferenceField)field).getReferenceRecord(); if (recordSecond != null) field = recordSecond.getField(m_iSecondaryFieldSeq); } return field; } }
/** * Get the target field in this record. */ public Converter getTargetField(Record record) { if (record == null) { BaseTable currentTable = m_recMerge.getTable().getCurrentTable(); if (currentTable == null) currentTable = m_recMerge.getTable(); // First time only record = currentTable.getRecord(); } Converter field = record.getField(m_iFieldSeq); // Get the current field if (m_iSecondaryFieldSeq != -1) if (field instanceof ReferenceField) if (((ReferenceField)field).getRecord() != null) if (((ReferenceField)field).getRecord().getTable() != null) // Make sure this isn't being called in free() { // Special case - field in the secondary file Record recordSecond = ((ReferenceField)field).getReferenceRecord(); if (recordSecond != null) field = recordSecond.getField(m_iSecondaryFieldSeq); } return field; } }