Package org.apache.wicket

Examples of org.apache.wicket.MarkupContainer


    MarkupContainer container4_3_1_1 = addXXX(prefix + "container4_3_1_1", container4_3_1);
  }

  private MarkupContainer addXXX(final String id, final MarkupContainer parent)
  {
    MarkupContainer container = new WebMarkupContainer(id);
    parent.add(container);
    container.add(new Behavior()
    {
      @Override
      public void renderHead(Component component, IHeaderResponse response)
      {
        response.renderCSSReference(id + ".css");
View Full Code Here


   */
  private void visitChildrenInContainingBorder(final FormComponent.IVisitor visitor)
  {
    if (getParent() instanceof Border)
    {
      MarkupContainer border = getParent();
      Iterator<? extends Component> iter = border.iterator();
      while (iter.hasNext())
      {
        Component child = iter.next();
        if (child instanceof FormComponent)
        {
View Full Code Here

    if (!error[0])
    {
      if (getParent() instanceof Border)
      {
        MarkupContainer border = getParent();
        Iterator<? extends Component> iter = border.iterator();
        while (iter.hasNext())
        {
          Component child = iter.next();
          if ((child != this) && (child instanceof FormComponent))
          {
View Full Code Here

   */
  private void internalUpdateFormComponentModels()
  {
    FormComponent.visitComponentsPostOrder(this, new FormModelUpdateVisitor(this));

    MarkupContainer border = findParent(Border.class);
    if (border != null)
    {
      FormComponent.visitComponentsPostOrder(border, new FormModelUpdateVisitor(this));
    }
  }
View Full Code Here

  @Override
  public void onClick( @Nullable AjaxRequestTarget target ) {
    if ( target == null ) {
      //Fallback!
      MarkupContainer parent = getParent();
      if ( parent == null ) {
        throw new IllegalStateException( "No parent found!" );
      }

      FallbackConfirmationLinkPanel.replace( parent, message, action );
View Full Code Here

        }

        // Add its children
        if (node instanceof MarkupContainer)
        {
          MarkupContainer container = (MarkupContainer)node;
          for (Component child : container)
          {
            buildTree(child, treeNode);
          }
        }
View Full Code Here

      if (component != null)
      {
        return component;
      }

      MarkupContainer cursor = getParent();
      while (cursor != null)
      {
        component = cursor.findComponentToDequeue(tag);
        if (component != null)
        {
          return component;
        }
        if (cursor instanceof BorderBodyContainer)
        {
          // optimization - find call above would've already recursed
          // to page
          break;
        }
        cursor = cursor.getParent();
      }
      return null;
    }
View Full Code Here

   */
  public Component getChildComponent()
  {
    if (childComponent == null)
    {
      MarkupContainer parent = getEnclosureParent();

      if (childId == null)
      {
        throw new MarkupException(
          "You most likely forgot to register the EnclosureHandler with the MarkupParserFactory");
      }

      final Component child = parent.get(childId.toString());
      if (child == null)
      {
        throw new MarkupException(
          "Didn't find child component of <wicket:enclosure> with id='" + childId +
            "'. Component: " + this.toString());
View Full Code Here

   *
   * @return enclosure's parent markup container
   */
  private MarkupContainer getEnclosureParent()
  {
    MarkupContainer parent = getParent();
    while (parent != null)
    {
      if (parent.isTransparentResolver())
      {
        parent = parent.getParent();
      }
      else if (parent instanceof BorderBodyContainer)
      {
        parent = parent.findParent(Border.class);
      }
      else
      {
        break;
      }
View Full Code Here

    setVisible(controller.determineVisibility());

    // transfer visibility to direct children
    originalVisibilityStatus = new HashMap<Component, Boolean>();
    DirectChildTagIterator it = new DirectChildTagIterator(markupStream, openTag);
    MarkupContainer controllerParent = getEnclosureParent();
    while (it.hasNext())
    {
      ComponentTag t = it.next();
      Component child = controllerParent.get(t.getId());
      if (child != null)
      {
        // record original visiblity allowed value, will restore later
        originalVisibilityStatus.put(child, child.isVisibilityAllowed());
        child.setVisibilityAllowed(isVisible());
View Full Code Here

TOP

Related Classes of org.apache.wicket.MarkupContainer

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.