/** * {@inheritDoc} */ @Override public void poll(UIEvents.PollEvent pollEvent) { if (m_refreshEnabled) { m_countdown--; } if (m_countdown < 0) { m_countdown = m_view.getRefreshSeconds(); m_surveillanceViewTable.refresh(); } }
/** * {@inheritDoc} */ @Override public void poll(UIEvents.PollEvent pollEvent) { if (m_refreshEnabled) { m_countdown--; } if (m_countdown < 0) { m_countdown = m_view.getRefreshSeconds(); m_surveillanceViewTable.refresh(); } }
/** {@inheritDoc} */ @Override public Integer getHeaderRefreshSeconds(final String viewName) { return m_surveillanceConfigDao.getView(viewName == null ? m_surveillanceConfigDao.getDefaultView().getName() : viewName).getRefreshSeconds(); }
/** {@inheritDoc} */ @Override public Integer getHeaderRefreshSeconds(final String viewName) { return m_surveillanceConfigDao.getView(viewName == null ? m_surveillanceConfigDao.getDefaultView().getName() : viewName).getRefreshSeconds(); }
m_refreshEnabled = (m_view.getRefreshSeconds() > 0); m_countdown = m_view.getRefreshSeconds();
m_refreshEnabled = (m_view.getRefreshSeconds() > 0); m_countdown = m_view.getRefreshSeconds();
refreshSecondsField.setValue(String.valueOf(view.getRefreshSeconds())); refreshSecondsField.setImmediate(true); refreshSecondsField.setCaption("Refresh seconds");
refreshSecondsField.setValue(String.valueOf(view.getRefreshSeconds())); refreshSecondsField.setImmediate(true); refreshSecondsField.setCaption("Refresh seconds");