本文整理了Java中org.apache.wicket.markup.html.basic.Label.setOutputMarkupId()
方法的一些代码示例,展示了Label.setOutputMarkupId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setOutputMarkupId()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.basic.Label
类名称:Label
方法名:setOutputMarkupId
暂无
代码示例来源:origin: stackoverflow.com
Model<String> strMdl = Model.of("My old message");
Label msg = new Label("label", strMdl);
msg.setOutputMarkupId(true);
add(msg);
代码示例来源:origin: micromata/projectforge
/**
* @see org.projectforge.web.wicket.flowlayout.ComponentWrapperPanel#getComponentOutputId()
*/
@Override
public String getComponentOutputId()
{
projektAsStringLabel.setOutputMarkupId(true);
return projektAsStringLabel.getMarkupId();
}
代码示例来源:origin: micromata/projectforge
/**
* @see org.apache.wicket.Component#setMarkupId(java.lang.String)
*/
@Override
public DiffTextPanel setMarkupId(final String markupId)
{
label.setOutputMarkupId(true);
label.setMarkupId(markupId);
return this;
}
代码示例来源:origin: micromata/projectforge
/**
* @see org.apache.wicket.Component#setMarkupId(java.lang.String)
*/
@Override
public DivTextPanel setMarkupId(final String markupId)
{
label.setOutputMarkupId(true);
label.setMarkupId(markupId);
return this;
}
代码示例来源:origin: apache/syncope
public PropagationErrorPanel(final String failureReason) {
add(new Label("failureReason", failureReason).setOutputMarkupId(true));
}
}
代码示例来源:origin: apache/syncope
public FailureMessageModal(final PageReference pageRef, final String failureMessage) {
super(BaseModal.CONTENT_ID);
final Label executionFailureMessage;
if (!failureMessage.isEmpty()) {
executionFailureMessage = new Label("failureMessage", new Model<>(failureMessage));
} else {
executionFailureMessage = new Label("failureMessage");
}
add(executionFailureMessage.setOutputMarkupId(true));
}
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-plugins
public SaveDialogLink(String id, IModel linktext, final IDialogFactory dialogFactory, final IDialogService dialogService) {
super(id, linktext, dialogFactory, dialogService);
Label label = new Label("dialog-link-text-extended", new AbstractReadOnlyModel<String>() {
private static final long serialVersionUID = 1L;
@Override
public String getObject() {
if (hasSessionChanges()) {
return "*";
}
return "";
}
});
label.setOutputMarkupId(true);
link.add(label);
}
代码示例来源:origin: apache/syncope
public ExecMessageModal(final String id, final String executionMessage) {
super(id);
add(new Label("executionMessage", executionMessage).setOutputMarkupId(true));
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-console-frontend
public SaveDialogLink(String id, IModel<String> linkText, final IDialogFactory dialogFactory, final IDialogService dialogService) {
super(id, linkText, dialogFactory, dialogService, Shortcuts.CTRL_S);
Label label = new Label("dialog-link-text-extended", new AbstractReadOnlyModel<String>() {
private static final long serialVersionUID = 1L;
@Override
public String getObject() {
if (hasSessionChanges()) {
return "*";
}
return "";
}
});
label.setOutputMarkupId(true);
link.add(label);
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-editor-frontend
protected Component createNrItemsLabel() {
if ((IEditor.Mode.EDIT == mode) && (getMaxItems() > 0)) {
final IModel propertyModel = new StringResourceModel("nrItemsLabel", this, new Model<AbstractFieldPlugin>(this));
return new Label("nrItemsLabel", propertyModel).setOutputMarkupId(true);
}
return new Label("nrItemsLabel").setVisible(false);
}
代码示例来源:origin: apache/syncope
public NotificationMailBody(final String id, final String body) {
super(id);
add(new Label("body", Model.of(body)).setOutputMarkupId(true));
}
}
代码示例来源:origin: apache/syncope
public ExecMessage(final String message) {
super();
add(new Label("message", Model.of(message)).setOutputMarkupId(true));
}
}
代码示例来源:origin: webanno/webanno
public DocumentNamePanel(String id, final IModel<AnnotatorState> aModel)
{
super(id, aModel);
setOutputMarkupId(true);
add(new Label("doumentName", LambdaModel.of(this::getLabel)).setOutputMarkupId(true));
}
代码示例来源:origin: micromata/projectforge
/**
* @param title
* @return this for chaining.
*/
public ModalDialog setTitle(final IModel<String> title)
{
titleContainer = new WebMarkupContainer("titleContainer");
mainSubContainer.add(titleContainer.setOutputMarkupId(true));
titleContainer.add(titleLabel = new Label("titleText", title));
titleLabel.setOutputMarkupId(true);
return this;
}
代码示例来源:origin: sebfz1/wicket-jquery-ui
/**
* Constructor
*
* @param id the markup id
*/
public LoadingPanel(String id)
{
super(id);
IRequestHandler handler = new ResourceReferenceRequestHandler(AbstractDefaultAjaxBehavior.INDICATOR);
this.label = new Label(LAZY_LOAD_COMPONENT_ID, String.format("<img alt=\"Loading...\" src=\"%s\"/>", RequestCycle.get().urlFor(handler)));
this.label.setEscapeModelStrings(false);
this.label.setOutputMarkupId(true);
this.add(this.label);
}
代码示例来源:origin: com.googlecode.wicket-jquery-ui/jquery-ui-core
/**
* Constructor
* @param id the markup id
* @param model the {@link IModel}
* @param label {@link Label} on which the current slide value will be displayed
*/
public AbstractSlider(String id, IModel<T> model, Label label)
{
super(id, model);
label.setDefaultModel(model);
label.setOutputMarkupId(true);
this.setLabelId(label.getMarkupId());
}
代码示例来源:origin: webanno/webanno
private LambdaAjaxLink createSelectedTextLabel()
{
LambdaAjaxLink link = new LambdaAjaxLink("jumpToAnnotation",
this::actionJumpToAnnotation);
link.add(new Label("selectedText", PropertyModel.of(getModelObject(),
"selection.text")).setOutputMarkupId(true));
link.setOutputMarkupId(true);
return link;
}
代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-html-editor
public HtmlAnnotationEditor(String aId, IModel<AnnotatorState> aModel,
AnnotationActionHandler aActionHandler, JCasProvider aJCasProvider)
{
super(aId, aModel, aActionHandler, aJCasProvider);
vis = new Label("vis", LambdaModel.of(this::renderHtml));
vis.setOutputMarkupId(true);
vis.setEscapeModelStrings(false);
add(vis);
storeAdapter = new StoreAdapter();
add(storeAdapter);
}
代码示例来源:origin: inception-project/inception
public HtmlAnnotationEditor(String aId, IModel<AnnotatorState> aModel,
AnnotationActionHandler aActionHandler, JCasProvider aJCasProvider)
{
super(aId, aModel, aActionHandler, aJCasProvider);
vis = new Label("vis", LambdaModel.of(this::renderHtml));
vis.setOutputMarkupId(true);
vis.setEscapeModelStrings(false);
add(vis);
storeAdapter = new StoreAdapter();
add(storeAdapter);
}
代码示例来源:origin: org.wicketstuff/yui
public StretchPanel(String id, IModel toggleLabel)
{
super(id);
add(YuiHeaderContributor.forModule("animation"));
label = new Label("stretchToggle", toggleLabel);
label.setOutputMarkupId(true);
stretchPanel = getStretchPanel("stretcher");
stretchPanel.setOutputMarkupId(true);
add(label);
add(stretchPanel);
}
内容来源于网络,如有侵权,请联系作者删除!