Examples of TextHandler


Examples of com.sun.facelets.tag.TextHandler

  protected void onComponentCreated(FaceletContext context, UIComponent component, UIComponent parent) {
    StringBuffer content = new StringBuffer();
    Iterator iter = findNextByType(TextHandler.class);
    while (iter.hasNext()) {
      TextHandler text = (TextHandler) iter.next();
      content.append(text.getText(context));
    }
    if (component instanceof UIStyle) {
      ((UIStyle) component).setStyle(content.toString());
    }
  }
View Full Code Here

Examples of edu.harvard.hul.ois.jhove.handler.TextHandler

            App app = new App(PLANETS, PLANETS, date, PLANETS, PLANETS);
            base.init(config() + CONFIG_FILE, null);
            /* For JHOVE's output, we create another temporary file: */
            File output = File.createTempFile(OUTPUT, null);
            output.deleteOnExit();
            base.dispatch(app, null, null, new TextHandler(), output
                    .getAbsolutePath(), new String[] { temporary
                    .getAbsolutePath() });
            /* And finally we create our result object with the PRONOM ID: */
            return result(base);
        } catch (JhoveException e) {
View Full Code Here

Examples of javax.faces.view.facelets.TextHandler

    public void onComponentCreated(FaceletContext ctx, UIComponent c, UIComponent parent) {
        StringBuffer content = new StringBuffer();
        Iterator iter = TagHandlerImpl.findNextByType(this.nextHandler,
                TextHandler.class);
        while (iter.hasNext()) {
            TextHandler text = (TextHandler) iter.next();
            content.append(text.getText(ctx));
        }

        c.getAttributes().put("value", content.toString());
        c.getAttributes().put("escape", Boolean.FALSE);
        c.setTransient(true);
View Full Code Here

Examples of javax.faces.view.facelets.TextHandler

    public void onComponentCreated(FaceletContext ctx, UIComponent c, UIComponent parent) {
        StringBuffer content = new StringBuffer();
        Iterator iter = TagHandlerImpl.findNextByType(this.nextHandler,
                TextHandler.class);
        while (iter.hasNext()) {
            TextHandler text = (TextHandler) iter.next();
            content.append(text.getText(ctx));
        }

        c.getAttributes().put("value", content.toString());
        c.getAttributes().put("escape", Boolean.FALSE);
        c.setTransient(true);
View Full Code Here

Examples of org.apache.xmlgraphics.java2d.TextHandler

    /** {@inheritDoc} */
    protected BridgeContext createBridgeContext() {

        BridgeContext ctx = new BridgeContext(userAgent);
        if (!isTextStroked()) {
            TextHandler handler = graphics.getCustomTextHandler();
            if (handler instanceof NativeTextHandler) {
                NativeTextHandler nativeTextHandler = (NativeTextHandler)handler;
                PSTextPainter textPainter = new PSTextPainter(nativeTextHandler);
                ctx.setTextPainter(textPainter);
                ctx.putBridge(new PSTextElementBridge(textPainter));
View Full Code Here

Examples of org.apache.xmlgraphics.java2d.ps.TextHandler

    /** @see org.apache.batik.transcoder.SVGAbstractTranscoder#createBridgeContext() */
    protected BridgeContext createBridgeContext() {

        BridgeContext ctx = new BridgeContext(userAgent);
        if (!isTextStroked()) {
            TextHandler handler = graphics.getCustomTextHandler();
            if (handler instanceof NativeTextHandler) {
                NativeTextHandler nativeTextHandler = (NativeTextHandler)handler;
                PSTextPainter textPainter = new PSTextPainter(nativeTextHandler);
                ctx.setTextPainter(textPainter);
                ctx.putBridge(new PSTextElementBridge(textPainter));
View Full Code Here

Examples of org.apache.xmlgraphics.java2d.ps.TextHandler

    /** @see org.apache.batik.transcoder.SVGAbstractTranscoder#createBridgeContext() */
    protected BridgeContext createBridgeContext() {

        BridgeContext ctx = new BridgeContext(userAgent);
        if (!isTextStroked()) {
            TextHandler handler = graphics.getCustomTextHandler();
            if (handler instanceof NativeTextHandler) {
                NativeTextHandler nativeTextHandler = (NativeTextHandler)handler;
                PSTextPainter textPainter = new PSTextPainter(nativeTextHandler);
                ctx.setTextPainter(textPainter);
                ctx.putBridge(new PSTextElementBridge(textPainter));
View Full Code Here

Examples of org.dmlite.util.text.TextHandler

  private void loadNeighborChildren(Element element) throws DmException {
    try {
      if (entity.getConceptConfig() != null) {
        NeighborsConfig neighborsConfig = entity.getConceptConfig()
            .getNeighborsConfig();
        TextHandler textHandler = new TextHandler();
        for (IEntity config : neighborsConfig) {
          NeighborConfig neighborConfig = (NeighborConfig) config;
          if (neighborConfig.getType().equals("child")
              && neighborConfig.isInternal()) {
            String neigborProperty = textHandler
                .firstLetterToLower(neighborConfig.getCode());
            Element neighborChildElement = element
                .element(neigborProperty);
            ConceptConfig neighborChildConceptConfig = (ConceptConfig) persistentModel
                .getDomainModel().getModelConfig()
                .getConceptsConfig().retrieveByCode(
                    neighborConfig.getDestination());
            if (neighborChildConceptConfig != null) {
              String neighborChildClassName = neighborChildConceptConfig
                  .getEntitiesClass();
              IDomainModel domainModel = persistentModel
                  .getDomainModel();
              IEntities neighborChildEntities = domainModel
                  .getModelMeta().createEntities(
                      neighborChildClassName);
              String neighborCode = neighborConfig.getCode();
              String setChildMethodName = "set"
                  + textHandler
                      .firstLetterToUpper(neighborCode);
              Reflector.executeMethod(entity, setChildMethodName,
                  neighborChildEntities);
              XmlEntities neighborChildXmlEntities = new XmlEntities(
                  neighborChildEntities, persistentModel);
View Full Code Here

Examples of org.dmlite.util.text.TextHandler

  private void fillPropertyChildren(Element element) throws DmException {
    try {
      if (entity.getConceptConfig() != null) {
        PropertiesConfig propertiesConfig = entity.getConceptConfig()
            .getPropertiesConfig();
        TextHandler textHandler = new TextHandler();
        for (IEntity config : propertiesConfig) {
          PropertyConfig propertyConfig = (PropertyConfig) config;
          String propertyCode = propertyConfig.getCode();
          if (propertyCode.equals("code")) {
            continue;
          }
          String cPropertyCode = textHandler
              .firstLetterToUpper(propertyCode);
          String getMethodName = "get" + cPropertyCode;
          Object getObject = Reflector.executeMethod(entity,
              getMethodName);
          if (getObject != null) {
View Full Code Here

Examples of org.dmlite.util.text.TextHandler

  private void fillNeighborChildren(Element element) throws DmException {
    try {
      if (entity.getConceptConfig() != null) {
        NeighborsConfig neighborsConfig = entity.getConceptConfig()
            .getNeighborsConfig();
        TextHandler textHandler = new TextHandler();
        for (IEntity config : neighborsConfig) {
          NeighborConfig neighborConfig = (NeighborConfig) config;
          if (neighborConfig.getType().equals("child")
              && neighborConfig.isInternal()) {
            String neigborProperty = textHandler
                .firstLetterToLower(neighborConfig.getCode());
            IEntities neighborChildEntities = (IEntities) Reflector
                .getField(entity, neigborProperty);
            if (neighborChildEntities != null) {
              if (!neighborChildEntities.getCollection()
                  .isEmpty()) {
                Element neighborChildElement = element
                    .addElement(neigborProperty);
                XmlEntities neighborChildXmlEntities = new XmlEntities(
                    neighborChildEntities, persistentModel);
                if (neighborChildElement != null) {
                  Object[] params = new Object[2];
                  params[0] = neighborChildElement;
                  params[1] = textHandler
                      .firstLetterToLower(neighborConfig
                          .getDestination());
                  Reflector.executeMethod(
                      neighborChildXmlEntities, "fill",
                      params);
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.