Class LabeledWebMarkupContainer

    • Constructor Detail

      • LabeledWebMarkupContainer

        public LabeledWebMarkupContainer​(java.lang.String id)
        See Also:
        Component(String)
    • Method Detail

      • onDetach

        protected void onDetach()
        Description copied from class: Component
        Called to allow a component to detach resources after use. Overrides of this method MUST call the super implementation, the most logical place to do this is the last line of the override method.
        Overrides:
        onDetach in class MarkupContainer
      • getLabel

        public IModel<java.lang.String> getLabel()
        Description copied from interface: ILabelProvider
        The value will be made available to the validator property by means of ${label}. It does not have any specific meaning to FormComponent itself.
        Specified by:
        getLabel in interface ILabelProvider<java.lang.String>
        Returns:
        labelModel
        See Also:
        ILabelProvider.getLabel()
      • setLabel

        public LabeledWebMarkupContainer setLabel​(IModel<java.lang.String> labelModel)
        Provide internal setter. We need this because people want to be able to chain together our setters in FormComponent, etc. e.g. for .setLabel(foo).setRequired()
        Parameters:
        labelModel -
        Returns:
        this