javax.swing.plaf.basic
Class BasicToolBarUI
java.lang.Object
|
+--javax.swing.plaf.ComponentUI
|
+--javax.swing.plaf.ToolBarUI
|
+--javax.swing.plaf.basic.BasicToolBarUI
- Direct Known Subclasses:
- MetalToolBarUI
- public class BasicToolBarUI
- extends ToolBarUI
- implements SwingConstants
A Basic L&F implementation of ToolBarUI. This implementation
is a "combined" view/controller.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
toolBar
protected JToolBar toolBar
dragWindow
protected BasicToolBarUI.DragWindow dragWindow
focusedCompIndex
protected int focusedCompIndex
dockingColor
protected Color dockingColor
floatingColor
protected Color floatingColor
dockingBorderColor
protected Color dockingBorderColor
floatingBorderColor
protected Color floatingBorderColor
dockingListener
protected MouseInputListener dockingListener
propertyListener
protected PropertyChangeListener propertyListener
toolBarContListener
protected ContainerListener toolBarContListener
toolBarFocusListener
protected FocusListener toolBarFocusListener
upKey
protected KeyStroke upKey
downKey
protected KeyStroke downKey
leftKey
protected KeyStroke leftKey
rightKey
protected KeyStroke rightKey
BasicToolBarUI
public BasicToolBarUI()
createUI
public static ComponentUI createUI(JComponent c)
installUI
public void installUI(JComponent c)
- Overrides:
- installUI in class ComponentUI
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
- uninstallUI in class ComponentUI
installDefaults
protected void installDefaults()
uninstallDefaults
protected void uninstallDefaults()
installComponents
protected void installComponents()
uninstallComponents
protected void uninstallComponents()
installListeners
protected void installListeners()
uninstallListeners
protected void uninstallListeners()
installKeyboardActions
protected void installKeyboardActions()
uninstallKeyboardActions
protected void uninstallKeyboardActions()
navigateFocusedComp
protected void navigateFocusedComp(int direction)
createFloatingFrame
protected JFrame createFloatingFrame(JToolBar toolbar)
createDragWindow
protected BasicToolBarUI.DragWindow createDragWindow(JToolBar toolbar)
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
- getMinimumSize in class ComponentUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
- getPreferredSize in class ComponentUI
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
- getMaximumSize in class ComponentUI
setFloatingLocation
public void setFloatingLocation(int x,
int y)
isFloating
public boolean isFloating()
setFloating
public void setFloating(boolean b,
Point p)
setOrientation
public void setOrientation(int orientation)
getDockingColor
public Color getDockingColor()
- Gets the color displayed when over a docking area
setDockingColor
public void setDockingColor(Color c)
- Sets the color displayed when over a docking area
getFloatingColor
public Color getFloatingColor()
- Gets the color displayed when over a floating area
setFloatingColor
public void setFloatingColor(Color c)
- Sets the color displayed when over a floating area
canDock
public boolean canDock(Component c,
Point p)
dragTo
protected void dragTo(Point position,
Point origin)
floatAt
protected void floatAt(Point position,
Point origin)
createToolBarContListener
protected ContainerListener createToolBarContListener()
createToolBarFocusListener
protected FocusListener createToolBarFocusListener()
createPropertyListener
protected PropertyChangeListener createPropertyListener()
createDockingListener
protected MouseInputListener createDockingListener()
createFrameListener
protected WindowListener createFrameListener()
Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.