org.pushingpixels.flamingo.internal.ui.common
Class BasicScrollablePanelUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PanelUI
          extended by org.pushingpixels.flamingo.internal.ui.common.ScrollablePanelUI
              extended by org.pushingpixels.flamingo.internal.ui.common.BasicScrollablePanelUI

public class BasicScrollablePanelUI
extends ScrollablePanelUI

Basic UI for scrollable panel JScrollablePanel.


Nested Class Summary
protected  class BasicScrollablePanelUI.ScrollablePanelLayout
          Layout for the scrollable panel.
 
Field Summary
protected  JScrollablePanel scrollablePanel
          The associated scrollable panel.
 
Constructor Summary
BasicScrollablePanelUI()
           
 
Method Summary
protected  void configureLeftScrollerButtonAction()
           
protected  void configureRightScrollerButtonAction()
           
protected  JCommandButton createLeadingScroller()
           
protected  JCommandButton createTrailingScroller()
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  void installComponents()
           
protected  void installDefaults()
           
protected  void installListeners()
           
 void installUI(javax.swing.JComponent c)
           
 boolean isShowingScrollButtons()
           
 void removeScrollers()
           
 void scrollToIfNecessary(int startPosition, int span)
           
protected  void uninstallComponents()
           
protected  void uninstallDefaults()
           
protected  void uninstallListeners()
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scrollablePanel

protected JScrollablePanel scrollablePanel
The associated scrollable panel.

Constructor Detail

BasicScrollablePanelUI

public BasicScrollablePanelUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.ComponentUI

installListeners

protected void installListeners()

installComponents

protected void installComponents()

installDefaults

protected void installDefaults()

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI

uninstallDefaults

protected void uninstallDefaults()

uninstallComponents

protected void uninstallComponents()

uninstallListeners

protected void uninstallListeners()

createLeadingScroller

protected JCommandButton createLeadingScroller()

createTrailingScroller

protected JCommandButton createTrailingScroller()

removeScrollers

public void removeScrollers()

configureLeftScrollerButtonAction

protected void configureLeftScrollerButtonAction()

configureRightScrollerButtonAction

protected void configureRightScrollerButtonAction()

scrollToIfNecessary

public void scrollToIfNecessary(int startPosition,
                                int span)
Specified by:
scrollToIfNecessary in class ScrollablePanelUI

isShowingScrollButtons

public boolean isShowingScrollButtons()
Specified by:
isShowingScrollButtons in class ScrollablePanelUI