Search in sources :

Example 1 with OnOpen

use of org.uberfire.lifecycle.OnOpen in project kie-wb-common by kiegroup.

the class ProjectDiagramPropertiesScreen method onOpen.

@OnOpen
public void onOpen() {
    log(Level.INFO, "Opening ProjectDiagramPropertiesScreen.");
    final ClientSession current = clientSessionManager.getCurrentSession();
    handleSession(current);
}
Also used : ClientSession(org.kie.workbench.common.stunner.core.client.session.ClientSession) OnOpen(org.uberfire.lifecycle.OnOpen)

Example 2 with OnOpen

use of org.uberfire.lifecycle.OnOpen 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());
}
Also used : UserTimeLineFileChangesPredicate(org.kie.workbench.common.screens.social.hp.predicate.UserTimeLineFileChangesPredicate) SocialPaged(org.ext.uberfire.social.activities.model.SocialPaged) SocialUser(org.ext.uberfire.social.activities.model.SocialUser) Next(org.ext.uberfire.social.activities.client.widgets.pagination.Next) RemoteCallback(org.jboss.errai.common.client.api.RemoteCallback) SimpleSocialTimelineWidgetModel(org.ext.uberfire.social.activities.client.widgets.timeline.simple.model.SimpleSocialTimelineWidgetModel) OnOpen(org.uberfire.lifecycle.OnOpen)

Aggregations

OnOpen (org.uberfire.lifecycle.OnOpen)2 Next (org.ext.uberfire.social.activities.client.widgets.pagination.Next)1 SimpleSocialTimelineWidgetModel (org.ext.uberfire.social.activities.client.widgets.timeline.simple.model.SimpleSocialTimelineWidgetModel)1 SocialPaged (org.ext.uberfire.social.activities.model.SocialPaged)1 SocialUser (org.ext.uberfire.social.activities.model.SocialUser)1 RemoteCallback (org.jboss.errai.common.client.api.RemoteCallback)1 UserTimeLineFileChangesPredicate (org.kie.workbench.common.screens.social.hp.predicate.UserTimeLineFileChangesPredicate)1 ClientSession (org.kie.workbench.common.stunner.core.client.session.ClientSession)1