@ OverrideOnDemand protected void modifyFirstControlIfLabelIsPresent ( @ Nonnull final IHCElementWithChildren < ? > aLabel , @ Nonnull final IHCControl < ? > aFirstControl ) { // Set the default placeholder (if none is present) if ( aFirstControl instanceof IHCInput < ? > ) { final IHCInput < ? > aEdit = ( IHCInput < ? > ) aFirstControl ; final EHCInputType eType = aEdit . getType ( ) ; if ( eType != null && eType . hasPlaceholder ( ) && ! aEdit . hasPlaceholder ( ) ) aEdit . setPlaceholder ( _getPlaceholderText ( aLabel ) ) ; } else if ( aFirstControl instanceof IHCTextArea < ? > ) { final IHCTextArea < ? > aTextArea = ( IHCTextArea < ? > ) aFirstControl ; if ( ! aTextArea . hasPlaceholder ( ) ) aTextArea . setPlaceholder ( _getPlaceholderText ( aLabel ) ) ; } }
Modify the first control that is inserted . This method is only called when a label is present .