コード例 #1
0
  @PostConstruct
  public void setupNavBarDock() {
    dock =
        new UberfireDock(
                UberfireDockPosition.WEST,
                "ADJUST",
                new DefaultPlaceRequest(PreferencesCentralNavBarScreen.IDENTIFIER),
                IDENTIFIER)
            .withLabel(
                translationService.format(Constants.PreferencesCentralPerspective_Preferences))
            .withSize(420);

    uberfireDocks.add(dock);
  }
コード例 #2
0
 public void perspectiveChangeEvent(@Observes UberfireDockReadyEvent dockReadyEvent) {
   if (dockReadyEvent.getCurrentPerspective().equals(IDENTIFIER)) {
     uberfireDocks.expand(dock);
   }
 }