public Object getObject() { return element.getId() + "_" + javaScriptId; } }));
/** * Gets the string the component would use as a label when one was requested but no label model * was set via {@link #getLabel()}. The value of this string is usually set in a property file; * if the value is not set the default value equivalent to component id will be returned. * * @return localized label */ public final String getDefaultLabel() { return getDefaultLabel(getId()); }
/** * Gets the string the component would use as a label when one was requested but no label model * was set via {@link #getLabel()}. The value of this string is usually set in a property file; * if the value is not set the default value equivalent to component id will be returned. * * @return localized label */ public final String getDefaultLabel() { return getDefaultLabel(getId()); }
/** * Gets the string the component would use as a label when one was requested but no label model * was set via {@link #getLabel()}. The value of this string is usually set in a property file; * if the value is not set the default value equivalent to component id will be returned. * * @return component label */ public final String getDefaultLabel() { return getDefaultLabel(getId()); }
/** * Gets the string the component would use as a label when one was requested but no label model * was set via {@link #getLabel()}. The value of this string is usually set in a property file; * if the value is not set the default value equivalent to component id will be returned. * * @return localized label */ public final String getDefaultLabel() { return getDefaultLabel(getId()); }
/** * @param formComponent1 * @param formComponent2 * @return */ public String equalFieldMessage(FormComponent formComponent1, FormComponent formComponent2) { return addToBuffer( formComponent2.getId(), "equal|$" + formComponent1.getId(), escapeJavaScriptString(formatEqualFieldMessage(formComponent1, formComponent2, "EqualPasswordInputValidator"))); }
/** * @param formComponent * @param type * @return */ @SuppressWarnings("unchecked") private String formatTypeMessage(FormComponent formComponent, String type) { String customMessage = getWicketConverterMessage(formComponent); customMessage = replaceInputAndLabelAndNameBy(customMessage, formComponent.getId()); return customMessage.replace("${type}", type); }
/** * @param formComponent * @param type * @return */ private String formatTypeMessage(FormComponent<?> formComponent, String type) { String customMessage = getWicketConverterMessage(formComponent); customMessage = replaceInputAndLabelAndNameBy(customMessage, formComponent.getId()); return customMessage.replace("${type}", type); }
/** * @param formComponent * @param converterClassName * @return */ public String typeConverterIntegerMessage(FormComponent formComponent, String converterClassName) { return addToBuffer( formComponent.getId(), "integer", escapeJavaScriptString(formatTypeMessage(formComponent, converterClassName))); }
/** * Gets the string the component would use as a label when one was requested but no label model * was set via {@link #getLabel()}. The value of this string is usually set in a property file; * if the value is not set the {@code defaultvalue} will be returned. * * @param defaultValue * @return component label */ public final String getDefaultLabel(String defaultValue) { return getLocalizer().getString(getId(), getParent(), defaultValue); }
/** * @param formComponent * @param converterClassName * @return */ public String typeConverterDateMessage(FormComponent formComponent, String converterClassName) { return addToBuffer( formComponent.getId(), "date", escapeJavaScriptString(formatTypeMessage(formComponent, converterClassName))); }
/** * @param formComponent * @param converterClassName * @return */ public String typeConverterDecimalMessage(FormComponent formComponent, String converterClassName) { return addToBuffer( formComponent.getId(), "double", escapeJavaScriptString(formatTypeMessage(formComponent, converterClassName))); }
/** * @param formComponent * @param converterClassName * @return */ public String typeConverterIntegerMessage(FormComponent<?> formComponent, String converterClassName) { return addToBuffer(formComponent.getId(), "integer", escapeJavaScriptString(formatTypeMessage(formComponent, converterClassName))); }
/** * Gets the string the component would use as a label when one was requested but no label model * was set via {@link #getLabel()}. The value of this string is usually set in a property file; * if the value is not set the {@code defaultValue} will be returned. * * @param defaultValue * * @return localized label */ public final String getDefaultLabel(String defaultValue) { return getLocalizer().getString(getId(), getParent(), defaultValue); }
/** * Gets the string the component would use as a label when one was requested but no label model * was set via {@link #getLabel()}. The value of this string is usually set in a property file; * if the value is not set the {@code defaultValue} will be returned. * * @param defaultValue * * @return localized label */ public final String getDefaultLabel(String defaultValue) { return getLocalizer().getString(getId(), getParent(), defaultValue); }
/** * @param formComponent * @param converterClassName * @return */ public String typeConverterDateMessage(FormComponent<?> formComponent, String converterClassName) { return addToBuffer(formComponent.getId(), "date", escapeJavaScriptString(formatTypeMessage(formComponent, converterClassName))); }
/** * @param formComponent * @param converterClassName * @return */ public String typeConverterDecimalMessage(FormComponent<?> formComponent, String converterClassName) { return addToBuffer(formComponent.getId(), "double", escapeJavaScriptString(formatTypeMessage(formComponent, converterClassName))); }
protected static String resolveSimpleLabel(FormComponent<?> formComponent) { IModel<?> model = formComponent.getModel(); if (model instanceof ISInstanceAwareModel<?>) { SInstance instance = ((ISInstanceAwareModel<?>) model).getSInstance(); return instance.asAtr().getLabel(); } return "[" + formComponent.getId() + "]"; }
protected static String resolveSimpleLabel(FormComponent<?> formComponent) { IModel<?> model = formComponent.getModel(); if (model instanceof ISInstanceAwareModel<?>) { SInstance instancia = ((ISInstanceAwareModel<?>) model).getMInstancia(); return instancia.asAtr().getLabel(); } return "[" + formComponent.getId() + "]"; }
public LabeledFormBorder(String labelText, FormComponent<T> container) { super(container.getId() + "Border"); this.formComponent = container; FormComponentLabel label = new FormComponentLabel("label", container); label.add(new AttributeModifier("class", "control-label")); Label somethingLabelSpan = new Label("labelText", labelText); somethingLabelSpan.setRenderBodyOnly(true); label.add(somethingLabelSpan); addToBorder(label); add(container); }