org.apache.wicket.markup.html.basic.Label.setDefaultModel()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(178)

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

Label.setDefaultModel介绍

暂无

代码示例

代码示例来源:origin: org.wicketstuff/wicketstuff-datetime-yui

@Override
public DateLabel setModel(IModel<Date> model) {
  super.setDefaultModel(model);
  return this;
}

代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core

/**
   * sets the subtitle model.
   *
   * @param subtitle The subtitle as model
   * @return this component's instance
   */
  public final PageHeader setSubtitle(final IModel<String> subtitle) {
    this.subtitle.setDefaultModel(subtitle);

    return this;
  }
}

代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core

/**
 * Sets the header message.
 *
 * @param header The header message.
 * @return This instance for chaining.
 */
public Alert withHeader(IModel<String> header) {
  this.blockHeader.setDefaultModel(header);
  this.inlineHeader.setDefaultModel(header);
  return this;
}

代码示例来源:origin: de.agilecoders.wicket/bootstrap

/**
 * sets the label of the button.
 *
 * @param label the new button label
 * @return reference to the current instance
 */
public TypedAjaxLink<T> setLabel(IModel<?> label) {
  this.label.setDefaultModel(label);
  return this;
}

代码示例来源:origin: de.agilecoders.wicket/bootstrap

/**
 * sets the label of the button.
 *
 * @param label the new button label
 * @return reference to the current instance
 */
public TypedBookmarkablePageLink<T> setLabel(IModel<?> label) {
  this.label.setDefaultModel(label);
  return this;
}

代码示例来源:origin: de.agilecoders.wicket/bootstrap

/**
 * Sets the header message.
 *
 * @param header The header message.
 * @return This instance for chaining.
 */
public Alert withHeader(IModel<String> header) {
  this.blockHeader.setDefaultModel(header);
  this.inlineHeader.setDefaultModel(header);
  return this;
}

代码示例来源:origin: de.agilecoders.wicket/bootstrap

/**
 * sets the label of the button.
 *
 * @param label the new button label
 * @return reference to the current instance
 */
@Override
public TypedAjaxButton setLabel(IModel<String> label) {
  this.label.setDefaultModel(label);
  return this;
}

代码示例来源:origin: de.agilecoders.wicket/bootstrap

/**
 * setter for link label
 *
 * @param label label as model
 * @return this instance
 */
public NavbarAjaxLink<T> setLabel(IModel<String> label) {
  this.label.setDefaultModel(label);
  return this;
}

代码示例来源:origin: de.agilecoders.wicket/bootstrap

/**
 * sets the label of the button.
 *
 * @param label the new button label
 * @return reference to the current instance
 */
@Override
public TypedButton setLabel(IModel<String> label) {
  this.label.setDefaultModel(label);
  return this;
}

代码示例来源:origin: de.agilecoders.wicket/bootstrap

/**
 * sets the label of the button.
 *
 * @param label the new button label
 * @return reference to the current instance
 */
public TypedLink<T> setLabel(IModel<?> label) {
  this.label.setDefaultModel(label);
  return this;
}

代码示例来源:origin: de.agilecoders.wicket/bootstrap

/**
   * sets the subtitle model.
   *
   * @param subtitle The subtitle as model
   * @return this component's instance
   */
  public final PageHeader setSubtitle(final IModel<String> subtitle) {
    this.subtitle.setDefaultModel(subtitle);

    return this;
  }
}

代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core

/**
 * setter for link label
 *
 * @deprecated please use constructor instead
 * @param label label as model
 * @return this instance
 */
@Deprecated
public NavbarAjaxLink<T> setLabel(IModel<String> label) {
  this.label.setDefaultModel(label);
  return this;
}

代码示例来源:origin: de.agilecoders.wicket/bootstrap

/**
 * Sets the header label text and whether model strings should be escaped.
 *
 * @param label        The header label
 * @param escapeMarkup True is model strings should be escaped
 * @return This
 */
public Modal header(final IModel<String> label, final boolean escapeMarkup) {
  headerLabel.setDefaultModel(label);
  headerLabel.setEscapeModelStrings(escapeMarkup);
  return this;
}

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

@Override
  public void onClick(AjaxRequestTarget target) {
    String result = CheckPlugin.this.check();
    message.setDefaultModel(new Model(result));
    setModel(new Model(result));
    target.addComponent(message);
  }
});

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

@Override
  public void onClick(AjaxRequestTarget target) {
    String result = CheckPlugin.this.check();
    message.setDefaultModel(new Model(result));
    setModel(new Model(result));
    target.add(message);
  }
});

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

@Override
  protected void onSubmit(AjaxRequestTarget target, Form form) {
    try {
      actions.revert();
      actions.close();
      closeDialog();
    } catch (Exception ex) {
      exceptionLabel.setDefaultModel(Model.of(ex.getMessage()));
      target.add(exceptionLabel);
    }
  }
});

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

@Override
  protected void onSubmit(AjaxRequestTarget target, Form form) {
    try {
      actions.save();
      actions.close();
      closeDialog();
    } catch (Exception ex) {
      exceptionLabel.setDefaultModel(Model.of(ex.getMessage()));
      target.add(exceptionLabel);
    }
  }
};

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

@Override
  protected void handleSubmit() {
    setOkVisible(false);
    setCancelLabel(new StringResourceModel("done-label", ConfirmDialog.this, null));
    onOk();
    affectedComponent.setDefaultModel(new Model(Integer.toString(processed)));
    affectedComponent.setVisible(true);
    AjaxRequestTarget.get().addComponent(this);
  }
}

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

@Override
protected void onInitialize() {
  super.onInitialize();
  add(dropdownButton.add(dropdownButtonLabel.setDefaultModel(dropdownLabel)));
  add(dropdownMenu.add(buttons));
  buttons.setList(buttonsMetadata.getObject());
  if (pullRight.getObject()) {
    dropdownMenu.add(Shortcuts.$b.attrAppender("class", "pull-right", " "));
  }
}

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

@Override
  protected void handleSubmit() {
    setOkVisible(false);
    setCancelLabel(new StringResourceModel("done-label", ConfirmBulkWorkflowDialog.this, null));
    onOk();
    affectedComponent.setDefaultModel(new Model<>(Integer.toString(processed)));
    affectedComponent.setVisible(true);
    RequestCycle.get().find(AjaxRequestTarget.class).add(this);
  }
}

相关文章