Examples of VisualFormatter


Examples of org.infoglue.cms.applications.common.VisualFormatter

    getCreateContentWizardInfoBean().getContent().setName(name);
  }
     
  public void setPublishDateTime(String publishDateTime)
  {
    getCreateContentWizardInfoBean().getContent().setPublishDateTime(new VisualFormatter().parseDate(publishDateTime, "yyyy-MM-dd HH:mm"));
  }
View Full Code Here

Examples of org.infoglue.cms.applications.common.VisualFormatter

    getCreateContentWizardInfoBean().getContent().setPublishDateTime(new VisualFormatter().parseDate(publishDateTime, "yyyy-MM-dd HH:mm"));
  }

  public void setExpireDateTime(String expireDateTime)
  {
    getCreateContentWizardInfoBean().getContent().setExpireDateTime(new VisualFormatter().parseDate(expireDateTime, "yyyy-MM-dd HH:mm"));
  }
View Full Code Here

Examples of org.infoglue.cms.applications.common.VisualFormatter

  protected String makeAction(BaseNode node) throws UnsupportedEncodingException
  {
    String action = "javascript:onTreeItemClick(this,";
    //action+="'" + node.getId() + "','" + repositoryId + "','" + URLEncoder.encode(node.getTitle(),ENCODING) + "');";
    //action+="'" + node.getId() + "','" + repositoryId + "','" + new VisualFormatter().escapeForAdvancedJavascripts(node.getTitle()) + "');";
    action+="'" + node.getId() + "','" + repositoryId + "','" + new VisualFormatter().escapeForAdvancedJavascripts(node.getTitle()) + "');";
        return action;
  }
View Full Code Here

Examples of org.infoglue.cms.applications.common.VisualFormatter

        int endTagIndex   = xml.indexOf("]]></" + key + ">");

        if(startTagIndex > 0 && startTagIndex < xml.length() && endTagIndex > startTagIndex && endTagIndex <  xml.length())
        {
          value = xml.substring(startTagIndex + key.length() + 11, endTagIndex);
          value = new VisualFormatter().escapeHTML(value);
        }                 
          }
          catch(Exception e)
          {
            e.printStackTrace();
View Full Code Here

Examples of org.infoglue.cms.applications.common.VisualFormatter

        int endTagIndex   = xml.indexOf("]]></" + key + ">");

        if(startTagIndex > 0 && startTagIndex < xml.length() && endTagIndex > startTagIndex && endTagIndex <  xml.length())
        {
          value = xml.substring(startTagIndex + key.length() + 11, endTagIndex);
          value = new VisualFormatter().escapeHTML(value);
        }                 
          }
          catch(Exception e)
          {
            e.printStackTrace();
View Full Code Here

Examples of org.infoglue.cms.applications.common.VisualFormatter

        return this.contentTypeDefinitionVO.getSchemaValue();
    }
       
    public void setSchemaValue(String schemaValue)
    {
      VisualFormatter vf = new VisualFormatter();
     
      Pattern pattern = Pattern.compile("\".*?\"");
        Matcher matcher = pattern.matcher(schemaValue);
        while (matcher.find())
        {
          String value = matcher.group();
          value = value.substring(1,value.length() - 1);
         
            int indexOfTag = value.indexOf("<");
            if(indexOfTag > -1)
            {
              String newAttributeValue = vf.escapeHTML(value);
              if(logger.isInfoEnabled())
                logger.info("Replacing:" + value + " with " + newAttributeValue);
              schemaValue = StringUtils.replace(schemaValue, "\"" + value + "\"", "\"" + newAttributeValue + "\"");
            }
        }
View Full Code Here

Examples of org.infoglue.cms.applications.common.VisualFormatter

        Node node = document.getRootElement().selectSingleNode("attributes/" + key);
        if(node != null)
        {
          value = node.getStringValue();
          if(value != null)
            value = new VisualFormatter().escapeHTML(value);
        }
      }
    }
    catch(Exception e)
    {
View Full Code Here

Examples of org.infoglue.cms.applications.common.VisualFormatter

        return this.contentVO.getName();
    }

    public String getPublishDateTime()
    {       
        return new VisualFormatter().formatDate(this.contentVO.getPublishDateTime(), "yyyy-MM-dd HH:mm");
    }
View Full Code Here

Examples of org.infoglue.cms.applications.common.VisualFormatter

        return new VisualFormatter().formatDate(this.contentVO.getPublishDateTime(), "yyyy-MM-dd HH:mm");
    }
       
    public String getExpireDateTime()
    {
        return new VisualFormatter().formatDate(this.contentVO.getExpireDateTime(), "yyyy-MM-dd HH:mm");
    }
View Full Code Here

Examples of org.infoglue.cms.applications.common.VisualFormatter

      this.contentVO.setName(name);
    }
     
    public void setPublishDateTime(String publishDateTime)
    {
       this.contentVO.setPublishDateTime(new VisualFormatter().parseDate(publishDateTime, "yyyy-MM-dd HH:mm"));
    }
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.