Package org.apache.wicket.markup.html.panel

Examples of org.apache.wicket.markup.html.panel.EmptyPanel


  /** */
  @Test
  public void idGeneratedWhenPanelNotAddedToPage()
  {
    // In wicket 1.4 the following sequence would not cause an exception
    Panel panel = new EmptyPanel("bla");

    // however in 1.5 the following statement generated a WicketRuntimeException
    // that the markup type could not be determined
    String markupId = panel.getMarkupId();

    // instead 1.4 would just generate the missing markup identifier
    Assert.assertEquals("bla1", markupId);
  }
View Full Code Here


      protected void populateItem(Item<Response> item) {
        item.add(getEditableResponseViewer("response", item.getModel(), metadata, loc));
      }
    };
    add(dataView);
    add (new EmptyPanel("placeholder").setOutputMarkupId(true));
    add (new Directions("directions"));
  }
View Full Code Here

  public Component getPlaceholderComponent() {
    return get(getPlaceholderId());
  }
 
  public void clearPlaceholderComponent(AjaxRequestTarget target) {
    Component panel = new EmptyPanel(getPlaceholderId()).setOutputMarkupId(true);
    getPlaceholderComponent().replaceWith(panel);
    getDirectionsComponent().setVisibility();
    target.addComponent(getDirectionsComponent());
  }
View Full Code Here

      String glossaryLinkType = ISIApplication.get().getGlossaryLinkType();
      if (glossaryLinkType.equals(ISIApplication.GLOSSARY_TYPE_MODAL) && pageHasMiniGlossary() && miniGlossaryModal != null) {
        return new MiniGlossaryLink(wicketId, wordModel, miniGlossaryModal);
       
      } else if (glossaryLinkType.equals(ISIApplication.GLOSSARY_TYPE_INLINE)) {
        return new EmptyPanel(wicketId);
       
      } else {
        // Default case: glossary type is MAIN, or we wanted a modal but have no place to put it
        // (eg, we're in a popup window, or modal window)
        GlossaryLink glossaryLink = new GlossaryLink(wicketId, wordModel);
View Full Code Here

            superSectionContainer.add(new Label("superSectionTitle", rootChild.getTitle()));
            if (rootChild.getChildren().size() > 1) {
              superSectionContainer.add(new SimpleAttributeModifier("colspan", String.valueOf(rootChild.getChildren().size())));
            }
          } else {
            superSectionContainer.add(new EmptyPanel("superSectionTitle"));
          }
        }
        table.add(superSectionRepeater);
       
        // List Sections across the top of the table.
View Full Code Here

      ISIXmlSection rootSection, RepeatingView superSectionRepeater,
      SectionIconFactory iconFactory) {
    // Simple case - no supersection.  Create a single container and put sections into it.
    WebMarkupContainer container = new WebMarkupContainer(superSectionRepeater.newChildId());
    superSectionRepeater.add(container);
    container.add(new EmptyPanel("superSectionTitle"));
    container.add(new SectionRepeater("sectionRepeater", rootSection.getChildren(), currentSection, iconFactory));
  }
View Full Code Here

          wmc.add(new Label("definition", "Could not find glossary entry for " + entry.getHeadword()));
        }
      }
    } else
      // there is no word
      wmc.add(new EmptyPanel("name"));
      wmc.add(new EmptyPanel("definition"));
    }
    return wmc;
  }
View Full Code Here

  }

  private Component makeSummary(String id, IModel<Prompt> mPrompt) {
    if (featureService.isCompareScoreSummaryOn() && validAnswers(mPrompt))
      return new ResponseCollectionSummary(id, getScoreCounts(mPrompt));
    else return new EmptyPanel(id);
  }
View Full Code Here

  @Override
  protected void onBeforeRender() {
    ResponseFeedbackButtonPanelVisitor responseVisitor = new ResponseFeedbackButtonPanelVisitor();
    getParent().visitChildren(ResponseFeedbackButtonPanel.class, responseVisitor);
    if (responseVisitor.state == null) {
      addOrReplace(new EmptyPanel("feedbackStatusIcon").setVisible(false));
    } else if (responseVisitor.state.equals("old")) {
      addOrReplace(new Icon("feedbackStatusIcon", "img/icons/envelope_large_old.png",
          new ResourceModel("feedback.indicatorText.previousFeedback.alt").getObject(),
          new ResourceModel("feedback.indicatorText.previousFeedback.title").getObject()));
    } else {
View Full Code Here

    if (haveSelectedCollection()) {
      add(makeSummary("promptResponseSummary"));
      add(makePromptResponseRepeater("promptResponseRepeater"));
    }
    else {
      add(new EmptyPanel("promptResponseSummary"));
      add(new RepeatingView("promptResponseRepeater"));
    }
   
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.panel.EmptyPanel

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.