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).
508176
public void selectField(ScreenField sfCurrent, int iSelectField)
    {
        ScreenField sField = this.getComponentAfter(sfCurrent, iSelectField);
        if (sField != null)
            sField.requestFocus();
    }
918889
private void doSelect(int startPosition, int endPosition, boolean anchorIsStart) {
        doUpdate(() -> {
            delegateSelection.selectRange(startPosition, endPosition);
            internalStartedByAnchor.setValue(anchorIsStart);

            delegateCaret.moveTo(anchorIsStart ? endPosition : startPosition);
        });
    }
97036
private void updateSelection() {
        Dateitem selectedItem = getSelectedItem();
        
        if (selectedItem == null) {
            addStyle("color", "gray");
        } else {
            addStyle("color", "inherit");
        }
        
        setFocus(false);
    }
1283639
private void checkBeginSelection(Cursor cursor, SelectorModel model)
    {
        final boolean canClick = !model.getClickableArea().contains(cursor.getScreenX(), cursor.getScreenY());
        if (!model.isSelecting() && !canClick)
        {
            model.setSelecting(true);
            startX = cursor.getX();
            startY = cursor.getY();

            for (final SelectorListener listener : listeners)
            {
                listener.notifySelectionStarted(Geom.createArea(startX, startY, 0, 0));
            }
        }
    }
1189107
def focusIn(self, event=None):
        """"""
        try:
            # doScroll returns false if the call was ignored because the
            # last call also came from this widget.  That avoids unwanted
            # scrolls and text selection when the focus moves in and out
            # of the window.
            if self.doScroll(event):
                self.entry.selection_range(0, END) # select all text in widget
            else:
                # restore selection to what it was on the last FocusOut
                if self.lastSelection:
                    self.entry.selection_range(*self.lastSelection)
        except AttributeError:
            pass
1169644
public boolean skipField(FieldInfo field)
    {
        boolean bSkipField = true;
        if ((m_iFieldsTypes & DATA_TYPE_MASK) == ALL_FIELDS)
            bSkipField = false;     // Don't skip any
        if ((m_iFieldsTypes & DATA_TYPE_MASK) == SELECTED_FIELDS)
            if (field.isSelected())
                bSkipField = false;     // Don't skip selected
        if ((m_iFieldsTypes & DATA_TYPE_MASK) == PHYSICAL_FIELDS)
            if (!field.isVirtual())
                bSkipField = false;     // Don't skip non-virtuals (Skip virtuals)
        if ((m_iFieldsTypes & DATA_TYPE_MASK) == DATA_FIELDS)  // SELECTED_FIELDS | PHYSICAL_FIELDS
            if (field.isSelected())
                if (!field.isVirtual())
                    bSkipField = false;     // Don't skip selected (Skip virtuals)
        return bSkipField;
    }
1306909
protected function checkFieldChanges($sField, $obListStore)
    {
        if (empty($sField) || empty($obListStore) || !$this->isFieldChanged($sField)) {
            return;
        }

        if ($obListStore instanceof AbstractStoreWithoutParam) {
            $obListStore->clear();
        } elseif ($obListStore instanceof AbstractStoreWithParam) {
            $obListStore->clear($this->obElement->$sField);
            $obListStore->clear($this->obElement->getOriginal($sField));
        }
    }
714508
public int moveFieldToThis(BaseField field, boolean bDisplayOption, int iMoveMode)
    {   // Save the record and datarecord.
        if (field == null)
            return DBConstants.NORMAL_RETURN;
        if (field instanceof CounterField)
        {
            if (this.getReferenceRecord(null, false) == null)
                if (field.getRecord().getListener(ClearFieldReferenceOnCloseHandler.class) == null) // While it is okay to have two fields reference on record, don't default it.
                    this.setReferenceRecord(field.getRecord());
        }
        else if (field instanceof ReferenceField)
        {
//x no           this.setReferenceRecord(((ReferenceField)field).getReferenceRecord());
        }
        else
            this.setReferenceRecord(null);
        return super.moveFieldToThis(field, bDisplayOption, iMoveMode);
    }
132472
public void updateField(int iSFieldSeq, Object objData)
    {
        try   {
            ScreenField sField = null;
            if (iSFieldSeq != -1)
                sField = m_gridScreen.getSField(this.getRelativeSField(iSFieldSeq));
            if (sField != null)
            {
                this.editTargetRecord();
                sField.getConverter().setData(objData);
                this.updateTargetRecord();   // Read this record
            }
        } catch (Exception ex)  {
            ex.printStackTrace();
        }
    }
43895
protected void moveSelectionDown() {
		final IStructuredSelection selection = this.list.getStructuredSelection();
		final int index = this.conversions.indexOf(selection.getFirstElement());
		if (index >= 0 && (index + selection.size()) < this.conversions.size()) {
			final ConversionMapping next = this.conversions.remove(index + selection.size());
			this.conversions.add(index, next);
			refreshListUI();
			this.list.refresh(true);
			enableButtons();
			preferenceValueChanged();
		}
	}
330581
function nextCell( $colSpan = false )
    {
        $this->DocumentStack[$this->CurrentStackNumber]['CurrentCell'] += 1;
        if ( $colSpan != false )
            $this->DocumentStack[$this->CurrentStackNumber]['CurrentColSpan'] = $colSpan;
        else
            unset( $this->DocumentStack[$this->CurrentStackNumber]['CurrentColSpan'] );
    }
