Package org.apache.wicket

Examples of org.apache.wicket.Component$ComponentModelChange


   *            path to component
   * @return a <code>Result</code>
   */
  public Result isDisabled(final String path)
  {
    Component component = getComponentFromLastRenderedPage(path);
    if (component == null)
    {
      fail("path: '" + path + "' does no exist for page: " +
        getLastRenderedPage().getClass().getSimpleName());
    }

    return isFalse("component '" + path + "' is enabled", component.isEnabledInHierarchy());
  }
View Full Code Here


   *            path to component
   * @return a <code>Result</code>
   */
  public Result isRequired(String path)
  {
    Component component = getComponentFromLastRenderedPage(path);
    if (component == null)
    {
      fail("path: '" + path + "' does no exist for page: " +
        getLastRenderedPage().getClass().getSimpleName());
    }
View Full Code Here

   *            AjaxLink and AjaxSubmitLink will fail, since it wouldn't work in real life.
   *            AjaxFallbackLink will be invoked with null as the AjaxRequestTarget parameter.
   */
  public void clickLink(String path, boolean isAjax)
  {
    Component linkComponent = getComponentFromLastRenderedPage(path);

    checkUsability(linkComponent, true);

    // if the link is an AjaxLink, we process it differently
    // than a normal link
View Full Code Here

   *            the event which we simulate being fired. If <code>event</code> is
   *            <code>null</code>, the test will fail.
   */
  public void executeAjaxEvent(final String componentPath, final String event)
  {
    Component component = getComponentFromLastRenderedPage(componentPath);
    executeAjaxEvent(component, event);
  }
View Full Code Here

    MarkupContainer junction = createJunctionComponent("junction");
    junction.add(new StyleBehavior());
    add(junction);

    Component content = createContent(CONTENT_ID, model);
    if (!content.getId().equals(CONTENT_ID))
    {
      throw new IllegalArgumentException(
        "content must have component id equal to Node.CONTENT_ID");
    }
    add(content);
View Full Code Here

    @Override
    public final void call(AjaxRequestTarget target, Component source)
    {
      IRequestParameters req = RequestCycle.get().getRequest().getRequestParameters();

      Component dropped = findComponentById(req.getParameterValue("droppedId").toString());
      drop(target, source, dropped);
    }
View Full Code Here

  public boolean matches(Component component)
  {
    if (component == null)
      return false;

    Component parent = component.getParent();

    if (parent != null && parentMatcher.matches(parent))
      return true;

    return parent != null && matches(parent);
View Full Code Here

           
            if (prefName.startsWith(prefix))
            {
                String componentName = prefName.substring(prefix.length());
                String prefValue = prefs.getValue(prefName, defaultVisibility ? "true" : "false");
                Component component = get(componentName);
               
                if (component != null)
                {
                    component.setVisibilityAllowed(true).setVisible(BooleanUtils.toBoolean(prefValue));
                }
            }
        }
    }
View Full Code Here

  private Location readLocation(Request request)
  {
    String id = getComponent().getRequest().getRequestParameters().getParameterValue(
        "component").toString();

    Component component = MarkupIdVisitor.getComponent((MarkupContainer)getComponent(), id);

    Anchor anchor = Anchor.valueOf(request.getRequestParameters().getParameterValue("anchor")
        .toString());

    return new Location(component, anchor);
View Full Code Here

    return getOperations().contains(operation);
  }

  final void beforeDrop(Request request, Transfer transfer) throws Reject
  {
    Component drag = getDrag(request);

    onBeforeDrop(drag, transfer);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.Component$ComponentModelChange

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.