Examples of PropertiesConfig


Examples of org.dmlite.model.config.PropertiesConfig

  public void output(IEntity entity, String title) {
    log.info("=== " + title + " ===");
    log.info("(Oid = " + entity.getOid() + ")");
    log.info("(Code = " + entity.getCode() + ")");

    PropertiesConfig propertiesConfig = entity.getConceptConfig()
        .getPropertiesConfig();
    for (IEntity config : propertiesConfig) {
      PropertyConfig propertyConfig = (PropertyConfig) config;
      String propertyName = propertyConfig.getCode();
      if (propertyName.equals("code")) {
View Full Code Here

Examples of org.dmlite.model.config.PropertiesConfig

          ConceptConfig conceptConfig = entity.getConceptConfig();
          if (conceptConfig != null) {
            validation = validMaxCardinality(1);
            if (validation) {
              ModelMeta modelMeta = domainModel.getModelMeta();
              PropertiesConfig propertiesConfig = conceptConfig
                  .getPropertiesConfig();
              for (IEntity config : propertiesConfig) {
                PropertyConfig propertyConfig = (PropertyConfig) config;
                String propertyCode = propertyConfig.getCode();
                Object property = entity
View Full Code Here

Examples of org.dmlite.model.config.PropertiesConfig

   */
  protected boolean preUpdate(T entity, T updateEntity) {
    boolean validation = true;
    ConceptConfig conceptConfig = updateEntity.getConceptConfig();
    if (conceptConfig != null) {
      PropertiesConfig propertiesConfig = conceptConfig
          .getPropertiesConfig();
      IDomainModel domainModel = getDomainModel();
      if (domainModel != null) {
        ModelMeta modelMeta = domainModel.getModelMeta();
        for (PropertyConfig config : propertiesConfig) {
View Full Code Here

Examples of org.dmlite.model.config.PropertiesConfig

    IDomainModel model = this.getDomainModel();
    if (model != null) {
      if (model.isInitialized()) {
        ConceptConfig conceptConfig = entity.getConceptConfig();
        if (conceptConfig != null) {
          PropertiesConfig propertiesConfig = conceptConfig
              .getPropertiesConfig();
          for (IEntity config : propertiesConfig) {
            PropertyConfig propertyConfig = (PropertyConfig) config;
            String propertyCode = propertyConfig.getCode();
            if (propertyConfig.isAutoIncrement()) {
View Full Code Here

Examples of org.dmlite.model.config.PropertiesConfig

            && neighborConfig.getMax().equals("1")
            && neighborConfig.isAbsorb()) {
          ConceptConfig parentConceptConfig = neighborConfig
              .getNeighborDestinationConceptConfig();
          if (parentConceptConfig != null) {
            PropertiesConfig parentConceptPropertiesConfig = parentConceptConfig
                .getPropertiesConfig();
            for (IEntity parentPropertyConfigEntity : parentConceptPropertiesConfig) {
              PropertyConfig parentConceptPropertyConfig = (PropertyConfig) parentPropertyConfigEntity;
              if (parentConceptPropertyConfig.isEssential()) {
                IEntity parentEntity = entity
                    .getNeighborEntity(neighborConfig
                        .getCode());
                if (parentEntity != null) {
                  String parentCode = parentEntity
                      .getConceptConfig().getCode();
                  String parentPropertyKey = parentCode
                      + "."
                      + parentConceptPropertyConfig
                          .getCode();
                  String parentPropertyName = getLocalizer()
                      .getString(parentPropertyKey, this);
                  Label parentPropertyNameLabel = new Label(
                      "propertyName", parentPropertyName);
                  PropertyNameLabelValuePanelPair propertyNameLabelValuePanelPair = new PropertyNameLabelValuePanelPair();
                  propertyNameLabelValuePanelPair
                      .setPropertyNameLabel(parentPropertyNameLabel);

                  ModelContext parentModelContext = new ModelContext(
                      modelContext);
                  parentModelContext.setEntity(parentEntity);
                  parentModelContext
                      .setPropertyConfig(parentConceptPropertyConfig);

                  ViewContext parentViewContext = new ViewContext(
                      viewContext);
                  parentViewContext.setWicketId("valuePanel");

                  Panel parentPropertyValuePanel;
                  if (parentConceptPropertyConfig
                      .getPropertyClass().equals(
                          "java.net.URL")
                      || parentConceptPropertyConfig
                          .getPropertyClass()
                          .equals(
                              "org.dmlite.type.email.Email")) {
                    parentPropertyValuePanel = new ExternalLinkPanel(
                        parentModelContext,
                        parentViewContext);
                  } else {
                    parentPropertyValuePanel = new LabelPanel(
                        parentModelContext,
                        parentViewContext);
                  }
                  if (!app.isNeighborDisplayAllowed(
                      getAppSession(), neighborConfig)) {
                    parentPropertyNameLabel.setVisible(false);
                    parentPropertyValuePanel.setVisible(false);
                  } else if (!app.isPropertyDisplayAllowed(
                      getAppSession(),
                      parentConceptPropertyConfig)) {
                    parentPropertyNameLabel.setVisible(false);
                    parentPropertyValuePanel.setVisible(false);
                  }

                  propertyNameLabelValuePanelPair
                      .setPropertyValuePanel(parentPropertyValuePanel);
                  propertyNameLabelValuePanelPairs
                      .add(propertyNameLabelValuePanelPair);
                } // if
              } // if
            } // for
          } // if
        } // if
      } // for

      PropertiesConfig propertiesConfig = conceptConfig
          .getPropertiesConfig();
      for (IEntity propertyConfigEntity : propertiesConfig) {
        PropertyConfig propertyConfig = (PropertyConfig) propertyConfigEntity;
        if (!propertyConfig.isReference()) {
          String propertyKey = conceptConfig.getCode() + "."
View Full Code Here

Examples of org.dmlite.model.config.PropertiesConfig

            && neighborConfig.getMax().equals("1")
            && neighborConfig.isAbsorb()) {
          ConceptConfig parentConceptConfig = neighborConfig
              .getNeighborDestinationConceptConfig();
          if (parentConceptConfig != null) {
            PropertiesConfig parentConceptPropertiesConfig = parentConceptConfig
                .getPropertiesConfig();
            for (IEntity propertyConfigEntity : parentConceptPropertiesConfig) {
              PropertyConfig parentConceptPropertyConfig = (PropertyConfig) propertyConfigEntity;
              if (parentConceptPropertyConfig.isEssential()) {
                IEntity parentEntity = entity
                    .getNeighborEntity(neighborConfig
                        .getCode());
                if (parentEntity != null) {
                  String parentCode = parentEntity
                      .getConceptConfig().getCode();
                  String parentPropertyKey = parentCode
                      + "."
                      + parentConceptPropertyConfig
                          .getCode();
                  String parentPropertyName = getLocalizer()
                      .getString(parentPropertyKey, this);
                  Label parentPropertyNameLabel = new Label(
                      "propertyName", parentPropertyName);
                  PropertyNameLabelValuePanelPair propertyNameLabelValuePanelPair = new PropertyNameLabelValuePanelPair();
                  propertyNameLabelValuePanelPair
                      .setPropertyNameLabel(parentPropertyNameLabel);

                  ModelContext parentModelContext = new ModelContext(
                      modelContext);
                  parentModelContext.setEntity(parentEntity);
                  parentModelContext
                      .setPropertyConfig(parentConceptPropertyConfig);

                  ViewContext parentViewContext = new ViewContext(
                      viewContext);
                  parentViewContext.setWicketId("valuePanel");

                  Panel parentPropertyValuePanel;
                  if (parentConceptPropertyConfig
                      .getPropertyClass().equals(
                          "java.net.URL")
                      || parentConceptPropertyConfig
                          .getPropertyClass()
                          .equals(
                              "org.dmlite.type.email.Email")) {
                    parentPropertyValuePanel = new ExternalLinkPanel(
                        parentModelContext,
                        parentViewContext);
                  } else {
                    parentPropertyValuePanel = new LabelPanel(
                        parentModelContext,
                        parentViewContext);
                  }
                  if (!app.isNeighborDisplayAllowed(
                      getAppSession(), neighborConfig)) {
                    parentPropertyNameLabel.setVisible(false);
                    parentPropertyValuePanel.setVisible(false);
                  } else if (!app.isPropertyDisplayAllowed(
                      getAppSession(),
                      parentConceptPropertyConfig)) {
                    parentPropertyNameLabel.setVisible(false);
                    parentPropertyValuePanel.setVisible(false);
                  }

                  propertyNameLabelValuePanelPair
                      .setPropertyValuePanel(parentPropertyValuePanel);
                  propertyNameLabelValuePanelPairs
                      .add(propertyNameLabelValuePanelPair);
                } // if
              } // if
            } // for
          } // if
        } // if
      } // for

      PropertiesConfig propertiesConfig = conceptConfig
          .getPropertiesConfig();
      for (IEntity config : propertiesConfig) {
        PropertyConfig propertyConfig = (PropertyConfig) config;
        String propertyCode = propertyConfig.getCode();
        String propertyKey = conceptConfig.getCode() + "."
View Full Code Here

Examples of org.jfrog.gradle.plugin.artifactory.dsl.PropertiesConfig

        return result;
    }

    public void properties(Closure closure) {
        Project project = getProject();
        PropertiesConfig propertiesConfig = new PropertiesConfig(project);
        ConfigureUtil.configure(closure, propertiesConfig);
        artifactSpecs.addAll(propertiesConfig.getArtifactSpecs());
    }
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.properties.model.PropertiesConfig

  /**
   * The user has pressed the down button. Move the selected config down.
   */
  private void handleDownButtonPressed() {
    if (selectedElement != null && selectedElement instanceof PropertiesConfig) {
      PropertiesConfig config = (PropertiesConfig) selectedElement;
      PropertiesConfigSet configSet = (PropertiesConfigSet) config.getElementParent();
      configSet.moveConfigDown(config);
      configSetsViewer.refresh(false);
      hasUserMadeChanges = true;
    }
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.properties.model.PropertiesConfig

        selectedElement = (PropertiesConfigSet) selected;
        editButtonsEnabled = ((PropertiesConfigSet) selectedElement).getType()
          == IBeansConfigSet.Type.MANUAL;
      }
      else if (selected instanceof PropertiesConfig) {
        PropertiesConfig config = (PropertiesConfig) selected;
        PropertiesConfigSet configSet = (PropertiesConfigSet) config.getElementParent();
        if (configSet != null && configSet.getConfigs().size() > 1) {
          selectedElement = config;
          moveButtonsEnabled = true;
        }
      }
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.properties.model.PropertiesConfig

  /**
   * The user has pressed the up button. Move the selected config up.
   */
  private void handleUpButtonPressed() {
    if (selectedElement != null && selectedElement instanceof PropertiesConfig) {
      PropertiesConfig config = (PropertiesConfig) selectedElement;
      PropertiesConfigSet configSet = (PropertiesConfigSet) config.getElementParent();
      configSet.moveConfigUp(config);
      configSetsViewer.refresh(false);
      hasUserMadeChanges = true;
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.