Updates the count of the {@link #scanStatus scan status}' label.
<p>
The call to this method has no effect if the view was not initialised.
505587
private void updateCount() {
		if (scanStatus == null) {
			return;
		}

		long now = System.currentTimeMillis();
		if (now - this.lastUpdated > 200) {
			// Dont update too frequently, eg using the spider could hammer the UI unnecessarily
			this.lastUpdated = now;
			SwingUtilities.invokeLater(new Runnable(){
				@Override
				public void run() {
					scanStatus.setScanCount(nodeStack.size());
				}});
		}
	}
1002585
private void _updateStatus() {
        boolean doneWithoutErrors = true;
        boolean doneWithErrors = true;
        boolean finishedOne = false;
        if (_status == Status.DONE || _status == Status.ERROR) {
            return;
        }
        for (AsyncBatchedMetricQuery query: _queries) {
            Status status = query.getStatus();
            if (status == Status.PROCESSING) {
                _status = Status.PROCESSING;
                return;
            }
            boolean queryFinished = (status == Status.DONE || status == Status.ERROR);
            if (queryFinished) {
                finishedOne = true;
            }
            doneWithErrors &= queryFinished;
            doneWithoutErrors &= (status == Status.DONE);
        }
        if (!doneWithoutErrors && doneWithErrors) {
            _status = Status.ERROR;
        } else if (doneWithoutErrors) {
            _status = Status.DONE;
        } else if (finishedOne) {
            _status = Status.PROCESSING;
        } else {
            _status = Status.QUEUED;
        }
    }
14835
private void updateStatistic(OIndex<?> index) {
    if (OProfiler.getInstance().isRecording()) {
      OProfiler.getInstance().updateCounter("Query.indexUsage", 1);
      final int paramCount = index.getDefinition().getParamCount();
      if (paramCount > 1) {
        OProfiler.getInstance().updateCounter("Query.compositeIndexUsage", 1);
        OProfiler.getInstance().updateCounter("Query.compositeIndexUsage." + paramCount, 1);
      }
    }
  }
541640
public void update(CmsEntity entity) {

        String removeAllFlag = CmsEntity.getValueForPath(entity, m_valuePath);

        boolean allRemoved = Boolean.valueOf(removeAllFlag).booleanValue();

        replaceOptions(allRemoved ? m_optionsAllRemoved : m_optionsDefault);
    }
76534
@PrePersist
    @PreUpdate
    final void updateStats() {
        if (!this.modified || this.statisticalSummary == null) {
            return;
        }

        // Update statistic values
        this.count = (int) this.statisticalSummary.getN();
        this.sum = this.statisticalSummary.getSum();
        this.sumsq = this.statisticalSummary.getSumsq();
        this.mean = this.statisticalSummary.getMean();
        this.standardDeviation = this.statisticalSummary.getStandardDeviation();
        this.variance = this.statisticalSummary.getVariance();
        this.populationVariance = this.statisticalSummary.getPopulationVariance();
        this.max = this.statisticalSummary.getMax();
        this.min = this.statisticalSummary.getMin();
        this.geometricMean = this.statisticalSummary.getGeometricMean();
        this.sumOfLogs = this.statisticalSummary.getSumOfLogs();
        this.secondMoment = this.statisticalSummary.getSecondMoment();

        this.modified = false;
    }
441073
def _process_status(self, status):
        
        self._screen_id = status.get(ATTR_SCREEN_ID)
        self.status_update_event.set()
619476
protected void setStatus(int status) {
	if (this.status == status) return;
	this.status = status;

	if (listeners == null) return;
	int size = listeners.size();
	for(int i=0;i<size;i++) {
	    GramJobListener listener = (GramJobListener)listeners.elementAt(i);
	    listener.statusChanged(this);
	}
    }
1274533
public void updateStatus(JobStatus newStatus) {
    JobMonitor monitor = getJobMonitor(newStatus);
    monitor.updateStatus(newStatus);
  }
28889
public void update(@NonNull ViewPosition from) {
        if (GestureDebug.isDebugAnimator()) {
            Log.d(TAG, "Updating view position: " + from.pack());
        }

        updateInternal(from);
    }
734317
protected void ensureEmptyLabel() {

        if (m_emptyLabel == null) {
            m_emptyLabel = new Label(CmsAliasMessages.messagesEmptyImportResult());
        }
        m_root.add(m_emptyLabel);
    }
219382
public void update(CmsPublishItemStatus status) {

        if (status.isDisabled()) {
            m_selectedCheckBox.setEnabled(false);
            m_selectedCheckBox.setChecked(false);
            m_removeCheckBox.setChecked(status.getState() == State.remove);
            updateRemoval(status.getState() == State.remove);
        } else {
            switch (status.getState()) {
                case remove:
                    m_selectedCheckBox.setChecked(false);
                    m_selectedCheckBox.setEnabled(false);
                    m_removeCheckBox.setChecked(true);
                    updateRemoval(true);
                    break;
                case publish:
                    m_selectedCheckBox.setEnabled(true);
                    m_selectedCheckBox.setChecked(true);
                    m_removeCheckBox.setChecked(false);
                    updateRemoval(false);
                    break;
                case normal:
                default:
                    m_selectedCheckBox.setChecked(false);
                    m_selectedCheckBox.setEnabled(true);
                    m_removeCheckBox.setChecked(false);
                    updateRemoval(false);
                    break;

            }
        }
    }
1176219
public void addStatusInfo(String message) {
        if (message == null) {
            return;
        }
        statusInfo.put(WebResponseConstant.MESSAGE_GLOBAL, message);
    }
546191
public synchronized void setInstanceStatus(InstanceStatus status) {
        InstanceStatus next = instanceStatusMapper.map(status);
        if (next == null) {
            return;
        }

        InstanceStatus prev = instanceInfo.setStatus(next);
        if (prev != null) {
            for (StatusChangeListener listener : listeners.values()) {
                try {
                    listener.notify(new StatusChangeEvent(prev, next));
                } catch (Exception e) {
                    logger.warn("failed to notify listener: {}", listener.getId(), e);
                }
            }
        }
    }
180056
public void updateIndex() {

        CmsRpcAction<Void> action = new CmsRpcAction<Void>() {

            @Override
            public void execute() {

                start(200, true);
                getGalleryService().updateIndex(this);
            }

            @Override
            protected void onResponse(Void result) {

                stop(false);
                updateResultsTab(false);
                m_handler.hideShowPreviewButton(true);
            }
        };
        action.execute();
    }
959646
protected void updateFieldValidationStatus(I_CmsFormField field, CmsValidationResult result) {

        if (result.hasNewValue()) {
            if (field.getModel() != null) {
                field.getModel().setValue(result.getNewValue(), true);
            }
            field.getWidget().setFormValueAsString(result.getNewValue());
        }
        String errorMessage = result.getErrorMessage();
        field.getWidget().setErrorMessage(result.getErrorMessage());
        field.setValidationStatus(
            errorMessage == null ? I_CmsFormField.ValidationStatus.valid : I_CmsFormField.ValidationStatus.invalid);
    }
1326093
protected void updatePreviewContent(CmsPreviewInfo previewInfo) {

        setCaption(generateCaption(previewInfo));
        initContent(previewInfo);
        initLocales(previewInfo);
        center();
    }
494574
@Override
    public void setStatusCode(StatusCodes code) {

        if (!code.equals(this.myStatusCode)) {
            this.myStatusCode = code;
            // no matter what, empty out the reason phrase information so that it
            // will default to match this new status code
            this.myReason = null;
            this.myReasonBytes = null;
            super.setFirstLineChanged();
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
            Tr.event(tc, "setStatusCode(sc): " + code);
        }
    }