/** * Get the print options (view defined). * @return The HTML options. * @exception DBException File exception. */ public int getPrintOptions() throws DBException { int iToolbarOptions = super.getPrintOptions(); if (this.getScreenField().isEnabled() == false) // For display - no toolbars iToolbarOptions = iToolbarOptions & ~(HtmlConstants.PRINT_TOOLBAR_BEFORE | HtmlConstants.PRINT_TOOLBAR_BEFORE); return iToolbarOptions; } /**
if (sField.isEnabled()) if (sField.isFocusTarget())
if (sField.isEnabled()) if (sField.isFocusTarget())
/** * Returns the Component that should receive the focus after aComponent. * @param sfCurrent Currently focused control. * @param iSelectField Type of field to select next (first, next, prev, last). * @return Control to select next. */ public ScreenField getComponentAfter(ScreenField sfCurrent, int iSelectField) { if (iSelectField == DBConstants.SELECT_FIRST_FIELD) { if (this.getMainRecord().getField(ApTrx.DESCRIPTION).getComponent(0) != null) if (((ScreenField)this.getMainRecord().getField(ApTrx.DESCRIPTION).getComponent(0)).isEnabled()) { // The screen is enabled, focus on the vendor code return (ScreenField)((ReferenceField)this.getMainRecord().getField(ApTrx.VENDOR_ID)).getReferenceRecord().getField(Vendor.CODE).getComponent(0); } } return super.getComponentAfter(sfCurrent, iSelectField); } /**
/** * Returns the Component that should receive the focus after aComponent. * @param sfCurrent Currently focused control. * @param iSelectField Type of field to select next (first, next, prev, last). * @return Control to select next. */ public ScreenField getComponentAfter(ScreenField sfCurrent, int iSelectField) { if (iSelectField == DBConstants.SELECT_FIRST_FIELD) { if (this.getMainRecord().getField(ApTrx.DESCRIPTION).getComponent(0) != null) if (((ScreenField)this.getMainRecord().getField(ApTrx.DESCRIPTION).getComponent(0)).isEnabled()) { // The screen is enabled, focus on the vendor code return (ScreenField)((ReferenceField)this.getMainRecord().getField(ApTrx.VENDOR_ID)).getReferenceRecord().getField(Vendor.CODE).getComponent(0); } } return super.getComponentAfter(sfCurrent, iSelectField); } /**
if (!sField.isInputField()) bPrintControl = false; if (!sField.isEnabled()) bPrintControl = false; if (bPrintControl)
if (!sField.isInputField()) bPrintControl = false; if (!sField.isEnabled()) bPrintControl = false; if (bPrintControl)
strFieldDesc = this.getScreenField().getConverter().getFieldDesc(); this.printHtmlControlDesc(out, strFieldDesc, iHtmlAttributes); if (this.getScreenField().isEnabled() == false)