/** * Returns the Component that should receive the focus after aComponent. */ public ScreenField getComponentAfter(ScreenField sfCurrent, int iSelectField) { return this.getParentScreen().getComponentAfter(sfCurrent, iSelectField); } /**
/** * Move the focus to the next logical field. * @param sfCurrent The currently selected screen field. * @param iSelectField The screen field to select (next/prev/first/last). */ public void selectField(ScreenField sfCurrent, int iSelectField) { ScreenField sField = this.getComponentAfter(sfCurrent, iSelectField); if (sField != null) sField.requestFocus(); } /**
/** * Move the focus to the next logical field. * @param sfCurrent The currently selected screen field. * @param iSelectField The screen field to select (next/prev/first/last). */ public void selectField(ScreenField sfCurrent, int iSelectField) { ScreenField sField = this.getComponentAfter(sfCurrent, iSelectField); if (sField != null) sField.requestFocus(); } /**
/** * Returns the Component that should receive the focus after aComponent. */ public ScreenField getComponentAfter(ScreenField sfCurrent, int iSelectField) { return this.getParentScreen().getComponentAfter(sfCurrent, iSelectField); } /**