Package com.hlcl.rql.as

Examples of com.hlcl.rql.as.Container


  /**
   * Returns the first recycling table block from the blocks_bottom container or null, if it doesn't have a recycling table block
   * page at all.
   */
  public RecyclingTableBlock getBottomRecyclingTableBlock() throws RQLException {
    Container bottomCtr = getBottomBlocksContainer();
    PageArrayList children = bottomCtr.getChildPagesForTemplate(getParameter("recyclingBlockTmpltName"));
    // no one found
    if (children.size() == 0) {
      return null;
    }
    // wrap
View Full Code Here


  /**
   * Returns the first link table block from the blocks_bottom container or null, if it doesn't have a link table block page at all.
   */
  public LinkTableBlock getBottomLinkTableBlock() throws RQLException {
    Container bottomCtr = getBottomBlocksContainer();
    PageArrayList children = bottomCtr.getChildPagesForTemplate(getParameter("linkTableBlockTmpltName"));
    // no one found
    if (children.size() == 0) {
      return null;
    }
    // wrap
View Full Code Here

  /**
   * Returns the number of html view table blocks linked at the blocks_bottom container.
   */
  public int getBottomHtmlViewTableBlocksSize() throws RQLException {
    Container bottomCtr = getBottomBlocksContainer();
    PageArrayList children = bottomCtr.getChildPagesForTemplate(getParameter("htmlViewTableBlockTmpltName"));
    return children.size();
  }
View Full Code Here

  /**
   * Returns the first html view table block from the blocks_bottom container or null, if it doesn't have a html view table block page at all.
   */
  public HtmlViewTableBlock getBottomHtmlViewTableBlock() throws RQLException {
    Container bottomCtr = getBottomBlocksContainer();
    PageArrayList children = bottomCtr.getChildPagesForTemplate(getParameter("htmlViewTableBlockTmpltName"));
    // no one found
    if (children.size() == 0) {
      return null;
    }
    // wrap
View Full Code Here

   * Creates a new recycling table block on the blocks_bottom container of this leaf list page.
   *
   * @throws RQLException
   */
  public RecyclingTableBlock createBottomRecyclingTableBlock() throws RQLException {
    Container ctr = getBottomBlocksContainer();
    String templateName = getParameter("recyclingBlockTmpltName");
    Template template = getTemplateByName(getParameter("contentTmpltFldrName"), templateName);
    return new RecyclingTableBlock(ctr.createAndConnectPage(template, getHeadline() + " " + templateName, true));
  }
View Full Code Here

   * Creates a new link table block on the blocks_bottom container of this leaf list page.
   *
   * @throws RQLException
   */
  public LinkTableBlock createBottomLinkTableBlock() throws RQLException {
    Container ctr = getBottomBlocksContainer();
    String templateName = getParameter("linkTableBlockTmpltName");
    Template template = getTemplateByName(getParameter("contentTmpltFldrName"), templateName);
    return new LinkTableBlock(ctr.createAndConnectPage(template, getHeadline() + " " + templateName, true));
  }
View Full Code Here

   * null.
   * <p>
   * Returns the disconnected text block or null, if no block were disconnected.
   */
  public TextBlock disconnectTextBlock(TextBlock textBlock) throws RQLException {
    Container blocksContainer = getBlocksContainer();
    if (blocksContainer.isChild(textBlock.getPage())) {
      blocksContainer.disconnectChild(textBlock.getPage());
      return textBlock;
    }
    // signal that given text block is not a child
    return null;
  }
View Full Code Here

   * Connects the given text block on this page's container blocks depending on given addAtBottom.
   * <p>
   * Returns true, if newly linked and false, if already linked.
   */
  public boolean connectToExistingTextBlock(TextBlock textBlock, boolean addAtBottom) throws RQLException {
    Container blocksContainer = getBlocksContainer();
    if (blocksContainer.isChild(textBlock.getPage())) {
      return false;
    }
    // link really
    blocksContainer.connectToExistingPage(textBlock.getPage(), addAtBottom);
    return true;
  }
View Full Code Here

   * Creates a new recycling table block on the blocks container of this content page.
   *
   * @throws RQLException
   */
  public RecyclingTableBlock createRecyclingTableBlock() throws RQLException {
    Container ctr = getBlocksContainer();
    String templateName = getParameter("recyclingBlockTmpltName");
    Template template = getTemplateByName(getParameter("contentTmpltFldrName"), templateName);
    return new RecyclingTableBlock(ctr.createAndConnectPage(template, getHeadline() + " " + templateName, true));
  }
View Full Code Here

  /**
   * Returns the first recycling table block from the blocks container or null, if it doesn't have a recycling table block page at
   * all.
   */
  public RecyclingTableBlock getRecyclingTableBlock() throws RQLException {
    Container bottomCtr = getBlocksContainer();
    PageArrayList children = bottomCtr.getChildPagesForTemplate(getParameter("recyclingBlockTmpltName"));
    // no one found
    if (children.size() == 0) {
      return null;
    }
    // wrap
View Full Code Here

TOP

Related Classes of com.hlcl.rql.as.Container

Copyright © 2018 www.massapicom. 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.