Class SelectContentParentContentControl

  • All Implemented Interfaces:
    java.util.Observer, javax.servlet.jsp.el.VariableResolver, IControl, IDataBoundControl, IDataControl, IRenderer

    public class SelectContentParentContentControl
    extends SelectParentContentControl
    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.
    Uses the content identifier as the parent key value.

    Example use: <control:lum_selectContentParentContent id="parentcontent" /> xml data available for xsl rendering: <control id="parentcontent" type="lum_selectContentParentContent"> <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:
    7.0.1
    Version:
    $Revision$ $Date$
    See Also:
    InputTextControl, ButtonControl
    • Field Detail

      • DOUI_CONTROL_TYPE

        public static final java.lang.String DOUI_CONTROL_TYPE
        The standard registered DOUI control type for this control.
        Since:
        15.0.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • SelectContentParentContentControl

        public SelectContentParentContentControl()
    • Method Detail

      • addSelectParentPopupParameters

        protected void addSelectParentPopupParameters​(java.lang.String sourceId,
                                                      java.lang.String primaryKeyValue,
                                                      java.lang.String interfaceInstanceId,
                                                      java.lang.StringBuilder subControlsXmlString)
        Description copied from class: SelectParentContentControl
        Sets the parameters passed on to the select parent popup.
        Overrides:
        addSelectParentPopupParameters in class SelectParentContentControl
        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 java.lang.String getParentContentPrimaryName​(java.lang.String currentParentContentValue,
                                                               TableSource source,
                                                               java.lang.String primaryNameFieldName)
                                                        throws PortalException
        Description copied from class: SelectParentContentControl
        Returns the primary name for the given value.
        Overrides:
        getParentContentPrimaryName in class SelectParentContentControl
        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