コード例 #1
0
  @Override
  public void renderHead(final Component component, final IHeaderResponse headerResponse) {
    super.renderHead(component, headerResponse);

    headerResponse.render(
        OnDomReadyHeaderItem.forScript(createInitializerScript(component, config)));
  }
コード例 #2
0
  @Override
  public void bind(final Component component) {
    super.bind(component);

    component.setOutputMarkupId(true);
    component.add(AttributeModifier.replace("rel", createRelAttribute()));
    component.add(AttributeModifier.replace("title", label));
  }
コード例 #3
0
  @Override
  public void detach(Component component) {
    super.detach(component);

    label.detach();
  }