/** * Get the status by combining the other status. */ public Object doGetData() { this.getOwner().setData(this.getStatus()); return super.doGetData(); } /**
/** * Get the status by combining the other status. */ public Object doGetData() { this.getOwner().setData(this.getStatus()); return super.doGetData(); } /**
/** * Get the physical binary data from this field. * Behaviors are often used to initiate a complicated action only when the system asks for this data. * @return The raw data for this field. */ public Object getData() { Object objData = null; FieldListener nextListener = (FieldListener)this.getNextValidListener(DBConstants.SCREEN_MOVE); // Fix this if (nextListener != null) { boolean bOldState = nextListener.setEnabledListener(false); // Disable the listener to eliminate echos objData = nextListener.doGetData(); nextListener.setEnabledListener(bOldState); // Reenable } else objData = this.doGetData(); return objData; } /**
/** * Get the physical binary data from this field. * Behaviors are often used to initiate a complicated action only when the system asks for this data. * @return The raw data for this field. */ public Object getData() { Object objData = null; FieldListener nextListener = (FieldListener)this.getNextValidListener(DBConstants.SCREEN_MOVE); // Fix this if (nextListener != null) { boolean bOldState = nextListener.setEnabledListener(false); // Disable the listener to eliminate echos objData = nextListener.doGetData(); nextListener.setEnabledListener(bOldState); // Reenable } else objData = this.doGetData(); return objData; } /**
/** * Get the physical binary data from this field. * Behaviors are often used to initiate a complicated action only when the system asks for this data. * @return The raw data for this field. */ public Object getData() { Object objData = null; FieldListener nextListener = (FieldListener)this.getNextValidListener(DBConstants.SCREEN_MOVE); // Fix this if (nextListener != null) { boolean bOldState = nextListener.setEnabledListener(false); // Disable the listener to eliminate echos objData = nextListener.doGetData(); nextListener.setEnabledListener(bOldState); // Reenable } else objData = this.doGetData(); return objData; } /**
/** * Get the physical binary data from this field. * Behaviors are often used to initiate a complicated action only when the system asks for this data. * @return The field's raw data. */ public Object doGetData() { Object objData = null; FieldListener nextListener = (FieldListener)this.getNextValidListener(DBConstants.SCREEN_MOVE); if (nextListener != null) { boolean bOldState = nextListener.setEnabledListener(false); // Disable the listener to eliminate echos objData = nextListener.doGetData(); nextListener.setEnabledListener(bOldState); // Reenable } else if (m_owner != null) objData = this.getOwner().doGetData(); return objData; } /**
/** * Get the physical binary data from this field. * Behaviors are often used to initiate a complicated action only when the system asks for this data. * @return The field's raw data. */ public Object doGetData() { Object objData = null; FieldListener nextListener = (FieldListener)this.getNextValidListener(DBConstants.SCREEN_MOVE); if (nextListener != null) { boolean bOldState = nextListener.setEnabledListener(false); // Disable the listener to eliminate echos objData = nextListener.doGetData(); nextListener.setEnabledListener(bOldState); // Reenable } else if (m_owner != null) objData = this.getOwner().doGetData(); return objData; } /**
/** * Get the physical binary data from this field. * Behaviors are often used to initiate a complicated action only when the system asks for this data. * @return The field's raw data. */ public Object doGetData() { Object objData = null; FieldListener nextListener = (FieldListener)this.getNextValidListener(DBConstants.SCREEN_MOVE); if (nextListener != null) { boolean bOldState = nextListener.setEnabledListener(false); // Disable the listener to eliminate echos objData = nextListener.doGetData(); nextListener.setEnabledListener(bOldState); // Reenable } else if (m_owner != null) objData = this.getOwner().doGetData(); return objData; } /**
public Object doGetData() { double dStartBalance = this.getOwner().getRecord().getField(GenledScreenRecord.START_BALANCE).getValue(); double dChangeBalance = this.getOwner().getRecord().getField(GenledScreenRecord.CHANGE_BALANCE).getValue(); this.getOwner().setValue(dStartBalance + dChangeBalance); return super.doGetData(); } });
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; } };
/** * Get the raw data from this behavior's owner's field. */ public Object doGetData() { Object data = super.doGetData(); if (m_fldTourID != null) { Record recTour = m_fldTourID.getReferenceRecord(); if ((ApTrx.TOUR_ID_KEY.equals(this.getOwner().getRecord().getDefaultKeyName())) && ((this.getOwner().getRecord().getListener(SubFileFilter.class) != null)) && (recTour != null) && (!m_fldTourID.equals(recTour.getCounterField()))) recTour = null; else m_fldTourID.getReference(); if (recTour != null) if ((recTour.getEditMode() == DBConstants.EDIT_CURRENT) || (recTour.getEditMode() == DBConstants.EDIT_IN_PROGRESS)) data = recTour.getField(TourModel.DEPARTURE_DATE).getData(); } return data; }
/** * Get the product type of this detail record. * This is used to fill in the virtual ProductType field in BookingDetail. */ public Object doGetData() { String strDesc = DBConstants.BLANK; Record recBookingDetail = (BookingSub)this.getOwner().getRecord(); Record recProductType = ((ReferenceField)recBookingDetail.getField(BookingDetail.PRODUCT_TYPE_ID)).getReference(); if ((recProductType == null) || (recProductType.getEditMode() == DBConstants.EDIT_ADD) || (recProductType.getEditMode() == DBConstants.EDIT_NONE)) { strDesc = recBookingDetail.getRecordName(); if (strDesc.indexOf(Booking.BOOKING_FILE) == 0) strDesc = strDesc.substring(Booking.BOOKING_FILE.length()); } else strDesc = recProductType.getField(ProductType.DESCRIPTION).toString(); if (this.getOwner().getRecord().isModified()) this.getOwner().setData(strDesc); else { // Make sure you don't trigger any field or file changes by setting this here boolean[] listenersState = this.getOwner().setEnableListeners(false); this.getOwner().setData(strDesc, Constants.DISPLAY, Constants.INIT_MOVE); this.getOwner().setModified(false); this.getOwner().setEnableListeners(listenersState); } return super.doGetData(); }
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 product type of this detail record. * This is used to fill in the virtual ProductType field in BookingDetail. */ public Object doGetData() { String strDesc = DBConstants.BLANK; Record recBookingDetail = (BookingSub)this.getOwner().getRecord(); Record recProductType = ((ReferenceField)recBookingDetail.getField(BookingDetail.PRODUCT_TYPE_ID)).getReference(); if ((recProductType == null) || (recProductType.getEditMode() == DBConstants.EDIT_ADD) || (recProductType.getEditMode() == DBConstants.EDIT_NONE)) { strDesc = recBookingDetail.getRecordName(); if (strDesc.indexOf(Booking.BOOKING_FILE) == 0) strDesc = strDesc.substring(Booking.BOOKING_FILE.length()); } else strDesc = recProductType.getField(ProductType.DESCRIPTION).toString(); if (this.getOwner().getRecord().isModified()) this.getOwner().setData(strDesc); else { // Make sure you don't trigger any field or file changes by setting this here boolean[] listenersState = this.getOwner().setEnableListeners(false); this.getOwner().setData(strDesc, Constants.DISPLAY, Constants.INIT_MOVE); this.getOwner().setModified(false); this.getOwner().setEnableListeners(listenersState); } return super.doGetData(); }
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; } };