gpt4 book ai didi

org.uberfire.client.workbench.part.WorkbenchPartPresenter.getTitleDecoration()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 13:21:05 25 4
gpt4 key购买 nike

本文整理了Java中org.uberfire.client.workbench.part.WorkbenchPartPresenter.getTitleDecoration()方法的一些代码示例,展示了WorkbenchPartPresenter.getTitleDecoration()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkbenchPartPresenter.getTitleDecoration()方法的具体详情如下:
包路径:org.uberfire.client.workbench.part.WorkbenchPartPresenter
类名称:WorkbenchPartPresenter
方法名:getTitleDecoration

WorkbenchPartPresenter.getTitleDecoration介绍

[英]Returns the widget that a panel may choose to display beside this part's title.
[中]返回面板可能选择显示在此部件标题旁边的小部件。

代码示例

代码示例来源:origin: kiegroup/appformer

public void addPart(final WorkbenchPartPresenter.View view) {
  final PartDefinition part = view.getPresenter().getDefinition();
  partView.put(part,
         view);
  buildWidgets(part,
         view.getPresenter().getTitle(),
         view.getPresenter().getTitleDecoration());
  if (partTitles.size() == 1) {
    selectPart(part);
  }
}

代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly

public void addPart(final WorkbenchPartPresenter.View view) {
  final PartDefinition part = view.getPresenter().getDefinition();
  partView.put(part,
         view);
  buildWidgets(part,
         view.getPresenter().getTitle(),
         view.getPresenter().getTitleDecoration());
  if (partTitles.size() == 1) {
    selectPart(part);
  }
}

代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly

@Override
public void addPart(final WorkbenchPartPresenter.View view) {
  final PartDefinition partDefinition = view.getPresenter().getDefinition();
  if (parts.containsKey(partDefinition) == false) {
    final MultiScreenView screen = multiScreenViews.get();
    screen.setContent(view);
    screen.setTitle(view.getPresenter().getTitle());
    if (view.getPresenter().getTitleDecoration() != null) {
      screen.setTitleWidget(view.getPresenter().getTitleDecoration());
    }
    if (parts.isEmpty() && partDefinition.getParentPanel().getPosition() == null) {
      screen.disableClose();
    }
    screen.setCloseHandler(() -> panelManager.closePart(partDefinition));
    Optional.ofNullable(view.getPresenter().getMenus())
        .ifPresent(menus -> menus.getItems().stream().map(menuBuilder)
            .forEachOrdered(e -> e.ifPresent(element -> screen.addMenus(element)))
    );
    content.appendChild(screen.getElement());
    parts.put(partDefinition,
         screen);
  }
  selectPart(partDefinition);
}

代码示例来源:origin: kiegroup/appformer

@Override
public void addPart(final WorkbenchPartPresenter.View view) {
  final PartDefinition partDefinition = view.getPresenter().getDefinition();
  if (parts.containsKey(partDefinition) == false) {
    final MultiScreenView screen = multiScreenViews.get();
    screen.setContent(view);
    screen.setTitle(view.getPresenter().getTitle());
    if (view.getPresenter().getTitleDecoration() != null) {
      screen.setTitleWidget(view.getPresenter().getTitleDecoration());
    }
    if (parts.isEmpty() && partDefinition.getParentPanel().getPosition() == null) {
      screen.disableClose();
    }
    screen.setCloseHandler(() -> panelManager.closePart(partDefinition));
    Optional.ofNullable(view.getPresenter().getMenus())
        .ifPresent(menus -> menus.getItems().stream().map(menuBuilder)
            .forEachOrdered(e -> e.ifPresent(element -> screen.addMenus(element)))
    );
    content.appendChild(screen.getElement());
    parts.put(partDefinition,
         screen);
  }
  selectPart(partDefinition);
}

代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-bs2

@Override
public void addPart( final WorkbenchPartPresenter.View view ) {
  final PartDefinition partDefinition = view.getPresenter().getDefinition();
  if ( parts.contains( partDefinition ) ) {
    selectPart( partDefinition );
    return;
  }
  menuArea.setVisible( true );
  parts.add( partDefinition );
  final FlowPanel panel = new FlowPanel();
  Layouts.setToFillParent( panel );
  panel.add( view );
  content.add( panel );
  // IMPORTANT! if you change what goes in this map, update the remove(PartDefinition) method
  partContentView.put( partDefinition, panel );
  final Widget title = buildTitle( view.getPresenter().getTitle(), view.getPresenter().getTitleDecoration() );
  partTitle.put( partDefinition, title );
  title.ensureDebugId( DEBUG_TITLE_PREFIX + view.getPresenter().getTitle() );
  if ( isDndEnabled ) {
    dndManager.makeDraggable( view, title );
  }
  scheduleResize();
}

代码示例来源:origin: kiegroup/appformer

final PlaceRequest place = sourcePart.getPlace();
final String title = sourceView.getPresenter().getTitle();
final IsWidget titleDecoration = sourceView.getPresenter().getTitleDecoration();
final String contextId = sourceView.getPresenter().getContextId();
final IsWidget widget = sourceView.getPresenter().getPartView().getWrappedWidget();

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com