本文整理了Java中org.apache.wicket.markup.html.image.Image.setOutputMarkupId()
方法的一些代码示例,展示了Image.setOutputMarkupId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Image.setOutputMarkupId()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.image.Image
类名称:Image
方法名:setOutputMarkupId
暂无
代码示例来源:origin: de.alpharogroup/jaulp.wicket.components
/**
* Factory method for create a new {@link Image}.
*
* @param id
* the id
* @param imageResource
* the IResource object
* @return the new {@link Image}.
*/
public static Image newImage(final String id, final IResource imageResource)
{
final Image image = new Image(id, imageResource);
image.setOutputMarkupId(true);
return image;
}
代码示例来源:origin: de.alpharogroup/jaulp-wicket-components
/**
* Factory method for create a new {@link Image}.
*
* @param id
* the id
* @param imageResource
* the IResource object
* @return the new {@link Image}.
*/
public static Image newImage(final String id, final IResource imageResource)
{
final Image image = new Image(id, imageResource);
image.setOutputMarkupId(true);
return image;
}
代码示例来源:origin: apache/syncope
public ImageModalPanel(final BaseModal<T> modal, final byte[] content, final PageReference pageRef) {
super(modal, pageRef);
Image image = new Image("image", new Model<IResource>()) {
private static final long serialVersionUID = -8457850449086490660L;
@Override
protected IResource getImageResource() {
return new DynamicImageResource() {
private static final long serialVersionUID = 923201517955737928L;
@Override
protected byte[] getImageData(final IResource.Attributes attributes) {
return content;
}
};
}
};
image.setOutputMarkupId(true);
add(image);
}
}
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-monitoring
private void updateStats(AjaxRequestTarget aTarget, ProjectSelectionModel aModel)
{
aModel.annotatorsProgress.clear();
aModel.annotatorsProgress.putAll(getFinishedDocumentsPerUser(project));
annotatorsProgressImage.setImageResource(createProgressChart(aModel.annotatorsProgress,
aModel.totalDocuments, false));
aTarget.add(annotatorsProgressImage.setOutputMarkupId(true));
aModel.annotatorsProgressInPercent.clear();
aModel.annotatorsProgressInPercent.putAll(getPercentageOfFinishedDocumentsPerUser(project));
annotatorsProgressPercentageImage.setImageResource(createProgressChart(
aModel.annotatorsProgressInPercent, 100, true));
aTarget.add(annotatorsProgressPercentageImage.setOutputMarkupId(true));
aTarget.add(monitoringDetailForm.setOutputMarkupId(true));
aTarget.add(agreementForm);
}
代码示例来源:origin: ch.qos.mistletoe/mistletoe-wicket
public TreeExpansionLink(String id) {
super(id);
ResourceReference ref = getControlSymbolResourceReference(expanded);
Image image = new Image(Constants.TREE_CONTROL_SYMBOL_ID, ref);
image.setOutputMarkupId(true);
this.add(image);
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-console-frontend
/**
* Creates a clickable header.
*
* @param id the Wicket ID of this component
* @param name the name of the header (used as a parameter in the toggleBox() javascript call)
* @param text the text the display in the header
*/
public ToggleHeader(String id, String name, String text) {
super(id);
this.name = name;
final Label textLabel = new Label("text", text);
add(textLabel);
final Image toggleImage = new Image("toggle-icon", new PackageResourceReference(ToggleHeader.class, "group-expanded.png"));
toggleImage.setMarkupId("toggle-" + name);
toggleImage.setOutputMarkupId(true);
add(toggleImage);
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-plugins
/**
* Creates a clickable header.
*
* @param id the Wicket ID of this component
* @param name the name of the header (used as a parameter in the toggleBox() javascript call)
* @param text the text the display in the header
*/
public ToggleHeader(String id, String name, String text) {
super(id);
this.name = name;
final Label textLabel = new Label("text", text);
add(textLabel);
final Image toggleImage = new Image("toggle-icon", new ResourceReference(ToggleHeader.class, "group-expanded.png"));
toggleImage.setMarkupId("toggle-" + name);
toggleImage.setOutputMarkupId(true);
add(toggleImage);
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-plugins
iconAddNode.setOutputMarkupId(true);
menuContainer.add(iconAddNode);
iconDeleteNode.setOutputMarkupId(true);
menuContainer.add(iconDeleteNode);
iconCopyNode.setOutputMarkupId(true);
menuContainer.add(iconCopyNode);
iconMoveNode.setOutputMarkupId(true);
menuContainer.add(iconMoveNode);
iconRenameNode.setOutputMarkupId(true);
menuContainer.add(iconRenameNode);
iconXmlExport.setOutputMarkupId(true);
menuContainer.add(iconXmlExport);
iconXmlImport.setOutputMarkupId(true);
menuContainer.add(iconXmlImport);
iconXmlImport.setOutputMarkupId(true);
menuContainer.add(iconT9ids);
return menuContainer;
代码示例来源:origin: org.wicketstuff/fixed-feedback-panel
public FixedFeedbackPanel(String id, Component component) {
super(id);
outerPanel = new WebMarkupContainer("outerPanel");
if (component == null) {
innerPanel = new FeedbackPanel("innerPanel");
} else {
innerPanel = new ComponentFeedbackPanel("innerPanel", component);
}
expand = new Image("expand", expandImageRef);
outerPanel.add(expand.setOutputMarkupId(true));
outerPanel.add(innerPanel.setOutputMarkupId(true));
add(outerPanel.setOutputMarkupId(true));
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-plugins
icon.setOutputMarkupId(true);
add(icon);
代码示例来源:origin: ro.fortsoft.wicket.dashboard/wicket-dashboard-core
toggle.setOutputMarkupId(true);
toggle.add(new AjaxEventBehavior("click") {
代码示例来源:origin: decebals/wicket-dashboard
toggle.setOutputMarkupId(true);
toggle.add(new AjaxEventBehavior("click") {
代码示例来源:origin: org.wicketstuff/wicketstuff-console
protected void initComponents()
{
titleLabel = new Label("title", Model.of("Wicket Console"));
add(titleLabel);
titleLangLabel = new LangLabel("title-lang", Model.of(lang));
add(titleLangLabel);
form = new Form<Void>("form");
add(form);
inputTa = new TextArea<String>("input");
inputTa.setOutputMarkupId(true);
form.add(inputTa);
controls = new RepeatingView("controls");
form.add(controls);
addControls(controls);
indicator = new Image("indicator", AbstractDefaultAjaxBehavior.INDICATOR);
indicator.setOutputMarkupId(true);
form.add(indicator);
returnValueTf = new TextField<String>("returnValue");
returnValueTf.setOutputMarkupId(true);
add(returnValueTf);
outputTa = new OutputTextArea("output", this);
outputTa.setOutputMarkupId(true);
add(outputTa);
}
代码示例来源:origin: org.onehippo.cms7/hippo-addon-automatic-export-frontend
icon.setOutputMarkupId(true);
add(icon);
AjaxLink<Void> link = new AjaxLink<Void>("link") {
代码示例来源:origin: org.geoserver.web/web-wms
defStyleImg.setOutputMarkupId(true);
styleContainer.add(defStyleImg);
代码示例来源:origin: org.geoserver.web/gs-web-wms
legendContainer.add(this.legendImg);
this.legendImg.setVisible(false);
this.legendImg.setOutputMarkupId(true);
代码示例来源:origin: org.geoserver.web/gs-web-wms
defStyleImg.setOutputMarkupId(true);
styleContainer.add(defStyleImg);
内容来源于网络,如有侵权,请联系作者删除!