.. default-domain:: java .. highlight:: java .. package:: krpc.client.services.UI Scroll View =========== .. type:: public class ScrollView A view onto a panel that is larger than the space available for it, with scroll bars to move around it. Added to a :type:`Canvas` or a :type:`Panel`. .. note:: Add the elements to :meth:`ScrollView.getContent()`, not to the scroll view itself. Giving the content a layout and setting its size fitter to the preferred size is the simplest way to have it grow to hold what is put in it. | Base class: :type:`Object` .. container:: inherited-members .. rubric:: Inherited Members * From :type:`Object`: :meth:`getRectTransform `, :meth:`getLayoutElement `, :meth:`getVisible `, :meth:`setVisible `, :meth:`remove ` .. method:: Panel getContent() The panel that is scrolled, which the elements to show are added to. .. method:: boolean getHorizontal() .. method:: void setHorizontal(boolean value) Whether the view can be scrolled from side to side. .. method:: boolean getVertical() .. method:: void setVertical(boolean value) Whether the view can be scrolled up and down.