Search in sources :

Example 11 with ChangeTitleWidgetEvent

use of org.uberfire.client.workbench.events.ChangeTitleWidgetEvent in project kie-wb-common by kiegroup.

the class SessionDiagramEditorScreen method updateTitle.

private void updateTitle(final String title) {
    // Change screen title.
    SessionDiagramEditorScreen.this.title = title;
    changeTitleNotificationEvent.fire(new ChangeTitleWidgetEvent(placeRequest, this.title));
}
Also used : ChangeTitleWidgetEvent(org.uberfire.client.workbench.events.ChangeTitleWidgetEvent)

Example 12 with ChangeTitleWidgetEvent

use of org.uberfire.client.workbench.events.ChangeTitleWidgetEvent 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);
}
Also used : UserTimeLineOnlyUserActivityPredicate(org.kie.workbench.common.screens.social.hp.predicate.UserTimeLineOnlyUserActivityPredicate) Next(org.ext.uberfire.social.activities.client.widgets.pagination.Next) SimpleSocialTimelineWidgetModel(org.ext.uberfire.social.activities.client.widgets.timeline.simple.model.SimpleSocialTimelineWidgetModel) ChangeTitleWidgetEvent(org.uberfire.client.workbench.events.ChangeTitleWidgetEvent)

Example 13 with ChangeTitleWidgetEvent

use of org.uberfire.client.workbench.events.ChangeTitleWidgetEvent in project kie-wb-common by kiegroup.

the class AbstractProjectDiagramEditor method updateTitle.

protected void updateTitle(final String title) {
    // Change editor's title.
    this.title = formatTitle(title);
    changeTitleNotification.fire(new ChangeTitleWidgetEvent(this.place, this.title));
}
Also used : ChangeTitleWidgetEvent(org.uberfire.client.workbench.events.ChangeTitleWidgetEvent)

Example 14 with ChangeTitleWidgetEvent

use of org.uberfire.client.workbench.events.ChangeTitleWidgetEvent in project kie-wb-common by kiegroup.

the class DiagramEditorExplorerScreen method doUpdateTitle.

private void doUpdateTitle(final String title) {
    // Change screen title.
    DiagramEditorExplorerScreen.this.title = title;
    changeTitleNotificationEvent.fire(new ChangeTitleWidgetEvent(placeRequest, this.title));
}
Also used : ChangeTitleWidgetEvent(org.uberfire.client.workbench.events.ChangeTitleWidgetEvent)

Example 15 with ChangeTitleWidgetEvent

use of org.uberfire.client.workbench.events.ChangeTitleWidgetEvent in project kie-wb-common by kiegroup.

the class DMNDiagramEditor method updateTitle.

void updateTitle(final String title) {
    // Change screen title.
    DMNDiagramEditor.this.title = title;
    changeTitleNotificationEvent.fire(new ChangeTitleWidgetEvent(placeRequest, this.title));
}
Also used : ChangeTitleWidgetEvent(org.uberfire.client.workbench.events.ChangeTitleWidgetEvent)

Aggregations

ChangeTitleWidgetEvent (org.uberfire.client.workbench.events.ChangeTitleWidgetEvent)16 Next (org.ext.uberfire.social.activities.client.widgets.pagination.Next)1 SimpleSocialTimelineWidgetModel (org.ext.uberfire.social.activities.client.widgets.timeline.simple.model.SimpleSocialTimelineWidgetModel)1 UserTimeLineOnlyUserActivityPredicate (org.kie.workbench.common.screens.social.hp.predicate.UserTimeLineOnlyUserActivityPredicate)1 PlaceRequest (org.uberfire.mvp.PlaceRequest)1