Class LabelFieldDescriptor


  • public class LabelFieldDescriptor
    extends Object
    This is a commodity class used to couple a label and a text component with a FieldName. It is mainly used by the QuickSetupStepPanel classes to retrieve easily the labels and fields associated with a FieldName to provide its content or to mark the labels as valid or invalid. It is also used during the creation of the components as it describes the different properties.
    • Constructor Detail

      • LabelFieldDescriptor

        public LabelFieldDescriptor​(org.forgerock.i18n.LocalizableMessage label,
                                    org.forgerock.i18n.LocalizableMessage tooltip,
                                    LabelFieldDescriptor.FieldType type,
                                    LabelFieldDescriptor.LabelType labelType,
                                    int size)
        Constructor of this LabelFieldDescriptor.
        Parameters:
        label - the String of the label.
        tooltip - the tooltip of the field.
        type - the type of field.
        labelType - the type of label.
        size - the size of the field.
    • Method Detail

      • getLabel

        public org.forgerock.i18n.LocalizableMessage getLabel()
        Returns the String displayed by the label.
        Returns:
        the String displayed by the label.
      • getSize

        public int getSize()
        Returns the size of the field.
        Returns:
        the size of the field.
      • getTooltip

        public org.forgerock.i18n.LocalizableMessage getTooltip()
        Returns the tooltip used in the field.
        Returns:
        the tooltip used in the field.