热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.apache.wicket.ajax.markup.html.AjaxLink类的使用及代码示例

本文整理了Java中org.apache.wicket.ajax.markup.html.AjaxLink类的一些代码示例,展示了AjaxLink

本文整理了Java中org.apache.wicket.ajax.markup.html.AjaxLink类的一些代码示例,展示了AjaxLink类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AjaxLink类的具体详情如下:
包路径:org.apache.wicket.ajax.markup.html.AjaxLink
类名称:AjaxLink

AjaxLink介绍

[英]A component that allows a trigger request to be triggered via html anchor tag
[中]允许通过html锚标记触发触发器请求的组件

代码示例

代码示例来源:origin: org.onehippo.cms7/hippo-cms-api

public DialogLink(final String id, final IModel linkText, final IDialogFactory dialogFactory, final IDialogService dialogService, final KeyType[] keyTypes) {
this(id, linkText, dialogFactory, dialogService);
link.add(new InputBehavior(keyTypes, EventType.click));
}

代码示例来源:origin: net.ontopia/ontopoly-editor

@Override
public void onClick(AjaxRequestTarget target) {
searchTab.setVisible(false);
browseTab.setVisible(true);
searchTabLink.setEnabled(true);
browseTabLink.setEnabled(false);
target.addComponent(popupContent);
}
};

代码示例来源:origin: org.onehippo.cms7/hippo-plugin-resourcebundle-editor

protected AjaxLink createResourceViewLink(final Resource resource) {
AjaxLink link = new AjaxLink("action-view") {
@Override
public void onClick(final AjaxRequestTarget target) {
getDialogService().show(new ResourceViewDialog(ResourceBundlePlugin.this, resource));
}
};
link.setVisible(mode != IEditor.Mode.EDIT);
link.add(makeTitle(this, "plugin.resource.action.view"));
return link;
}

代码示例来源:origin: apache/syncope

/**
* Show exit butto sending ExitEvent paylad.
*
* @return the current instance.
*/
protected final WizardMgtPanel enableExitButton() {
exitAjaxLink.setEnabled(true);
exitAjaxLink.setVisible(true);
return this;
}

代码示例来源:origin: org.onehippo.cms7/hippo-addon-hst-configuration-editor-frontend

private void checkState() {
choices = getChoices();
boolean set = choices != null && !choices.isEmpty();
if (addLink.isVisible() != set) {
addLink.setVisible(set);
}
if (addContainerLink.isVisible() != set) {
addContainerLink.setVisible(set);
}
}

代码示例来源:origin: apache/wicket

@Override
protected void onInitialize()
{
super.onInitialize();
add(newAjaxEventBehavior("click"));
}

代码示例来源:origin: org.geoserver.community/importer-web

Component toggleAdvanced()
{
final AjaxLink advanced = new AjaxLink("advancedLink")
{
@Override
public void onClick(AjaxRequestTarget target)
{
advancedPanel.setVisible(!advancedPanel.isVisible());
target.addComponent(advancedContainer);
target.addComponent(this);
}
};
advanced.add(new AttributeModifier("class", true, new AbstractReadOnlyModel()
{
@Override
public Object getObject()
{
return advancedPanel.isVisible() ? "expanded" : "collapsed";
}
}));
advanced.setOutputMarkupId(true);
return advanced;
}

代码示例来源:origin: org.opensingular/singular-form-wicket

private void addBehaviours() {
footer.add($b.visibleIf(() -> AbstractListMapper.canAddItems(ctx)));
addButton.add(WicketUtils.$b.attr("title", addButtonLabel.getDefaultModel()));
addButton.setEscapeModelStrings(false);
}

代码示例来源:origin: stackoverflow.com

@Override
protected void populateItem(final ListItem li) {
AjaxLink alink = new AjaxLink("label", li.getModel()) {
@Override
public void onClick(AjaxRequestTarget target) {
System.out.println("AJAX WORKS");
}
};
alink.add(new Label("linklabel", "Yes ajax works!"));
li.add(alink);
}

