/** * 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; } /**
/** * AddComponent Method. */ public void addComponent(Object sField) { super.addComponent(sField); m_screenParent = (BasePanel)((ScreenField)sField).getParentScreen(); // This screen } /**
/** * Returns the Component that should receive the focus after aComponent. */ public ScreenField getComponentAfter(ScreenField sfCurrent, int iSelectField) { return this.getParentScreen().getComponentAfter(sfCurrent, iSelectField); } /**
/** * AddComponent Method. */ public void addComponent(Object sField) { super.addComponent(sField); m_screenParent = (BasePanel)((ScreenField)sField).getParentScreen(); // This screen } /**
/** * Select the first/next/prev/last input field. * @sfCurrent The currently selected screen field. * @iPrevious Which field should I select (next/prev/first/last). */ public void selectField(ScreenField sfCurrent, int iSelectField) { this.getParentScreen().selectField(sfCurrent, iSelectField); } /**
/** * Select the first/next/prev/last input field. * @sfCurrent The currently selected screen field. * @iPrevious Which field should I select (next/prev/first/last). */ public void selectField(ScreenField sfCurrent, int iSelectField) { this.getParentScreen().selectField(sfCurrent, iSelectField); } /**
/** * Set this control's value as it was submitted by the HTML post operation. * @return The value the field was set to. */ public String getSFieldProperty(String strFieldName) { return this.getParentScreen().getProperty(strFieldName); } /**
/** * Set this control's value as it was submitted by the HTML post operation. * @return The value the field was set to. */ public String getSFieldProperty(String strFieldName) { return this.getParentScreen().getProperty(strFieldName); } /**
/** * Returns the Component that should receive the focus after aComponent. */ public ScreenField getComponentAfter(ScreenField sfCurrent, int iSelectField) { return this.getParentScreen().getComponentAfter(sfCurrent, iSelectField); } /**
/** * Get the Forms param to be passed on submit. * @return The hidden "forms" param to be passed on submit (input/diplay/both/bothifdata). */ public String getDefaultFormsParam() { if (this.getScreenField().getParentScreen() != null) return ((ZScreenField)this.getScreenField().getParentScreen().getScreenFieldView()).getDefaultFormsParam(); else return null; } /**
/** * This field changed, if this is the main record, lock it! * @param field The field that changed. */ public void fieldChanged(Field field) { BasePanel screenParent = this.getParentScreen(); if (field == null) if (m_converterField != null) field = m_converterField.getField(); // This field changed if (screenParent != null) screenParent.fieldChanged(field); } /**
/** * Get the Forms param to be passed on submit. * @return The hidden "forms" param to be passed on submit (input/diplay/both/bothifdata). */ public String getDefaultFormsParam() { if (this.getScreenField().getParentScreen() != null) return ((ZScreenField)this.getScreenField().getParentScreen().getScreenFieldView()).getDefaultFormsParam(); else return null; } /**
/** * This field changed, if this is the main record, lock it! * @param field The field that changed. */ public void fieldChanged(BaseField field) { BasePanel screenParent = this.getParentScreen(); if (field == null) if (m_converterField != null) field = (BaseField)m_converterField.getField(); // This field changed if (screenParent != null) screenParent.fieldChanged(field); } /**
/** * Get the environment to use for this record owner. * @return Record owner's environment, or null to use the default enviroment. */ public Task getTask() { if (this.getScreenField() instanceof BasePanel) return ((BasePanel)this.getScreenField()).getTask(); else return this.getScreenField().getParentScreen().getTask(); } /**
/** * Convenience method to get the model's main record. * @return The model's main record. */ public Record getMainRecord() { if (this.getScreenField() instanceof BasePanel) return ((BasePanel)this.getScreenField()).getMainRecord(); else return this.getScreenField().getParentScreen().getMainRecord(); } /**
/** * Convenience method to get the model's main record. * @return The model's main record. */ public Record getMainRecord() { if (this.getScreenField() instanceof BasePanel) return ((BasePanel)this.getScreenField()).getMainRecord(); else return this.getScreenField().getParentScreen().getMainRecord(); } /**
/** * Get the environment to use for this record owner. * @return Record owner's environment, or null to use the default enviroment. */ public Task getTask() { if (this.getScreenField() instanceof BasePanel) return ((BasePanel)this.getScreenField()).getTask(); else return this.getScreenField().getParentScreen().getTask(); } }
/** * Get this property. * @param strKey The property key. * @return The property value. */ public String getProperty(String strKey) { if (this.getScreenField() instanceof BasePanel) return ((BasePanel)this.getScreenField()).getProperty(strKey); else return this.getScreenField().getParentScreen().getProperty(strKey); } /**
/** * Get this property. * @param strKey The property key. * @return The property value. */ public String getProperty(String strKey) { if (this.getScreenField() instanceof BasePanel) return ((BasePanel)this.getScreenField()).getProperty(strKey); else return this.getScreenField().getParentScreen().getProperty(strKey); } /**