/** @{inheritDoc} */ @Override public void setClientState(CellComponentClientState state) { super.setClientState(state); TimelineProviderClientState tpcs = (TimelineProviderClientState) state; for (TimelineQuery query : tpcs.getQueries()) { DatedSet result = tpcs.getResults(query); ResultImpl ri = new ResultImpl(query, result); results.put(query.getQueryID(), ri); fireResultAdded(ri); } }
@Override protected void setStatus(CellStatus status, boolean increasing) { super.setStatus(status, increasing); if (status == CellStatus.INACTIVE && increasing) { channel.addMessageReceiver(ProviderAddResultMessage.class, receiver); channel.addMessageReceiver(ProviderObjectsMessage.class, receiver); channel.addMessageReceiver(ProviderRemoveResultMessage.class, receiver); channel.addMessageReceiver(ProviderResetResultMessage.class, receiver); } else if (status == CellStatus.INACTIVE && !increasing) { channel.removeMessageReceiver(ProviderAddResultMessage.class); channel.removeMessageReceiver(ProviderObjectsMessage.class); channel.removeMessageReceiver(ProviderRemoveResultMessage.class); channel.removeMessageReceiver(ProviderResetResultMessage.class); } }