@OnLoad public void onLoad(Result<Boolean> result) { LOG.fine("@Onload - synchronizing count value from Store"); _countStore.load( 0L, result.from( loadedValue -> { if (loadedValue != null) this._count = loadedValue; return true; })); }
@OnSave public void onSave() { LOG.fine("onSave called!"); _countStore.save(_count, x -> Result.ignore()); }