|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.plaf.ComponentUI | +--javax.swing.plaf.ToolBarUI | +--javax.swing.plaf.basic.BasicToolBarUI
A Basic L&F implementation of ToolBarUI. This implementation is a "combined" view/controller.
Inner Class Summary | |
class |
BasicToolBarUI.DockingListener
This inner class is marked "public" due to a compiler bug. |
protected class |
BasicToolBarUI.DragWindow
|
protected class |
BasicToolBarUI.FrameListener
|
protected class |
BasicToolBarUI.PropertyListener
|
protected class |
BasicToolBarUI.ToolBarContListener
|
protected class |
BasicToolBarUI.ToolBarFocusListener
|
Field Summary | |
protected Color |
dockingBorderColor
|
protected Color |
dockingColor
|
protected MouseInputListener |
dockingListener
|
protected KeyStroke |
downKey
Deprecated. As of Java 2 platform v1.3. |
protected BasicToolBarUI.DragWindow |
dragWindow
|
protected Color |
floatingBorderColor
|
protected Color |
floatingColor
|
protected int |
focusedCompIndex
|
protected KeyStroke |
leftKey
Deprecated. As of Java 2 platform v1.3. |
protected PropertyChangeListener |
propertyListener
|
protected KeyStroke |
rightKey
Deprecated. As of Java 2 platform v1.3. |
protected JToolBar |
toolBar
|
protected ContainerListener |
toolBarContListener
|
protected FocusListener |
toolBarFocusListener
|
protected KeyStroke |
upKey
Deprecated. As of Java 2 platform v1.3. |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
BasicToolBarUI()
|
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, paint, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected JToolBar toolBar
protected BasicToolBarUI.DragWindow dragWindow
protected int focusedCompIndex
protected Color dockingColor
protected Color floatingColor
protected Color dockingBorderColor
protected Color floatingBorderColor
protected MouseInputListener dockingListener
protected PropertyChangeListener propertyListener
protected ContainerListener toolBarContListener
protected FocusListener toolBarFocusListener
protected KeyStroke upKey
protected KeyStroke downKey
protected KeyStroke leftKey
protected KeyStroke rightKey
Constructor Detail |
public BasicToolBarUI()
Method Detail |
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
installUI
in class ComponentUI
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
protected void installDefaults()
protected void uninstallDefaults()
protected void installComponents()
protected void uninstallComponents()
protected void installListeners()
protected void uninstallListeners()
protected void installKeyboardActions()
protected void uninstallKeyboardActions()
protected void navigateFocusedComp(int direction)
protected JFrame createFloatingFrame(JToolBar toolbar)
protected BasicToolBarUI.DragWindow createDragWindow(JToolBar toolbar)
public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class ComponentUI
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class ComponentUI
public Dimension getMaximumSize(JComponent c)
getMaximumSize
in class ComponentUI
public void setFloatingLocation(int x, int y)
public boolean isFloating()
public void setFloating(boolean b, Point p)
public void setOrientation(int orientation)
public Color getDockingColor()
public void setDockingColor(Color c)
public Color getFloatingColor()
public void setFloatingColor(Color c)
public boolean canDock(Component c, Point p)
protected void dragTo(Point position, Point origin)
protected void floatAt(Point position, Point origin)
protected ContainerListener createToolBarContListener()
protected FocusListener createToolBarFocusListener()
protected PropertyChangeListener createPropertyListener()
protected MouseInputListener createDockingListener()
protected WindowListener createFrameListener()
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.