Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
javax.swing.plaf.basic
public class: BasicScrollPaneUI [javadoc | source]
java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.ScrollPaneUI
         javax.swing.plaf.basic.BasicScrollPaneUI

All Implemented Interfaces:
    ScrollPaneConstants

Direct Known Subclasses:
    SynthScrollPaneUI, MetalScrollPaneUI

A default L&F implementation of ScrollPaneUI.
Nested Class Summary:
public class  BasicScrollPaneUI.ViewportChangeHandler  Listener for viewport events. 
public class  BasicScrollPaneUI.HSBChangeListener  Horizontal scrollbar listener. 
public class  BasicScrollPaneUI.VSBChangeListener  Vertical scrollbar listener. 
protected class  BasicScrollPaneUI.MouseWheelHandler  MouseWheelHandler is an inner class which implements the MouseWheelListener interface. MouseWheelHandler responds to MouseWheelEvents by scrolling the JScrollPane appropriately. If the scroll pane's isWheelScrollingEnabled method returns false, no scrolling occurs. 
public class  BasicScrollPaneUI.PropertyChangeHandler   
class  BasicScrollPaneUI.Handler   
Field Summary
protected  JScrollPane scrollpane     
protected  ChangeListener vsbChangeListener     
protected  ChangeListener hsbChangeListener     
protected  ChangeListener viewportChangeListener     
protected  PropertyChangeListener spPropertyChangeListener     
Method from javax.swing.plaf.basic.BasicScrollPaneUI Summary:
createHSBChangeListener,   createMouseWheelListener,   createPropertyChangeListener,   createUI,   createVSBChangeListener,   createViewportChangeListener,   getBaseline,   getBaselineResizeBehavior,   getInputMap,   getMaximumSize,   installDefaults,   installKeyboardActions,   installListeners,   installUI,   loadActionMap,   paint,   syncScrollPaneWithViewport,   uninstallDefaults,   uninstallKeyboardActions,   uninstallListeners,   uninstallUI,   updateColumnHeader,   updateRowHeader,   updateScrollBarDisplayPolicy,   updateViewport
Methods from javax.swing.plaf.ComponentUI:
contains,   createUI,   getAccessibleChild,   getAccessibleChildrenCount,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installUI,   paint,   uninstallUI,   update
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.basic.BasicScrollPaneUI Detail:
 protected ChangeListener createHSBChangeListener() 
 protected MouseWheelListener createMouseWheelListener() 
    Creates an instance of MouseWheelListener, which is added to the JScrollPane by installUI(). The returned MouseWheelListener is used to handle mouse wheel-driven scrolling.
 protected PropertyChangeListener createPropertyChangeListener() 
    Creates an instance of PropertyChangeListener that's added to the JScrollPane by installUI(). Subclasses can override this method to return a custom PropertyChangeListener, e.g.
    class MyScrollPaneUI extends BasicScrollPaneUI {
       protected PropertyChangeListener createPropertyChangeListener() {
           return new MyPropertyChangeListener();
       }
       public class MyPropertyChangeListener extends PropertyChangeListener {
           public void propertyChange(PropertyChangeEvent e) {
               if (e.getPropertyName().equals("viewport")) {
                   // do some extra work when the viewport changes
               }
               super.propertyChange(e);
           }
       }
    }
    
 public static ComponentUI createUI(JComponent x) 
 protected ChangeListener createVSBChangeListener() 
 protected ChangeListener createViewportChangeListener() 
 public int getBaseline(JComponent c,
    int width,
    int height) 
    Returns the baseline.
 public BaselineResizeBehavior getBaselineResizeBehavior(JComponent c) 
    Returns an enum indicating how the baseline of the component changes as the size changes.
 InputMap getInputMap(int condition) 
 public Dimension getMaximumSize(JComponent c) 
 protected  void installDefaults(JScrollPane scrollpane) 
 protected  void installKeyboardActions(JScrollPane c) 
 protected  void installListeners(JScrollPane c) 
 public  void installUI(JComponent x) 
 static  void loadActionMap(LazyActionMap map) 
 public  void paint(Graphics g,
    JComponent c) 
 protected  void syncScrollPaneWithViewport() 
 protected  void uninstallDefaults(JScrollPane c) 
 protected  void uninstallKeyboardActions(JScrollPane c) 
 protected  void uninstallListeners(JComponent c) 
 public  void uninstallUI(JComponent c) 
 protected  void updateColumnHeader(PropertyChangeEvent e) 
 protected  void updateRowHeader(PropertyChangeEvent e) 
 protected  void updateScrollBarDisplayPolicy(PropertyChangeEvent e) 
 protected  void updateViewport(PropertyChangeEvent e)