Tabnine Logo
RootStructureController
Code IndexAdd Tabnine to your IDE (free)

How to use
RootStructureController
in
com.nexitia.emaginplatform.jfx.core.engine.controller.main

Best Java code snippets using com.nexitia.emaginplatform.jfx.core.engine.controller.main.RootStructureController (Showing top 20 results out of 315)

origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

public JsonObject populateBeanFromWizard(WizardViewController viewController) {
 this.sourceController = viewController;
 SingleResult sr = (SingleResult) sourceController.getModel();
 JsonObject query = new JsonObject();
 WizardViewUtils.copyAllAttributesFrom(sr, query);
 query.addProperty("containerOid", sourceController.getRootStructure().getModelContainerFullId());
 return query;
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

 /**
  * @{inheritedDoc}
  */
 @Override
 public UIAccessRule isAccessible(IEmaginController controller, VLViewComponentXML compConfig) {
  IRootContext context = ((RootStructureController) controller.getRootStructure()).getRootContext();
  if ((context == null) || (context.getCurrentSubject() == null)) {
   return UIAccessRule.SHOW;
  }

  return UIAccessRule.HIDDEN;
 }
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

@Override
public void popContent() {
 super.popContent();
 secondaryHeaderStack.setVisible(true);
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

public void handleEvent(CloseMenuEvent e) {
 if (e.getSide() == MenuPos.PRIMARY_MENU) {
  animateHidePrimaryMenu();
 } else if (e.getSide() == MenuPos.TERNARY_MENU) {
  animateHideTernaryMenu();
 }
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-mobile-demoapp

@Bean
@Named("DemoMobilePreferencesRSView")
@View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/DemoMobilePreferencesRSView.xml"},
outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences")
@I18n(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/preferences/message.properties"}, dest="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences")
public RootStructureController DemoPreferencesRSView() {
 RootStructureController p = new RootStructureController();
 p.setMessageSource((MessageSource) Services.getBean("PreferencesMessageSource"));
 p.setModelProvider((IModelProvider) Services.getBean("RootStructureModelLoader"));
 p.getViewDefinitions().add("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/DemoMobilePreferencesRSView.json");
 return p;
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-mobile-demoapp

 @Bean
 @Named("SearchFiltersInSecondaryRSView")
 @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/search/SearchFiltersInSecondaryRSView.xml"},outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/search")
 public RootStructureController searchFiltersInSecondaryRSView() {
  RootStructureController p = new RootStructureController();
  p.setMessageSource((MessageSource) Services.getBean("SearchMessageSource"));
  p.setModelProvider((IModelProvider) BeanFactory.instance().getBean("RootStructureModelLoader"));
  p.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/search/SearchFiltersInSecondaryRSView.json");
  return p;
 }
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * @{inheritedDoc}
 */
@Override
protected void process() {
 super.process();
 notificationsStack.setId("root-structure-notifications-stack");
 notificationsStack.setStyle("-fx-background-color:rgb(0,0,10,0.10);");
 NodeHelper.setHVGrow(notificationsStack);
 pushedContentWrapper.managedProperty().bind(pushedContentWrapper.visibleProperty());
 closePushedContentButton.setOnAction(e-> popContent());
 IconUtils.setFontIcon("gmi-close:22", closePushedContentButton);
 closePushedContentButton.setContentDisplay(ContentDisplay.GRAPHIC_ONLY);
 // rootStructure.visibleProperty().bind(Bindings.not(pushedContentWrapper.visibleProperty()));
 //final CompletableFuture buildHeader = CompletableFuture.runAsync(() -> buildHeader(), DesktopApplicationRunner.pool);
 //final CompletableFuture buildContent = CompletableFuture.runAsync(() -> buildContent(), DesktopApplicationRunner.pool);
 //CompletableFuture.allOf(buildHeader, buildContent).join();
 //CompletableFuture.runAsync(() -> buildPrimaryMenu(), DesktopApplicationRunner.pool);
 buildHeader();
 buildContent();
 buildPrimaryMenu();
 secondaryRootStructureWrapper.managedProperty().bind(secondaryRootStructureWrapper.visibleProperty());
 secondaryRootStructureWrapper.setVisible(false);
 if(AbstractApplicationRunner.isSimulMobile() || AbstractApplicationRunner.isMobile()) {
 }
 if (!headerLess) {
  // AnchorPane.setTopAnchor(rootStructureWrapper, 88.);
 }
 initAnimations();
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * @{inheritedDoc}
 */
@Override
public List<IEnumeratedValueModel> loadValues(IEmaginController controller, VLViewComponentXML configuration) {
 JsonObject query = new JsonObject();
 // need to know from which context we want to link roleB
 query.addProperty("oid", ((RootStructureController) controller.getRootStructure()).getModelBusinessTypeFullId());
 // the type of link we want to create
 String linktype = configuration.getPropertyValue("linkTypeFullPath");
 query.addProperty("linkTypePath", linktype);
 // from roleA which is the current container of the root context!!! not
 // the model
 query.addProperty("roleAPath", ((RootStructureController) controller.getRootStructure()).getRootContext().getContainerPath());
 getLinkableRoleBsWithAgregationOperation.doOperation(query, this::onLinkableRoleBsLoaded, null);
 return result;
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

public void buildPrimaryMenu() {
 final VLViewComponentXML rootComp = getRootComponent();
 if (rootComp != null) {
  final String primaryMenuId = rootComp.getPropertyValue(PRIMARY_MENU_VIEW);
    case P:
     if (event.isControlDown()) {
      displayPrimary(null);
     if (primaryMenuIsShowing) {
      event.consume();
      animateHidePrimaryMenu();
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

controller.initViewContext(configXML, root.getRootStructure().getRootContext());
controller.build();
controller.setInitialized(true);
 ((RootStructureController) root).addChild(controller);
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

structureContent.initViewContext(new VLViewConfigXML(), rootStructure.getRootContext());
structureContent.setInitialized(true);
structureContent.build();
   final String rootStructureContentStyleClass = view.getRootComponent().getPropertyValue("rootStructureContentStyleClass");
   if (StringUtils.isNotBlank(rootStructureContentStyleClass)) {
    rootStructure.getContentRootPane().getStyleClass().setAll(rootStructureContentStyleClass.split(","));
   } else {
    rootStructure.getContentRootPane().getStyleClass().clear();
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

private void animateShowPrimaryMenu() {
 if (!primaryMenuIsShowing) {
  final EasingInterpolator ei = new EasingInterpolator(EasingMode.IN_EXPO);
  TranslateTransition tt;
  rootStructurePrimaryPane.setVisible(true);
  // if screen is not maximized, no animation when showing.
  // because transalation will start out of the screen!!
  if (!AbstractApplicationRunner.isDesktop()) {
   tt = NodeHelper.translateTo(-800, 0, rootStructurePrimaryPane);
  } else {
   tt = NodeHelper.translateTo(-1, 0, rootStructurePrimaryPane);
  }
  tt.setOnFinished(e -> {
   // hide menu on click on root pane
   notificationsStack.setOnMouseClicked(a -> {
    animateHidePrimaryMenu();
   });
  });
  tt.setDuration(Duration.millis(50));
  tt.setInterpolator(ei);
  primaryMenuIsShowing = true;
  makeCentralPaneDarker();
  tt.play();
 }
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

public void closeSecondaryRSWrapper() {
 animateHideSecondaryRSContent();
 //ViewStructure.instance().hideSecondaryRS();
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * @param root
 */
public void setRootStructure(RootStructureController root) {
 rootStructure = root;
 root.addChild(this);
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

public void showMessage(Node message) {
 if(Platform.isFxApplicationThread()) {
  _showMessage(message);
 }
 else {
  Platform.runLater(()->{
   _showMessage(message);
  });
 }
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * Displays a popup or top right corner of the display.
 *
 * @param e
 */
protected void animateShowTernaryMenu() {
 if (ternaryMenuExpanded) {
  animateHideTernaryMenu();
 }
 final EasingInterpolator ei = new EasingInterpolator(EasingMode.IN_OUT_SINE);
 TranslateTransition tt;
 // if screen is not maximized, no animation when showing.
 // because transalation will start out of the screen!!
 if (ViewStructure.primaryStage().isFullScreen()) {
  tt = NodeHelper.translateTo(600, 0, rootStructureTernaryPane);
 } else {
  tt = NodeHelper.translateTo(-1, 0, rootStructureTernaryPane);
  rootStructureTernaryPane.setVisible(true);
 }
 rootStructureTernaryPane.setCache(true);
 rootStructureTernaryPane.setCacheHint(CacheHint.SPEED);
 ternaryMenuExpanded = true;
 tt.setDuration(Duration.millis(300));
 tt.setInterpolator(ei);
 tt.play();
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-mobile-demoapp

@Bean
@Named("ShowDetailsInSecondaryRSView")
@View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/details/ShowDetailsInSecondaryRSView.xml"},
outputFilePath = "/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/details")
@I18n(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/details/message.properties"},
dest="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/details")
public RootStructureController showDetailsInSecondaryRSView() {
 RootStructureController pmc = new RootStructureController();
 pmc.setMessageSource((MessageSource) Services.getBean("DetailsViewMessageSource"));
 pmc.setModelProvider((IModelProvider) Services.getBean("RootStructureModelLoader"));
 pmc.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/details/ShowDetailsInSecondaryRSView.json");
 return pmc;
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

private void initAnimations() {
 secondaryRootStructureWrapper.addEventFilter(KeyEvent.KEY_RELEASED, ev -> {
  if (secondaryRootStructureWrapper.isVisible() && ev.getCode() == KeyCode.ESCAPE) {
   animateHideSecondaryRSContent();
  }
 });
 secondaryRootStructureWrapper.setCache(true);
 secondaryRootStructureWrapper.setCacheHint(CacheHint.SPEED);
 final EasingInterpolator cme = new EasingInterpolator(EasingMode.IN_OUT_EXPO);
 if(!AbstractApplicationRunner.isDesktop()) {
  showSecondaryStrWrapper = NodeHelper.translateYTo(50, 20, secondaryRootStructureWrapper);
 }
 else {
  showSecondaryStrWrapper = NodeHelper.translateYTo(50, 0, secondaryRootStructureWrapper);
 }
 showSecondaryStrWrapper.setDuration(Duration.millis(100));
 showSecondaryStrWrapper.setInterpolator(cme);
 final EasingInterpolator cme1 = new EasingInterpolator(EasingMode.OUT_ELASTIC);
 hideSecondaryStrWrapper = NodeHelper.translateYTo(400, 2000, secondaryRootStructureWrapper);
 hideSecondaryStrWrapper.setDuration(Duration.millis(300));
 hideSecondaryStrWrapper.setInterpolator(cme1);
 hideSecondaryStrWrapper.setOnFinished(e -> {
  secondaryRSActionsWrapper.getChildren().clear();
  if (secondaryRootStructureWrapper.isVisible()) {
   secondaryRootStructureWrapper.setVisible(false);
  }
 });
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * @{inheritedDoc}
 */
@Override
public List<IEnumeratedValueModel> loadValues(IEmaginController controller, VLViewComponentXML configuration) {
 String enumerationKey = configuration.getPropertyValue("enumerationKey");
 JsonObject query = new JsonObject();
 query.addProperty("enumerationKey", enumerationKey);
 query.addProperty("containerPath", ((RootStructureController) controller.getRootStructure()).getRootContext().getContainerPath());
 List<IEnumeratedValueModel> result = new ArrayList<>(1);
 listvaluesOperation.doOperation(query, e -> {
  MultipleResult multipleResult = (MultipleResult) e;
  result.addAll(EnumeratedValueAdapter.toEnumeratedValues(multipleResult));
 });
 return result;
}
origin: com.nexitia.emaginplatform/emagin-jfxplatform-components

/**
 * @{inheritedDoc}
 */
@Override
public void execute(IActionRequest actionRequest, Optional<IActionResult> previousActionResult) {
 controller = (AbstractViewController) actionRequest.getController();
 SingleResult sr = (SingleResult) controller.getModel();
 JsonObject query = new JsonObject();
 WizardViewUtils.copyAllAttributesFrom(sr, query);
 query.addProperty("containerOid", controller.getRootStructure().getModelContainerFullId());
 query.addProperty("container", controller.getRootStructure().getModelContainerFullId());
 createPeopleOperation.doOperation(query, this::createSuccess, this::onActionGeneralError);
}
com.nexitia.emaginplatform.jfx.core.engine.controller.mainRootStructureController

Most used methods

  • getModelContainerFullId
  • getRootContext
  • popContent
  • <init>
    Constructor
  • _showMessage
  • addChild
  • addViewDefinition
  • animateHidePrimaryMenu
  • animateHideSecondaryRSContent
  • animateHideTernaryMenu
  • animateShowPrimaryMenu
  • animateShowSecondaryRSContent
  • animateShowPrimaryMenu,
  • animateShowSecondaryRSContent,
  • animateShowTernaryMenu,
  • build,
  • buildContent,
  • buildHeader,
  • buildPrimaryMenu,
  • destroy,
  • dispatchEvent,
  • displayMainView

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now