/** * Get the view subpackage name (such as swing/xml/etc.). * @return the subpackage name. */ public String getViewType() { return this.getViewFactory().getViewSubpackage(); } /**
/** * Get the environment to use for this record owner. * @return Record owner's environment, or null to use the default enviroment. */ public ViewFactory getViewFactory() { if (this.getParentScreen() != null) return this.getParentScreen().getViewFactory(); return null; } /**
/** * Get the environment to use for this record owner. * @return Record owner's environment, or null to use the default enviroment. */ public ViewFactory getViewFactory() { if (this.getParentScreen() != null) return this.getParentScreen().getViewFactory(); return null; } /**
/** * Set up the physical control (that implements Component). * @param bEditableControl If false, set up a read-only control. * @return The new view. */ public ScreenFieldView setupScreenFieldView(boolean bEditableControl) { int iErrorCode = this.checkSecurity(); if ((iErrorCode == Constant.NORMAL_RETURN) || (iErrorCode == Constants.READ_ACCESS)) return super.setupScreenFieldView(bEditableControl); else return this.getViewFactory().setupScreenFieldView(this, Screen.class, bEditableControl); } /**
/** * Set up the physical control (that implements Component). * @param bEditableControl If false, set up a read-only control. * @return The new view. */ public ScreenFieldView setupScreenFieldView(boolean bEditableControl) { int iErrorCode = this.checkSecurity(); if ((iErrorCode == DBConstants.NORMAL_RETURN) || (iErrorCode == Constants.READ_ACCESS)) return super.setupScreenFieldView(bEditableControl); else return this.getViewFactory().setupScreenFieldView(this, Screen.class, bEditableControl); } /**
strViewType = this.getParentScreen().getViewFactory().getViewSubpackage(); BaseField field = null; if (this.getConverter() != null)
strViewType = this.getParentScreen().getViewFactory().getViewSubpackage(); BaseField field = null; if (this.getConverter() != null)
if ("swing".equalsIgnoreCase(targetScreen.getViewFactory().getViewSubpackage()))
if ("swing".equalsIgnoreCase(targetScreen.getViewFactory().getViewSubpackage()))