Java Doc for BasicScrollPaneUI.java in  » 6.0-JDK-Core » swing » javax » swing » plaf » basic » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » swing » javax.swing.plaf.basic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.ScrollPaneUI
         javax.swing.plaf.basic.BasicScrollPaneUI

All known Subclasses:   javax.swing.plaf.synth.SynthScrollPaneUI,  javax.swing.plaf.metal.MetalScrollPaneUI,
BasicScrollPaneUI
public class BasicScrollPaneUI extends ScrollPaneUI implements ScrollPaneConstants(Code)
A default L&F implementation of ScrollPaneUI.
version:
   1.79 05/05/07
author:
   Hans Muller

Inner Class :public class ViewportChangeHandler implements ChangeListener
Inner Class :public class HSBChangeListener implements ChangeListener
Inner Class :public class VSBChangeListener implements ChangeListener
Inner Class :protected class MouseWheelHandler implements MouseWheelListener
Inner Class :public class PropertyChangeHandler implements PropertyChangeListener
Inner Class :class Handler implements ChangeListener,PropertyChangeListener,MouseWheelListener

Field Summary
protected  ChangeListenerhsbChangeListener
    
protected  JScrollPanescrollpane
    
protected  PropertyChangeListenerspPropertyChangeListener
    
protected  ChangeListenerviewportChangeListener
    
protected  ChangeListenervsbChangeListener
    


Method Summary
protected  ChangeListenercreateHSBChangeListener()
    
protected  MouseWheelListenercreateMouseWheelListener()
     Creates an instance of MouseWheelListener, which is added to the JScrollPane by installUI().
protected  PropertyChangeListenercreatePropertyChangeListener()
     Creates an instance of PropertyChangeListener that's added to the JScrollPane by installUI().
public static  ComponentUIcreateUI(JComponent x)
    
protected  ChangeListenercreateVSBChangeListener()
    
protected  ChangeListenercreateViewportChangeListener()
    
public  intgetBaseline(JComponent c, int width, int height)
     Returns the baseline.
public  Component.BaselineResizeBehaviorgetBaselineResizeBehavior(JComponent c)
     Returns an enum indicating how the baseline of the component changes as the size changes.
 InputMapgetInputMap(int condition)
    
public  DimensiongetMaximumSize(JComponent c)
    
protected  voidinstallDefaults(JScrollPane scrollpane)
    
protected  voidinstallKeyboardActions(JScrollPane c)
    
protected  voidinstallListeners(JScrollPane c)
    
public  voidinstallUI(JComponent x)
    
static  voidloadActionMap(LazyActionMap map)
    
public  voidpaint(Graphics g, JComponent c)
    
protected  voidsyncScrollPaneWithViewport()
    
protected  voiduninstallDefaults(JScrollPane c)
    
protected  voiduninstallKeyboardActions(JScrollPane c)
    
protected  voiduninstallListeners(JComponent c)
    
public  voiduninstallUI(JComponent c)
    
protected  voidupdateColumnHeader(PropertyChangeEvent e)
    
protected  voidupdateRowHeader(PropertyChangeEvent e)
    
protected  voidupdateScrollBarDisplayPolicy(PropertyChangeEvent e)
    
protected  voidupdateViewport(PropertyChangeEvent e)
    

Field Detail
hsbChangeListener
protected ChangeListener hsbChangeListener(Code)



scrollpane
protected JScrollPane scrollpane(Code)



spPropertyChangeListener
protected PropertyChangeListener spPropertyChangeListener(Code)



viewportChangeListener
protected ChangeListener viewportChangeListener(Code)



vsbChangeListener
protected ChangeListener vsbChangeListener(Code)





Method Detail
createHSBChangeListener
protected ChangeListener createHSBChangeListener()(Code)



createMouseWheelListener
protected MouseWheelListener createMouseWheelListener()(Code)
Creates an instance of MouseWheelListener, which is added to the JScrollPane by installUI(). The returned MouseWheelListener is used to handle mouse wheel-driven scrolling. MouseWheelListener which implements wheel-driven scrolling
See Also:   BasicScrollPaneUI.installUI
See Also:   MouseWheelHandler
since:
   1.4



createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener()(Code)
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);
 }
 }
 }
 

See Also:   java.beans.PropertyChangeListener
See Also:   BasicScrollPaneUI.installUI



createUI
public static ComponentUI createUI(JComponent x)(Code)



createVSBChangeListener
protected ChangeListener createVSBChangeListener()(Code)



createViewportChangeListener
protected ChangeListener createViewportChangeListener()(Code)



getBaseline
public int getBaseline(JComponent c, int width, int height)(Code)
Returns the baseline.
throws:
  NullPointerException -
throws:
  IllegalArgumentException -
See Also:   javax.swing.JComponent.getBaseline(intint)
since:
   1.6



getBaselineResizeBehavior
public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)(Code)
Returns an enum indicating how the baseline of the component changes as the size changes.
throws:
  NullPointerException -
See Also:   javax.swing.JComponent.getBaseline(intint)
since:
   1.6



getInputMap
InputMap getInputMap(int condition)(Code)



getMaximumSize
public Dimension getMaximumSize(JComponent c)(Code)
new Dimension(Short.MAX_VALUE, Short.MAX_VALUE)



installDefaults
protected void installDefaults(JScrollPane scrollpane)(Code)



installKeyboardActions
protected void installKeyboardActions(JScrollPane c)(Code)



installListeners
protected void installListeners(JScrollPane c)(Code)



installUI
public void installUI(JComponent x)(Code)



loadActionMap
static void loadActionMap(LazyActionMap map)(Code)



paint
public void paint(Graphics g, JComponent c)(Code)



syncScrollPaneWithViewport
protected void syncScrollPaneWithViewport()(Code)



uninstallDefaults
protected void uninstallDefaults(JScrollPane c)(Code)



uninstallKeyboardActions
protected void uninstallKeyboardActions(JScrollPane c)(Code)



uninstallListeners
protected void uninstallListeners(JComponent c)(Code)



uninstallUI
public void uninstallUI(JComponent c)(Code)



updateColumnHeader
protected void updateColumnHeader(PropertyChangeEvent e)(Code)



updateRowHeader
protected void updateRowHeader(PropertyChangeEvent e)(Code)



updateScrollBarDisplayPolicy
protected void updateScrollBarDisplayPolicy(PropertyChangeEvent e)(Code)



updateViewport
protected void updateViewport(PropertyChangeEvent e)(Code)




Methods inherited from javax.swing.plaf.ComponentUI
public boolean contains(JComponent c, int x, int y)(Code)(Java Doc)
public static ComponentUI createUI(JComponent c)(Code)(Java Doc)
public Accessible getAccessibleChild(JComponent c, int i)(Code)(Java Doc)
public int getAccessibleChildrenCount(JComponent c)(Code)(Java Doc)
public int getBaseline(JComponent c, int width, int height)(Code)(Java Doc)
public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)(Code)(Java Doc)
public Dimension getMaximumSize(JComponent c)(Code)(Java Doc)
public Dimension getMinimumSize(JComponent c)(Code)(Java Doc)
public Dimension getPreferredSize(JComponent c)(Code)(Java Doc)
public void installUI(JComponent c)(Code)(Java Doc)
public void paint(Graphics g, JComponent c)(Code)(Java Doc)
public void uninstallUI(JComponent c)(Code)(Java Doc)
public void update(Graphics g, JComponent c)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.