congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
VLViewComponentXML.propertyValueOf
Code IndexAdd Tabnine to your IDE (free)

How to use
propertyValueOf
method
in
com.nexitia.emaginplatform.jfx.core.client.viewdef.xml.model.VLViewComponentXML

Best Java code snippets using com.nexitia.emaginplatform.jfx.core.client.viewdef.xml.model.VLViewComponentXML.propertyValueOf (Showing top 12 results out of 315)

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

/**
 * Get property as a string
 *
 * @param name
 * @return Optional
 */
public Optional<String> propertyValueOf(String name) {
 return propertyValueOf(name, "");
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * @{inheritedDoc}
 */
@Override
public boolean isMultipleSection() {
 if (configuration != null) {
  final String selectionMode = configuration.propertyValueOf("selectionMode").orElse("single");
  multipleSection = "multiple".equalsIgnoreCase(selectionMode);
 }
 return multipleSection;
}
origin: com.nexitia.emaginplatform/emagin-jfxplatform-components

 /**
  * {@inheritDoc}
  */
 @Override
 public String getFlowItem(IEmaginController c, ITableStructure tableStructure) {
  String masterFlow = tableStructure.getContentConfig().propertyValueOf("masterFlowItemImpl").orElse(null);
  String iterationFlow = tableStructure.getContentConfig().propertyValueOf("iterationsFlowItemImpl").orElse(null);

  SearchResultController src = (SearchResultController) c;

  JsonObject pr = src.currentQuery();
  boolean mst = true;

  if (pr != null) {
   Object qms = pr.get("data.attributes.search_query.extra.queryMaster").getAsString();
   mst = Boolean.valueOf(String.valueOf(qms));
  }

  if (mst) {
   return masterFlow;
  }
  return iterationFlow;
 }
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * @param criteriaContext
 */
public void filter(CriteriaContext criteriaContext) {
 if (configuration.getComponentById("Validator") != null) {
  final VLViewComponentXML componentXML = configuration.getComponentById("Validator").orElse(null);
  if (componentXML != null) {
   final Optional<String> visible = componentXML.propertyValueOf(XMLConstants.VISIBLE);
   if (visible.isPresent()) {
    link.setVisible(criteriaContext.isTrue(visible.get()));
   }
   final Optional<String> active = componentXML.propertyValueOf(XMLConstants.ACTIVE);
   if (active.isPresent()) {
    link.setDisable(!criteriaContext.isTrue(active.get()));
   }
  }
 }
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * <component id="ListView"> <properties> <!-- nullable --> <property name="id" value="id" />
 * <property name="styleClass" value="styleClass" />
 *
 * <!-- mandatory --> <property name="cellFactory" value="cellFactoryBean" /> </properties>
 * </component>
 */
// @formatter:on
public void loadConfiguration() {
 id = configuration.propertyValueOf(XMLConstants.ID).orElse(null);
 styleClass = configuration.propertyValueOf(XMLConstants.STYLE_CLASS).orElse(null);
 cellFactory = configuration.propertyValueOf(XMLConstants.CELL_FACTORY).orElseThrow(IllegalArgumentException::new);
 // set the ID
 if (StringUtils.isNotBlank(id)) {
  setId(id);
 }
 // set style class
 if (StringUtils.isNotBlank(styleClass)) {
  getStyleClass().addAll(styleClass.split(","));
 }
 // process cell factory
 setCellFactory(p -> {
  return buildCellFactory();
 });
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

public void configure() {
 final Optional<String> prompt = configuration.propertyValueOf(XMLConstants.PROMPT);
 final Optional<Boolean> isAttributeGenerated = configuration.booleanPropertyValueOf(XMLConstants.GENERATED);
 final Optional<Boolean> isFocused = configuration.booleanPropertyValueOf(XMLConstants.FOCUSED);
 // focus
 isFocused.filter(e -> e == Boolean.TRUE).flatMap(e -> {
  textField.requestFocus();
  return Optional.empty();
 });
 // generated value
 isAttributeGenerated.filter(e -> e == Boolean.TRUE).flatMap(e -> {
  textField.setDisable(true);
  return Optional.empty();
 });
 // prompt
 prompt.ifPresent(e -> {
  final String val = controller.getLocalised(prompt.get());
  textField.setPromptText(val);
 });
 // process DisplayConfig
 final Optional<VLViewComponentXML> displayConfig = configuration.getComponentById(DISPLAY_CONFIG);
 displayConfig.ifPresent(e -> {
  e.booleanPropertyValueOf(XMLConstants.READ_ONLY).ifPresent(f -> {
   textField.setDisable(f.booleanValue());
  });
 });
 processFormat();
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * @{inheritedDoc}
 */
@Override
public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) {
 super.buildFrom(controller, configuration);
 prompt = configuration.propertyValueOf(XMLConstants.PROMPT);
 if(getDisplay() != null) {
  NodeHelper.styleClassAddAll(getDisplay(), configuration, "styleClass", "emagin-control");
 }
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

if (blocConfig.propertyValueOf(XMLConstants.TITLE).isPresent()) {
 final Node titleBloc = buildBloctitle(blocConfig, controller);
 container.getChildren().add(titleBloc);
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

if (blocConfig.propertyValueOf(XMLConstants.TITLE).isPresent()) {
 final Node titleBloc = buildBloctitle(blocConfig, controller);
 container.getChildren().add(titleBloc);
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

super.buildFrom(controller, configuration);
this.filters = configuration.propertyValueOf(XMLConstants.FILTERS).orElse("");
if (!StringUtils.isEmpty(filters)) {
 final String[] split = filters.split(SEPARATOR);
final Optional<String> prompt = configuration.propertyValueOf(XMLConstants.PROMPT);
prompt.ifPresent(e -> {
 final String val = controller.getLocalised(prompt.get());
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

super.buildFrom(controller, configuration);
final Optional<String> prompt = configuration.propertyValueOf(XMLConstants.PROMPT);
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * @{inheritedDoc}
 */
@Override
public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) {
 tabDefinition = configuration;
 this.controller = (AbstractViewController) controller;
 getStyleClass().add("terniary-menu-tab");
 final Optional<String> label = tabDefinition.propertyValueOf(XMLConstants.TITLE);
 final String tootlip = tabDefinition.getPropertyValue(XMLConstants.TOOLTIP);
 title.getStyleClass().add("terniary-menu-tab-label");
 title.textProperty().bind(titleProperty);
 icon.textProperty().bind(titleProperty);
 titleProperty.set(controller.getLocalised(label.get()));
 icon.setTooltip(new Tooltip(controller.getLocalised(tootlip)));
 icon.setContentDisplay(ContentDisplay.GRAPHIC_ONLY);
 icon.setOnAction(e -> iconOnAction());
 IconUtils.setIcon(icon, configuration);
 getChildren().add(icon);
 //buildContent();
 buildActions();
}
com.nexitia.emaginplatform.jfx.core.client.viewdef.xml.modelVLViewComponentXMLpropertyValueOf

Javadoc

Get property as a string

Popular methods of VLViewComponentXML

  • getBooleanProperty
    No property, empty and true means true
  • getSubcomponents
  • hasSubComponent
  • getComponentById
    Get first subcomponent given identifier.
  • getPropertyValue
    Get property as a string
  • <init>
  • getId
  • getProperties
    Getter of properties
  • setId
  • addSubconfg
  • booleanPropertyValueOf
    Get property as a boolean. In this case empty value is considered a true.
  • getAccessRules
    Getter of accessRules
  • booleanPropertyValueOf,
  • getAccessRules,
  • getComponentsById,
  • getController,
  • getCriteria,
  • getDefaultButton,
  • getIntPropertyValue,
  • getMasterColumn,
  • getModel

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in 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