/** * Add this component to the components displaying this field. * Make sure all the converter have this screenfield on their list. * @param Object sField The screen component.. either a awt.Component or a ScreenField. */ public void addComponent(Object screenField) { // Set up the dependencies, This will recompute if any change from these three fields super.addComponent(screenField); m_convCheckmark.addComponent(screenField); } /**
/** * Add this component to the components displaying this field. * @param Object sField The screen component.. either a awt.Component or a ScreenField. */ public void addComponent(Object screenField) { if (this.getNextConverter() != null) this.getNextConverter().addComponent(screenField); else super.addComponent(screenField); } /**
/** * Add this component to the components displaying this field. * Make sure all the converter have this screenfield on their list. * @param Object sField The screen component.. either a awt.Component or a ScreenField. */ public void addComponent(Object screenField) { // Set up the dependencies, This will recompute if any change from these three fields super.addComponent(screenField); m_convCheckmark.addComponent(screenField); } /**
/** * Add this component to the components displaying this field. * Make sure all the converter have this screenfield on their list. * @param Object sField The screen component.. either a awt.Component or a ScreenField. */ public void addComponent(Object screenField) { // Set up the dependencies, This will recompute if any change from these three fields super.addComponent(screenField); m_convCheckmark.addComponent(screenField); } /**
/** * Add the currency and amount to the JPanel. */ public JPanel addCurrencyAmount(Converter fieldInfo, Converter fldCurrency, JPanel panel) { if (panel == null) { panel = new JPanel(); panel.setOpaque(false); panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS)); } JComponent textField = new JTextField(Constants.BLANK, 3); ScreenUtil.setEnabled(textField, false); fldCurrency.addComponent(textField); panel.add(textField); JComponent labelDesc = super.createScreenComponent(fieldInfo); ScreenUtil.setEnabled(labelDesc, false); fieldInfo.addComponent(labelDesc); panel.add(labelDesc); return panel; } /**
fieldInfo.addComponent(component); ScreenUtil.setEnabled(component, false);
gridbag.setConstraints(component, c); parent.add(component); fieldInfo.addComponent(component); c.gridx = 3; // Column 1
/** * Add this component to the components displaying this field. * Make sure all the converter have this screenfield on their list. * @param Object sField The screen component.. either a awt.Component or a ScreenField. */ public void addComponent(Object screenField) { // Set up the dependencies, This will recompute if any change from these three fields this.setEnableTranslation(false); super.addComponent(screenField); this.setEnableTranslation(true); for (int iIndex = 0; ; iIndex++) { Converter converter = this.getConverterToPass(iIndex); if (converter == null) break; converter.addComponent(screenField); } } /**
/** * Add this component to the components displaying this field. * Make sure all the converter have this screenfield on their list. * @param Object sField The screen component.. either a awt.Component or a ScreenField. */ public void addComponent(Object screenField) { // Set up the dependencies, This will recompute if any change from these three fields this.setEnableTranslation(false); super.addComponent(screenField); this.setEnableTranslation(true); for (int iIndex = 0; ; iIndex++) { Converter converter = this.getConverterToPass(iIndex); if (converter == null) break; converter.addComponent(screenField); } } /**
/** * Add this component to the components displaying this field. * Make sure all the converter have this screenfield on their list. * @param Object sField The screen component.. either a awt.Component or a ScreenField. */ public void addComponent(Object screenField) { // Set up the dependencies, This will recompute if any change from these three fields this.setEnableTranslation(false); super.addComponent(screenField); this.setEnableTranslation(true); for (int iIndex = 0; ; iIndex++) { Converter converter = this.getConverterToPass(iIndex); if (converter == null) break; converter.addComponent(screenField); } } /**
((JFSTextField)component).setColumns(25); ScreenUtil.setEnabled(component, false); fieldInfo.addComponent(component); panel.add(component); component = new JFSImage(null); ((JFSImage)component).setBorder(null); fieldInfo.addComponent(component); panel.add(component);
/** * Add a cost or inventory status display consisting of the icon and the description. */ public JComponent addStatusComponents(Converter fieldInfo, JPanel panel, Object recordOwner) { FieldList recCostStatus = null; if (Product.DISPLAY_COST_STATUS_ID.equals(fieldInfo.getFieldName())) recCostStatus = new CostStatus(recordOwner); else recCostStatus = new InventoryStatus(recordOwner); RemoteSession remoteSession = this.getTourGeekScreen().getMainSearchPane().getProductSearchPane().getRemoteSession(); boolean bCacheTable = false; fieldInfo = new SecondaryRecordConverter(fieldInfo, remoteSession, recCostStatus, CostStatus.ICON, bCacheTable, CostStatus.ID, null, null); fieldInfo = new ImageConverter(fieldInfo); // Add this the first time. JComponent component = new JCellImage(fieldInfo); ScreenUtil.setEnabled(component, false); fieldInfo.addComponent(component); if (panel != null) { panel.add(component); panel.add(Box.createHorizontalStrut(4)); fieldInfo = recCostStatus.getField(CostStatus.DESCRIPTION); JComponent textField = super.createScreenComponent(fieldInfo); fieldInfo.addComponent(textField); ScreenUtil.setEnabled(textField, false); panel.add(textField); } return component; } /**
fieldInfo.addComponent(component2); ScreenUtil.setEnabled(component2, false); JComponent component1 = new JTextField(Constants.BLANK, 3);
/** * Add the screen controls to the second column of the grid. * Create a default component for this fieldInfo. * @param fieldInfo the field to create a control for. * @return The component. */ public JComponent createScreenComponent(Converter fieldInfo) { JComponent component = null; if (TourHeader.TOUR_TYPE.equalsIgnoreCase(fieldInfo.getFieldName())) { FieldList record = new TourType(this); this.addFieldList(record); RemoteSession remoteSession = ((org.jbundle.thin.base.db.client.RemoteFieldTable)this.getFieldList().getTable()).getRemoteTableType(Remote.class); boolean bCacheTable = false; TourGeekScreen screenMain = (TourGeekScreen)this.getTargetScreen(TourGeekScreen.class); screenMain.linkRemoteSessionTable(remoteSession, record, bCacheTable); fieldInfo = new SecondaryRecordConverter(fieldInfo, remoteSession, record, TourType.DESCRIPTION, bCacheTable, TourType.ID, null, null); component = new JFSTextField(fieldInfo); fieldInfo.addComponent(component); ScreenUtil.setEnabled(component, false); } if (component == null) component = super.createScreenComponent(fieldInfo); return component; } /**
converter.addComponent(sField);
fieldInfo.addComponent(component2); ScreenUtil.setEnabled(component2, false); JComponent component1 = new JTextField(Constants.BLANK, 3);
converter.addComponent(sField);
converter.addComponent(sField);
fieldInfo = new ImageConverter(fieldInfo); // Add this the first time. Object component = new JCellImage(fieldInfo); fieldInfo.addComponent(component);
this.getScreenFieldView().addPhysicalControl(); if (m_converterField != null) m_converterField.addComponent(this); // Have the field add me to its list for display if (this.getDisplayFieldDesc(this)) if (this.getSeparateFieldDesc()) if (m_converterField != null) this.setupControlDesc();