Class SelectParentContentControl

  • All Implemented Interfaces:
    Observer, VariableResolver, IControl, IDataBoundControl, IDataControl, IRenderer
    Direct Known Subclasses:
    SelectContentParentContentControl

    public class SelectParentContentControl
    extends DataBoundControl<TableSource>
    Renders a control that allows the end user to select another content within the same service instance that represents the parent of the curent content.

    Example use: <control:lum_selectParentContent id="parentId" /> xml data available for xsl rendering: <control id="parentId" type="lum_selectParentContent"> <control cellspacing="0" id="8A488A03117B0D2D01117B6D926204DC" type="lum_table"> <tr> <td> <control id="parentId.view" type="lum_inputText" ... /> </td> <td style="padding-left:5px"> <control id="parentId.buttonSelect" type="lum_button" ... /> </td> <td style="padding-left:5px"> <control id="parentId.buttonRemove" type="lum_button" ... /> </td> </tr> </control> </control>
    Since:
    4.0.0
    Version:
    $Revision: 19596 $ $Date: 2016-12-12 14:56:12 -0200 (Mon, 12 Dec 2016) $
    See Also:
    InputTextControl, ButtonControl
    • Constructor Detail

      • SelectParentContentControl

        public SelectParentContentControl()
    • Method Detail

      • addSelectParentPopupParameters

        protected void addSelectParentPopupParameters​(String sourceId,
                                                      String primaryKeyValue,
                                                      String interfaceInstanceId,
                                                      StringBuilder subControlsXmlString)
        Sets the parameters passed on to the select parent popup.
        Parameters:
        sourceId - the source identifier.
        primaryKeyValue - the primary key value in source.
        interfaceInstanceId - the interface instanceId of the caller.
        subControlsXmlString - String to append the parameters xml to.
      • getParentContentPrimaryName

        protected String getParentContentPrimaryName​(String currentParentContentValue,
                                                     TableSource source,
                                                     String primaryNameFieldName)
                                              throws PortalException
        Returns the primary name for the given value.
        Parameters:
        currentParentContentValue - the value for which to return a primary name.
        source - source of the value.
        primaryNameFieldName - field of the primary name.
        Returns:
        the primary name.
        Throws:
        PortalException