247960
public void setCurrentEmitter(ConfigurableEmitter emitter) {
		this.selected = emitter;
		
		if (emitter == null) {
			emissionControls.setEnabled(false);
			settingsPanel.setEnabled(false);
			positionControls.setEnabled(false);
			colorPanel.setEnabled(false);
			limitPanel.setEnabled(false);
			whiskasPanel.setEnabled(false);
		} else {
			emissionControls.setEnabled(true);
			settingsPanel.setEnabled(true);
			positionControls.setEnabled(true);
			colorPanel.setEnabled(true);
			limitPanel.setEnabled(true);
			whiskasPanel.setEnabled(true);
			
			emissionControls.setTarget(emitter);
			settingsPanel.setTarget(emitter);
			positionControls.setTarget(emitter);
			settingsPanel.setTarget(emitter);
			colorPanel.setTarget(emitter);
			limitPanel.setTarget(emitter);
			whiskasPanel.setTarget(emitter);
		}
	}
1109093
public void setCurrentSubScreen(BasePanel subScreen)
    {
        m_screenParent = null;      // Screen's parent
        m_iScreenSeq = -1;
        if (subScreen != null)
            m_screenParent = subScreen.getParentScreen();   // Screen's parent
        if (m_screenParent == null) if (this.getOwner() != null) if (this.getOwner().getRecord() != null)
            m_screenParent = (BaseScreen)this.getOwner().getRecord().getRecordOwner();
        if (m_screenParent == null) if (this.getOwner() != null) if (this.getOwner().getComponent(0) instanceof ScreenField)
            m_screenParent = ((ScreenField)this.getOwner().getComponent(0)).getParentScreen();
        if (m_screenParent == null)
            return;
        int iBestGuess = -1;
        for (m_iScreenSeq = 0; m_iScreenSeq < m_screenParent.getSFieldCount(); m_iScreenSeq++)
        {
            ScreenField sField = m_screenParent.getSField(m_iScreenSeq);
            if (sField == subScreen)
                return;     // Found (m_iScreenSeq is correct)
            if (sField instanceof BaseScreen)
                iBestGuess = m_iScreenSeq;
        }
        m_iScreenSeq = iBestGuess;
    }
569481
public boolean selectionChanged(Object source, int iStartRow, int iEndRow, int iSelectType)
    {
        boolean bChanged = super.selectionChanged(source, iStartRow, iEndRow, iSelectType);
        if (bChanged)
        { // Notify all the listSelectionListeners
            this.fireMySelectionChanged(new MyListSelectionEvent(source, this, m_iSelectedRow, iSelectType));
        }
        return bChanged;
    }
1224257
function _documentSelectionFocusChange() {
        var curFullPath = MainViewManager.getCurrentlyViewedPath(MainViewManager.ACTIVE_PANE);
        if (curFullPath && _hasFileSelectionFocus()) {
            actionCreator.setSelected(curFullPath, true);
        } else {
            actionCreator.setSelected(null);
        }
        _fileViewControllerChange();
    }
202795
public void setSelected(boolean bSelected)
    {
        int iCount = this.getFieldCount();
        for (int i = 0; i < iCount; i++)
        {
            this.getField(i).setSelected(bSelected);
        }
    }
1183586
public boolean doAction(String strAction, int iOptions)
    {
        FieldList record = this.getFieldList();
        FieldTable fieldTable = null;
        if (record != null)
            fieldTable = record.getTable();
        boolean bFlag = false;
        try   {
            bFlag = super.doAction(strAction, iOptions);
            if (bFlag)
                return bFlag;
            if (Constants.FORM.equalsIgnoreCase(strAction))
            {
                record = this.makeSelectedRowCurrent();
                if ((record.getEditMode() == Constants.EDIT_CURRENT) || (record.getEditMode() == Constants.EDIT_IN_PROGRESS))
                    this.getBaseApplet().setProperty(Constants.OBJECT_ID, record.getCounterField().toString());
                JBaseScreen screen = this.createMaintScreen(null);  // Do NOT pass my record since it is connected to a remote grid table.
                if (screen != null)
                {
                    Container parent = null;
                    //xthis.getFieldList().setOwner(screen);    // The record belongs to the new screen
                    if (screen.getParentObject() instanceof Container)
                        parent = (Container)screen.getParentObject();
                    this.getBaseApplet().changeSubScreen(parent, screen, null, iOptions);
                    bFlag = true;
                }
            }
            if (Constants.SUBMIT.equalsIgnoreCase(strAction))
            {
                if (m_jTableScreen.isEditing())
                    m_jTableScreen.editCellAt(m_jTableScreen.getEditingRow(), m_jTableScreen.getEditingColumn()); // Validate current
                m_thinTableModel.updateIfNewRow(-1);    // Update any locked record.
                this.repaintCurrentRow();
                bFlag = true;
            }
            if (Constants.DELETE.equalsIgnoreCase(strAction))
            {
                record = this.makeSelectedRowCurrent();
                if (record != null)
                {
                    if ((record.getEditMode() == Constants.EDIT_IN_PROGRESS) ||
                        (record.getEditMode() == Constants.EDIT_CURRENT))
                    {
                        fieldTable.remove();
                    }
                    fieldTable.addNew();
                    this.repaintCurrentRow();
                    bFlag = true;
                }
            }
            if (Constants.RESET.equalsIgnoreCase(strAction))
            {
                int iRow = m_jTableScreen.getSelectedRow();
                if (iRow != -1)
                {
                    if (m_jTableScreen.isEditing())
                        m_jTableScreen.removeEditor();
                    m_thinTableModel.makeRowCurrent(-1, true);   // Invalidate current row
                    m_thinTableModel.makeRowCurrent(iRow, false); // Re-read selected row
                    this.repaintCurrentRow();
                }
                bFlag = true;   // Handled by this screen
            }
        } catch (DBException ex)  {
            this.getBaseApplet().setStatusText(ex.getMessage(), JOptionPane.ERROR_MESSAGE);
        } catch (Exception ex)  {
            ex.printStackTrace();
        }
        return bFlag;
    }