Examples of ContentElement


Examples of at.bestsolution.efxclipse.formats.svg.svg.ContentElement

    }
  }
 
  public Object resolveGradientStopElement(final SvgElement element) {
    if ((element instanceof ContentElement)) {
      final ContentElement rv = ((ContentElement) element);
      EList _children = rv.getChildren();
      Iterable<SvgStopElement> _filter = Iterables.<SvgStopElement>filter(_children, SvgStopElement.class);
      boolean _isEmpty = IterableExtensions.isEmpty(_filter);
      if (_isEmpty) {
        if ((element instanceof XLinkAttributes)) {
          final XLinkAttributes v = ((XLinkAttributes) element);
View Full Code Here

Examples of com.hlcl.rql.as.ContentElement

          System.out.print(templateElement.isLanguageVariantDependent() + " " + templateElement.getName() + " ");
          for (int i = 0; i < languages.length; i++) {
            // switch language variant
            String language = languages[i];
            LanguageVariant languageVariant = project.getLanguageVariantByRfcLanguageId(language);
            ContentElement contentElement = matrix.getContentElement(templateElement, languageVariant);
            String value = "n/a";
            if (contentElement != null) {
              value = contentElement.getValueAsString();
            }
            System.out.print("result " + languageVariant.getRfcLanguageId() + "=" + value + " ");
            if (matrix.isTextValueDifferentFromMainLanguage(templateElement, mainLv, languageVariant)) {
              System.out.println("  ==> value different");
            }
View Full Code Here

Examples of jade.content.ContentElement

  }
 
  protected void handleMessage(ACLMessage msg) {
    try {
      receivedContentElement = myAgent.getContentManager().extractContent(msg);
      ContentElement keyCel = extractKeyContentElement(receivedContentElement);
         
      if (myLogger.isLoggable(Logger.FINE)) {
        myLogger.log(Logger.FINE, "Agent "+myAgent.getName()+" - Serving "+keyCel.getClass().getName()+" "+ACLMessage.getPerformative(msg.getPerformative()));
      }
      Method m = findServerMethod(keyCel, msg.getPerformative());
      if (m != null) {
        try {
          m.invoke(serverDelegate, new Object[]{keyCel, msg});
View Full Code Here

Examples of org.cast.isi.data.ContentElement

      @Override
      protected void populateItem(Item<Tagging> item) {
        Tagging ting = item.getModelObject();
        PersistedObject target = TagService.get().getTarget(ting);
        if (target instanceof ContentElement) {
          ContentElement elt = (ContentElement) target;
          ContentLoc loc = elt.getContentLocObject();
          ISIXmlSection sec = (ISIXmlSection) loc.getSection();

          String crumbTrail = sec.getCrumbTrailAsString(1, 1);
          item.add(new Label("crumbTrail", crumbTrail));
         
View Full Code Here

Examples of org.cast.isi.data.ContentElement

    else
      return new Label(wicketId, "Question Not Available");
  }

  private Component makeXmlQuestionTextComponent(String wicketId, ISIPrompt prompt) {
    ContentElement contentElement = prompt.getContentElement();
    ContentLoc contentLocObject = contentElement.getContentLocObject();
    ISIXmlSection section = contentLocObject.getSection();
    ISIXmlComponent xml = new ISIXmlComponent(wicketId,new XmlSectionModel(section), "student" );
    String xmlId = contentElement.getXmlId();
    xml.setTransformParameter(FilterElements.XPATH, String.format("//dtb:responsegroup[@id='%s']//dtb:prompt", xmlId));
    xml.setOutputMarkupId(true);
    return xml;
  }
View Full Code Here

Examples of org.cast.isi.data.ContentElement

      tagBox.setVisible(ISIApplication.get().isTagsOn());

      StateSavingCollapseBoxBehavior behavior = new StateSavingCollapseBoxBehavior("tagToggle", getPageName(), "tagToggle");
      tagBox.add(new WebMarkupContainer("tagBoxToggle").add(behavior));

      ContentElement ce = responseService.getOrCreateContentElement(loc).getObject();
      tagBox.add(new TagPanel("tagPanel", ce, ISIApplication.get().getTagLinkBuilder(), ISISession.get().getStudentModel().getObject()));
    } else {
      add (new WebMarkupContainer("tagBox")
        .add(new WebMarkupContainer("tagBoxToggle"))
        .add(new WebMarkupContainer("tagPanel"))
View Full Code Here

Examples of org.cast.isi.data.ContentElement

    tagBox.setVisible(ISIApplication.get().isTagsOn());

    StateSavingCollapseBoxBehavior behavior = new StateSavingCollapseBoxBehavior("tagToggle", getPageName(), "tagToggle");
    tagBox.add(new WebMarkupContainer("tagBoxToggle").add(behavior));

    ContentElement ce = responseService.getOrCreateContentElement(loc).getObject();
    tagBox.add(new TagPanel("tagPanel", ce, ISIApplication.get().getTagLinkBuilder()).setRenderBodyOnly(true));
  }
View Full Code Here

Examples of org.cast.isi.data.ContentElement

      c.add(Restrictions.eq("xmlId", xmlId));
    } else {
      c.add(Restrictions.isNull("xmlId"));
    }
   
    ContentElement e = (ContentElement) c.uniqueResult();

    // If it doesn't exist, create it
    if (e == null) {
      e = new ContentElement(loc);
      if (xmlId != null)
        e.setXmlId(xmlId);
      Databinder.getHibernateSession().save(e)
    }
    cwmService.flushChanges();
   
    return new HibernateObjectModel<ContentElement>(e);
View Full Code Here

Examples of org.jfree.report.structure.ContentElement

    final Node node = getElement();
    final FlowController flowController = getFlowController();
    final LayoutExpressionRuntime er =
        LayoutControllerUtil.getExpressionRuntime(flowController, node);
    final ContentElement element = (ContentElement) node;
    final Expression ex = element.getValueExpression();
    final Object value;

    if (ex != null)
    {
      try
View Full Code Here

Examples of org.waveprotocol.wave.client.editor.content.ContentElement


  public void testGetValidSelectionPointIfAvailable() {
    setupTest("<body><line></line></body>");
    Point<ContentNode> point = aggressiveSelectionHelper.getFirstValidSelectionPoint();
    ContentElement localP = doc.getDocumentElement().getFirstChild().getLastChild().asElement();
    assertEquals(Point.end(localP), point);

    setupTest("<body><line></line></body>");
    point = aggressiveSelectionHelper.getLastValidSelectionPoint();
    localP = doc.getDocumentElement().getFirstChild().getLastChild().asElement();
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.