/** * Get the field name at this location on the screen. * @param iScreenSeq The screen sequence to get the field name from. * @return The field name at this screen location. */ public String getFieldName(int iScreenSeq) { // Override this to do something else! Converter field = super.getFieldForScreen(iScreenSeq); if (field == null) return null; if (field == SKIP_THIS_FIELD) return Constants.BLANK; return field.getFieldName(); } /**
/** * Add the screen controls to the second column of the grid. */ public JComponent createScreenComponent(Converter fieldInfo) { JComponent component = super.createScreenComponent(fieldInfo); if (fieldInfo.getFieldName().equals(BookingDetail.DETAIL_END_DATE)) ScreenUtil.setEnabled(component, false); return component; } }
/** * Add the screen controls to the second column of the grid. */ public JComponent createScreenComponent(Converter fieldInfo) { JComponent component = super.createScreenComponent(fieldInfo); if (fieldInfo.getFieldName().equals(BookingDetail.DETAIL_END_DATE)) ScreenUtil.setEnabled(component, false); return component; } }
/** * Add the screen controls to the second column of the grid. */ public JComponent createScreenComponent(Converter fieldInfo) { JComponent component = super.createScreenComponent(fieldInfo); if (fieldInfo.getFieldName().equals(BookingDetail.DETAIL_END_DATE)) ScreenUtil.setEnabled(component, false); return component; } }
/** * Add the screen controls to the second column of the grid. */ public JComponent createScreenComponent(Converter fieldInfo) { JComponent component = super.createScreenComponent(fieldInfo); if (TourHeader.DAYS.equals(fieldInfo.getFieldName())) ScreenUtil.setEnabled(component, false); return component; } }
/** * Add the screen controls to the second column of the grid. */ public JComponent createScreenComponent(Converter fieldInfo) { JComponent component = super.createScreenComponent(fieldInfo); if (fieldInfo.getFieldName().equals(BookingDetail.DETAIL_END_DATE)) ScreenUtil.setEnabled(component, false); return component; } }
/** * Add the screen controls to the second column of the grid. */ public JComponent createScreenComponent(Converter fieldInfo) { JComponent component = super.createScreenComponent(fieldInfo); if (fieldInfo.getFieldName().equals(BookingDetail.DETAIL_END_DATE)) ScreenUtil.setEnabled(component, false); return component; } }
/** * Add the screen controls to the second column of the grid. */ public JComponent addScreenControl(Container parent, Converter fieldInfo) { GridBagConstraints c = this.getGBConstraints(); c.gridy = GridBagConstraints.RELATIVE; // Bump Row each time if (fieldInfo.getFieldName().equals(BookingHotel.SINGLE_COST)) { c.gridy = 0; c.gridx = 5; // Column 4 } return super.addScreenControl(parent, fieldInfo); } /**
/** * Add the screen controls to the second column of the grid. */ public JComponent addScreenControl(Container parent, Converter fieldInfo) { GridBagConstraints c = this.getGBConstraints(); c.gridy = GridBagConstraints.RELATIVE; // Bump Row each time if (fieldInfo.getFieldName().equals(BookingDetail.TOTAL_COST)) { c.gridy = 0; c.gridx = 5; // Column 4 } return super.addScreenControl(parent, fieldInfo); } /**
/** * Add the description labels to the first column of the grid. */ public JComponent addScreenLabel(Container parent, Converter fieldInfo) { GridBagConstraints c = this.getGBConstraints(); c.gridy = GridBagConstraints.RELATIVE; // Bump Row each time if (fieldInfo.getFieldName().equals(BookingDetail.DETAIL_DATE)) { c.gridy = 0; c.gridx = 4; // Column 3 } return super.addScreenLabel(parent, fieldInfo); } /**
/** * Add the description labels to the first column of the grid. */ public JComponent addScreenLabel(Container parent, Converter fieldInfo) { GridBagConstraints c = this.getGBConstraints(); c.gridy = GridBagConstraints.RELATIVE; // Bump Row each time if (fieldInfo.getFieldName().equals(Product.VENDOR_NAME)) { c.gridy = 0; c.gridx = 4; // Column 3 } return super.addScreenLabel(parent, fieldInfo); } /**
/** * Add the description labels to the first column of the grid. */ public JComponent addScreenLabel(Container parent, Converter fieldInfo) { GridBagConstraints c = this.getGBConstraints(); c.gridy = GridBagConstraints.RELATIVE; // Bump Row each time if (fieldInfo.getFieldName().equals(Product.VENDOR_NAME)) { c.gridy = 0; c.gridx = 4; // Column 3 } return super.addScreenLabel(parent, fieldInfo); } /**
/** * Add the screen controls to the second column of the grid. */ public JComponent addScreenControl(Container parent, Converter fieldInfo) { GridBagConstraints c = this.getGBConstraints(); c.gridy = GridBagConstraints.RELATIVE; // Bump Row each time if (fieldInfo.getFieldName().equals(BookingDetail.TOTAL_COST)) { c.gridy = 0; c.gridx = 5; // Column 4 } return super.addScreenControl(parent, fieldInfo); } /**
/** * Add the screen controls to the second column of the grid. */ public JComponent addScreenControl(Container parent, Converter fieldInfo) { GridBagConstraints c = this.getGBConstraints(); c.gridy = GridBagConstraints.RELATIVE; // Bump Row each time if (fieldInfo.getFieldName().equals(BookingDetail.DETAIL_DATE)) { c.gridy = 0; c.gridx = 5; // Column 4 } return super.addScreenControl(parent, fieldInfo); } /**
/** * Add the screen controls to the second column of the grid. */ public JComponent addScreenControl(Container parent, Converter fieldInfo) { GridBagConstraints c = this.getGBConstraints(); c.gridy = GridBagConstraints.RELATIVE; // Bump Row each time if (fieldInfo.getFieldName().equals(BookingDetail.TOTAL_COST)) { c.gridy = 0; c.gridx = 5; // Column 4 } return super.addScreenControl(parent, fieldInfo); } /**
/** * Add the description labels to the first column of the grid. */ public JComponent addScreenLabel(Container parent, Converter fieldInfo) { GridBagConstraints c = this.getGBConstraints(); c.gridy = GridBagConstraints.RELATIVE; // Bump Row each time if (fieldInfo.getFieldName().equals(Product.VENDOR_NAME)) { c.gridy = 0; c.gridx = 4; // Column 3 } return super.addScreenLabel(parent, fieldInfo); } /**
/** * Add the description labels to the first column of the grid. */ public JComponent addScreenLabel(Container parent, Converter fieldInfo) { GridBagConstraints c = this.getGBConstraints(); c.gridy = GridBagConstraints.RELATIVE; // Bump Row each time if (fieldInfo.getFieldName().equals(BookingDetail.TOTAL_COST)) { c.gridy = 0; c.gridx = 4; // Column 3 } return super.addScreenLabel(parent, fieldInfo); } /**
/** * Add the description labels to the first column of the grid. */ public JComponent addScreenLabel(Container parent, Converter fieldInfo) { GridBagConstraints c = this.getGBConstraints(); c.gridy = GridBagConstraints.RELATIVE; // Bump Row each time if (fieldInfo.getFieldName().equals(BookingDetail.TOTAL_COST)) { c.gridy = 0; c.gridx = 4; // Column 3 } return super.addScreenLabel(parent, fieldInfo); } /**
/** * Add the screen controls to the second column of the grid. */ public JComponent addScreenControl(Container parent, Converter fieldInfo) { GridBagConstraints c = this.getGBConstraints(); c.gridy = GridBagConstraints.RELATIVE; // Bump Row each time if (fieldInfo.getFieldName().equals(Product.PRODUCT_TYPE)) { c.gridy = 0; c.gridx = 5; // Column 4 } return super.addScreenControl(parent, fieldInfo); } /**
/** * Add the description labels to the first column of the grid. */ public JComponent addScreenLabel(Container parent, Converter fieldInfo) { GridBagConstraints c = this.getGBConstraints(); c.gridy = GridBagConstraints.RELATIVE; // Bump Row each time if (fieldInfo.getFieldName().equals(Product.VENDOR_NAME)) { c.gridy = 0; c.gridx = 4; // Column 3 } return super.addScreenLabel(parent, fieldInfo); } /**