Example usage for org.apache.wicket.markup.html.link AbstractLink getMarkupId

List of usage examples for org.apache.wicket.markup.html.link AbstractLink getMarkupId

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.link AbstractLink getMarkupId.

Prototype

public String getMarkupId() 

Source Link

Document

Retrieves id by which this component is represented within the markup.

Usage

From source file:org.apache.isis.viewer.wicket.ui.components.widgets.zclip.ZeroClipboardLink.java

License:Apache License

public ZeroClipboardLink(String id, AbstractLink linkComponent) {
    this(id, "#" + linkComponent.getMarkupId());
}

From source file:org.projectforge.web.tree.DefaultTreeTablePanel.java

License:Open Source License

private void replaceFolderImage(final AjaxRequestTarget target, final AbstractLink link,
        final TreeTableNode node, final StringBuffer prependJavascriptBuf) {
    ContextImage oldImage = (ContextImage) link.get("folderImage");
    if (oldImage == null || oldImage.isVisible() == false) {
        oldImage = (ContextImage) link.get("folderOpenImage");
    }//  w ww .  j av  a2s  . c  o m
    final ContextImage currentImage = TreeIconsActionPanel.getCurrentFolderImage(getResponse(), link, node);
    if (oldImage != currentImage) {
        prependJavascriptBuf.append(WicketAjaxUtils.replaceChild(link.getMarkupId(), oldImage.getMarkupId(),
                "img", currentImage.getMarkupId()));
        target.add(currentImage);
    }
}