com.leafdigital.ui.api
Interface ScrollPanel

All Superinterfaces:
Panel, Widget, WidgetParent

public interface ScrollPanel
extends Panel

A panel with a vertical scrollbar which contains one widget.


Method Summary
 void set(Widget w)
          Sets the inner widget.
 void setOutline(boolean outline)
           
 void setPreferredSize(int width, int height)
          Sets the preferred size of the panel.
 void setScrollAmount(int amount)
          Sets how many pixels the panel will scroll for a single click of an arrow.
 
Methods inherited from interface com.leafdigital.ui.api.Panel
remove, removeAll, setBorder
 
Methods inherited from interface com.leafdigital.ui.api.Widget
getID, getOwner, informClosed, isVisible, setOwner, setVisible
 
Methods inherited from interface com.leafdigital.ui.api.WidgetParent
getWidgets
 

Method Detail

set

void set(Widget w)
Sets the inner widget.

Parameters:
w - New widget or null for none

setPreferredSize

void setPreferredSize(int width,
                      int height)
Sets the preferred size of the panel.

Parameters:
width - Width
height - Height

setScrollAmount

void setScrollAmount(int amount)
Sets how many pixels the panel will scroll for a single click of an arrow.

Parameters:
amount - Amount in pixels

setOutline

void setOutline(boolean outline)
Parameters:
outline - If true (default), uses 3D outline as per platform defaults. If false, has no drawn outline.


Copyright © 2011 Samuel Marshall. All rights reserved.