Java Doc for MetalToolBarUI.java in  » 6.0-JDK-Core » swing » javax » swing » plaf » metal » 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.metal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.ToolBarUI
         javax.swing.plaf.basic.BasicToolBarUI
            javax.swing.plaf.metal.MetalToolBarUI

MetalToolBarUI
public class MetalToolBarUI extends BasicToolBarUI (Code)
A Metal Look and Feel implementation of ToolBarUI. This implementation is a "combined" view/controller.


version:
   1.48 05/05/07
author:
   Jeff Shapiro


Inner Class :protected class MetalContainerListener extends BasicToolBarUI.ToolBarContListener
Inner Class :protected class MetalRolloverListener extends BasicToolBarUI.PropertyListener
Inner Class :protected class MetalDockingListener extends DockingListener

Field Summary
protected  ContainerListenercontListener
     This protected field is implemenation specific.
protected  PropertyChangeListenerrolloverListener
     This protected field is implemenation specific.


Method Summary
protected  ContainerListenercreateContainerListener()
     Creates a container listener that will be added to the JToolBar.
protected  MouseInputListenercreateDockingListener()
    
protected  BordercreateNonRolloverBorder()
    
protected  BordercreateRolloverBorder()
    
protected  PropertyChangeListenercreateRolloverListener()
     Creates a property change listener that will be added to the JToolBar.
public static  ComponentUIcreateUI(JComponent c)
    
static  booleandoesMenuBarBorderToolBar(JMenuBar c)
     Returns true if the passed in JMenuBar is above a horizontal JToolBar.
static synchronized  ObjectfindRegisteredComponentOfType(JComponent from, Class target)
     Finds a previously registered component of class target that shares the JRootPane ancestor of from.
protected  voidinstallListeners()
    
public  voidinstallUI(JComponent c)
    
static synchronized  voidregister(JComponent c)
     Registers the specified component.
protected  voidsetBorderToNonRollover(Component c)
    
protected  voidsetDragOffset(Point p)
    
protected  voiduninstallListeners()
    
public  voiduninstallUI(JComponent c)
    
static synchronized  voidunregister(JComponent c)
     Unregisters the specified component.
public  voidupdate(Graphics g, JComponent c)
     If necessary paints the background of the component, then invokes paint.

Field Detail
contListener
protected ContainerListener contListener(Code)
This protected field is implemenation specific. Do not access directly or override. Use the create method instead.
See Also:   MetalToolBarUI.createContainerListener



rolloverListener
protected PropertyChangeListener rolloverListener(Code)
This protected field is implemenation specific. Do not access directly or override. Use the create method instead.
See Also:   MetalToolBarUI.createRolloverListener





Method Detail
createContainerListener
protected ContainerListener createContainerListener()(Code)
Creates a container listener that will be added to the JToolBar. If this method returns null then it will not be added to the toolbar. an instance of a ContainerListener or null



createDockingListener
protected MouseInputListener createDockingListener()(Code)



createNonRolloverBorder
protected Border createNonRolloverBorder()(Code)



createRolloverBorder
protected Border createRolloverBorder()(Code)



createRolloverListener
protected PropertyChangeListener createRolloverListener()(Code)
Creates a property change listener that will be added to the JToolBar. If this method returns null then it will not be added to the toolbar. an instance of a PropertyChangeListener or null



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



doesMenuBarBorderToolBar
static boolean doesMenuBarBorderToolBar(JMenuBar c)(Code)
Returns true if the passed in JMenuBar is above a horizontal JToolBar.



findRegisteredComponentOfType
static synchronized Object findRegisteredComponentOfType(JComponent from, Class target)(Code)
Finds a previously registered component of class target that shares the JRootPane ancestor of from.



installListeners
protected void installListeners()(Code)



installUI
public void installUI(JComponent c)(Code)



register
static synchronized void register(JComponent c)(Code)
Registers the specified component.



setBorderToNonRollover
protected void setBorderToNonRollover(Component c)(Code)



setDragOffset
protected void setDragOffset(Point p)(Code)



uninstallListeners
protected void uninstallListeners()(Code)



uninstallUI
public void uninstallUI(JComponent c)(Code)



unregister
static synchronized void unregister(JComponent c)(Code)
Unregisters the specified component.



update
public void update(Graphics g, JComponent c)(Code)
If necessary paints the background of the component, then invokes paint.
Parameters:
  g - Graphics to paint to
