/** * Set up the default control for this field (Using a DateConverter). * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param iDisplayFieldDesc Display the label? (optional). * @return Return the component or ScreenField that is created for this field. */ public ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String, Object> properties) { converter = new DateConverter((Converter)converter, DBConstants.TIME_FORMAT); return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); } /**
/** * Set up the default control for this field (Using a DateConverter). * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param iDisplayFieldDesc Display the label? (optional). * @return Return the component or ScreenField that is created for this field. */ public ScreenField setupDefaultView(ScreenLocation itsLocation, BasePanel targetScreen, Converter converter, int iDisplayFieldDesc) // Add this view to the list { converter = new DateConverter(converter, DBConstants.TIME_FORMAT); return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc); } /**
/** * Set up the default control for this field (Using a DateConverter). * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param iDisplayFieldDesc Display the label? (optional). * @return Return the component or ScreenField that is created for this field. */ public ScreenField setupDefaultView(ScreenLocation itsLocation, BasePanel targetScreen, Converter converter, int iDisplayFieldDesc) // Add this view to the list { converter = new DateConverter(converter, DBConstants.TIME_FORMAT); return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc); } /**
/** * Set up the default screen control for this field (Default using a DateConverter). * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param converter The converter to set the screenfield to. * @param iDisplayFieldDesc Display the label? (optional). * @return Return the component or ScreenField that is created for this field. * For a Date field, use DateConverter. */ public ScreenField setupDefaultView(ScreenLocation itsLocation, BasePanel targetScreen, Converter converter, int iDisplayFieldDesc) // Add this view to the list { converter = new DateConverter(converter, DBConstants.DATE_FORMAT); return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc); } /**
/** * Set up the default screen control for this field (Default using a DateConverter). * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param converter The converter to set the screenfield to. * @param iDisplayFieldDesc Display the label? (optional). * @return Return the component or ScreenField that is created for this field. * For a Date field, use DateConverter. */ public ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String, Object> properties) { converter = new DateConverter((Converter)converter, DBConstants.DATE_FORMAT); return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); } /**
/** * Set up the default screen control for this field (Default using a DateConverter). * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param converter The converter to set the screenfield to. * @param iDisplayFieldDesc Display the label? (optional). * @return Return the component or ScreenField that is created for this field. * For a Date field, use DateConverter. */ public ScreenField setupDefaultView(ScreenLocation itsLocation, BasePanel targetScreen, Converter converter, int iDisplayFieldDesc) // Add this view to the list { converter = new DateConverter(converter, DBConstants.DATE_FORMAT); return super.setupDefaultView(itsLocation, targetScreen, converter, iDisplayFieldDesc); } /**
converter = new DateConverter((Converter)converter, DBConstants.HYBRID_DATE_TIME_FORMAT); int iFormatType = ((DateConverter)converter).getDateFormat(); ScreenComponent screenField = createScreenComponent(ScreenModel.EDIT_TEXT, itsLocation, targetScreen, converter, iDisplayFieldDesc, properties);
converter = new DateConverter(converter, DBConstants.HYBRID_DATE_TIME_FORMAT); int iFormatType = ((DateConverter)converter).getDateFormat(); SEditText screenField = new SEditText(itsLocation, targetScreen, converter, iDisplayFieldDesc);
converter = new DateConverter(converter, DBConstants.HYBRID_DATE_TIME_FORMAT); int iFormatType = ((DateConverter)converter).getDateFormat(); SEditText screenField = new SEditText(itsLocation, targetScreen, converter, iDisplayFieldDesc);
/** * SetupSFields Method. */ public void setupSFields() { Record query = this.getMainRecord(); Converter converter = query.getField(Tour.TOUR_FILE, Tour.DESCRIPTION); converter = new FieldLengthConverter(converter, 30); this.addColumn(converter); this.addColumn(query.getField(Tour.TOUR_FILE, Tour.DEPARTURE_DATE)); converter = query.getField(Tour.TOUR_FILE, Tour.TOUR_STATUS_ID); this.addColumn(converter); BookingPax recBookingPax = (BookingPax)this.getRecord(BookingPax.BOOKING_PAX_FILE); converter = new FirstMLastConverter(recBookingPax, BookingPax.NAME_PREFIX, BookingPax.FIRST_NAME, BookingPax.MIDDLE_NAME, BookingPax.SUR_NAME); converter = new FieldDescConverter(converter, "Passenger Name"); this.addColumn(converter); converter = new DateConverter(query.getField(Booking.BOOKING_FILE, Booking.BOOKING_DATE), DBConstants.DATE_FORMAT); this.addColumn(converter); converter = query.getField(Booking.BOOKING_FILE, Booking.BOOKING_STATUS_ID); this.addColumn(converter); converter = new DateConverter(query.getField(Booking.BOOKING_FILE, Booking.MOD_DATE), DBConstants.DATE_FORMAT); this.addColumn(converter); this.addColumn(query.getField(Booking.BOOKING_FILE, Booking.GENERIC_NAME)); } /**