use of org.ext.uberfire.social.activities.client.widgets.pagination.Next in project kie-wb-common by kiegroup.
the class SocialHomePageSidePresenter method onOpen.
@OnOpen
public void onOpen() {
final SocialPaged socialPaged = new SocialPaged(5);
socialUserRepositoryAPI.call(new RemoteCallback<SocialUser>() {
public void callback(SocialUser socialUser) {
SimpleSocialTimelineWidgetModel model = new SimpleSocialTimelineWidgetModel(socialUser, new UserTimeLineFileChangesPredicate(), placeManager, socialPaged).withOnlyMorePagination(new Next() {
{
setText(Constants.INSTANCE.PaginationMore());
}
}).withIcons(iconLocator.getResourceTypes()).withLinkCommand(generateLinkCommand());
view.setupWidget(model);
}
}).findSocialUser(loggedUser.getIdentifier());
}
use of org.ext.uberfire.social.activities.client.widgets.pagination.Next in project kie-wb-common by kiegroup.
the class UserHomePageMainPresenter method setupMainWidget.
private void setupMainWidget(SocialUser socialUser, SocialPaged socialPaged) {
String userName = (socialUser != null && socialUser.getRealName() != null && !socialUser.getRealName().isEmpty()) ? socialUser.getRealName() : socialUser.getUserName();
String title = Constants.INSTANCE.UserNameRecentActivities(userName);
changeTitleWidgetEvent.fire(new ChangeTitleWidgetEvent(place, title));
SimpleSocialTimelineWidgetModel model = new SimpleSocialTimelineWidgetModel(socialUser, new UserTimeLineOnlyUserActivityPredicate(socialUser), placeManager, socialPaged).withIcons(iconLocator.getResourceTypes()).withOnlyMorePagination(new Next() {
{
setText(Constants.INSTANCE.PaginationMore());
}
}).withLinkCommand(generateLinkCommand());
mainPresenter.setup(model);
}
Aggregations