Parameters:
  c - JComponent painting on
throws:
  NullPointerException - if g or c isnull
See Also:   javax.swing.plaf.ComponentUI.update
See Also:   javax.swing.plaf.ComponentUI.paint
since:
   1.5



Fields inherited from javax.swing.plaf.basic.BasicToolBarUI
protected String constraintBeforeFloating(Code)(Java Doc)
protected Color dockingBorderColor(Code)(Java Doc)
protected Color dockingColor(Code)(Java Doc)
protected MouseInputListener dockingListener(Code)(Java Doc)
protected KeyStroke downKey(Code)(Java Doc)
protected DragWindow dragWindow(Code)(Java Doc)
protected Color floatingBorderColor(Code)(Java Doc)
protected Color floatingColor(Code)(Java Doc)
protected int focusedCompIndex(Code)(Java Doc)
protected KeyStroke leftKey(Code)(Java Doc)
protected PropertyChangeListener propertyListener(Code)(Java Doc)
protected KeyStroke rightKey(Code)(Java Doc)
protected JToolBar toolBar(Code)(Java Doc)
protected ContainerListener toolBarContListener(Code)(Java Doc)
protected FocusListener toolBarFocusListener(Code)(Java Doc)
protected KeyStroke upKey(Code)(Java Doc)

Methods inherited from javax.swing.plaf.basic.BasicToolBarUI
public boolean canDock(Component c, Point p)(Code)(Java Doc)
protected MouseInputListener createDockingListener()(Code)(Java Doc)
protected DragWindow createDragWindow(JToolBar toolbar)(Code)(Java Doc)
protected JFrame createFloatingFrame(JToolBar toolbar)(Code)(Java Doc)
protected RootPaneContainer createFloatingWindow(JToolBar toolbar)(Code)(Java Doc)
protected WindowListener createFrameListener()(Code)(Java Doc)
protected Border createNonRolloverBorder()(Code)(Java Doc)
protected PropertyChangeListener createPropertyListener()(Code)(Java Doc)
protected Border createRolloverBorder()(Code)(Java Doc)
protected ContainerListener createToolBarContListener()(Code)(Java Doc)
protected FocusListener createToolBarFocusListener()(Code)(Java Doc)
public static ComponentUI createUI(JComponent c)(Code)(Java Doc)
protected void dragTo(Point position, Point origin)(Code)(Java Doc)
protected void floatAt(Point position, Point origin)(Code)(Java Doc)
public Color getDockingColor()(Code)(Java Doc)
public Color getFloatingColor()(Code)(Java Doc)
protected Border getNonRolloverBorder(AbstractButton b)(Code)(Java Doc)
protected Border getRolloverBorder(AbstractButton b)(Code)(Java Doc)
protected void installComponents()(Code)(Java Doc)
protected void installDefaults()(Code)(Java Doc)
protected void installKeyboardActions()(Code)(Java Doc)
protected void installListeners()(Code)(Java Doc)
protected void installNonRolloverBorders(JComponent c)(Code)(Java Doc)
protected void installNormalBorders(JComponent c)(Code)(Java Doc)
protected void installRolloverBorders(JComponent c)(Code)(Java Doc)
public void installUI(JComponent c)(Code)(Java Doc)
public boolean isFloating()(Code)(Java Doc)
public boolean isRolloverBorders()(Code)(Java Doc)
protected void navigateFocusedComp(int direction)(Code)(Java Doc)
protected void paintDragWindow(Graphics g)(Code)(Java Doc)
protected void setBorderToNonRollover(Component c)(Code)(Java Doc)
protected void setBorderToNormal(Component c)(Code)(Java Doc)
protected void setBorderToRollover(Component c)(Code)(Java Doc)
public void setDockingColor(Color c)(Code)(Java Doc)
public void setFloating(boolean b, Point p)(Code)(Java Doc)
public void setFloatingColor(Color c)(Code)(Java Doc)
public void setFloatingLocation(int x, int y)(Code)(Java Doc)
public void setOrientation(int orientation)(Code)(Java Doc)
public void setRolloverBorders(boolean rollover)(Code)(Java Doc)
protected void uninstallComponents()(Code)(Java Doc)
protected void uninstallDefaults()(Code)(Java Doc)
protected void uninstallKeyboardActions()(Code)(Java Doc)
protected void uninstallListeners()(Code)(Java Doc)
public void uninstallUI(JComponent c)(Code)(Java Doc)


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.