代码示例来源:origin: org.onehippo.cms7/hippo-addon-hst-configuration-editor-frontend

public PageEditorPlugin(IPluginContext context, IPluginConfig config) {
super(context, config);
//Pages shouldn't be able to add nested pages
addLink.setVisible(false);
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-workflow-frontend

public PublishAllShortcutPlugin(final IPluginContext context, final IPluginConfig config) {
super(context, config);
AjaxLink link = new AjaxLink("link") {
@Override
public void onClick(AjaxRequestTarget target) {
IDialogService dialogService = getDialogService();
dialogService.show(new PublishAllShortcutPlugin.Dialog(config));
}
};
link.setModel(new StringResourceModel(config.getString("label.link"), this, null));
add(link);
Label label = new Label("label");
label.setDefaultModel(new StringResourceModel(config.getString("label.link"), this, null));
link.add(label);
}

代码示例来源:origin: org.artifactory/artifactory-web-common

@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put("title", "Group By");
}

代码示例来源:origin: apache/wicket

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
super.updateAjaxAttributes(attributes);
AjaxLink.this.updateAjaxAttributes(attributes);
}

代码示例来源:origin: org.onehippo.cms7/hippo-plugin-gallerypicker

private void addOpenButton(Fragment fragment) {
AjaxLink openButton = new AjaxLink("open") {
@Override
public boolean isVisible() {
return isValidDisplaySelection();
}
@Override
public void onClick(AjaxRequestTarget target) {
open();
}
};
openButton.setOutputMarkupId(true);
fragment.add(openButton);
}

代码示例来源:origin: org.geoserver.community/importer-web

/**
* Toggles the connection pool param panel
*
* @return
*/
Component toggleConnectionPoolLink()
{
AjaxLink cOnnPoolLink= new AjaxLink("connectionPoolLink")
{
@Override
public void onClick(AjaxRequestTarget target)
{
connPool.setVisible(!connPool.isVisible());
target.addComponent(connPoolParametersContainer);
target.addComponent(this);
}
};
connPoolLink.add(new AttributeModifier("class", true, new AbstractReadOnlyModel()
{
@Override
public Object getObject()
{
return connPool.isVisible() ? "expanded" : "collapsed";
}
}));
connPoolLink.setOutputMarkupId(true);
return connPoolLink;
}

代码示例来源:origin: org.opensingular/form-wicket

private void addBehaviours() {
footer.add($b.visibleIf(() -> AbstractListaMapper.canAddItems(ctx)));
addButton.add(WicketUtils.$b.attr("title", addButtonLabel.getDefaultModel()));
addButton.setEscapeModelStrings(false);
}

代码示例来源:origin: org.apache.wicket/wicket-core

@Override
protected void onInitialize()
{
super.onInitialize();
add(newAjaxEventBehavior("click"));
}

代码示例来源:origin: org.onehippo.ecm/hst-addon-configuration-editor-frontend

public PageEditorPlugin(IPluginContext context, IPluginConfig config) {
super(context, config);

//Pages shouldn't be able to add nested pages
addLink.setVisible(false);
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-console-frontend

@Override
protected void onComponentTag(final ComponentTag tag) {
super.onComponentTag(tag);
tag.put("class", "property-remove");
}

代码示例来源:origin: apache/syncope

protected > WizardMgtPanel addNewItemPanelBuilder(
final B panelBuilder, final boolean newItemDefaultButtonEnabled) {
this.newItemPanelBuilder = panelBuilder;
if (this.newItemPanelBuilder != null) {
addAjaxLink.setEnabled(newItemDefaultButtonEnabled);
addAjaxLink.setVisible(newItemDefaultButtonEnabled);
this.newItemPanelBuilder.setEventSink(WizardMgtPanel.this);
}
return this;
}

推荐阅读
author-avatar
mobiledu2502853717
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有