Class HolderWidgetInstance

  • All Implemented Interfaces:
    Serializable

    public class HolderWidgetInstance
    extends WidgetInstance
    Holder Widget instance is a concrete derivation of a WidgetInstance.
    Since:
    10.4.0
    Version:
    $Revision: 21230 $ $Date: 2018-04-24 19:07:57 -0300 (Tue, 24 Apr 2018) $
    See Also:
    Serialized Form
    • Constructor Detail

      • HolderWidgetInstance

        public HolderWidgetInstance​(String widgetContentId)
        Creates a new widget instance for the specified widget.
        Parameters:
        widgetContentId - the content identifier of the widget.
        Since:
        10.2.0
    • Method Detail

      • getHolder

        public WidgetInstanceHolder getHolder()
        Returns the holder on which this widget instance is.
        Returns:
        this widget instance's holder.
        Since:
        10.2.0
      • getHolderPosition

        public int getHolderPosition()
        Returns the position of this widget instance on its holder. When displayed on a holder, its widget instances are ordered by this value.
        Returns:
        the position.
        Since:
        10.2.0
      • moveTo

        public void moveTo​(WidgetInstanceHolder destHolder,
                           int position)
                    throws PortalException
        Moves this widget instance to a holder at the specified position. The destination holder must be of same type of the this widget instance's holder.
        Parameters:
        destHolder - the destination holder.
        position - the position for the widget instance in the destination holder.
        Throws:
        PortalException
        Since:
        10.2.0