--- a/jdk/src/share/classes/javax/swing/plaf/metal/MetalToolBarUI.java Fri Jun 27 10:26:39 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/metal/MetalToolBarUI.java Mon Jun 30 16:32:36 2014 +0400
@@ -158,6 +158,12 @@
return false;
}
+ /**
+ * Constructs an instance of {@code MetalToolBarUI}.
+ *
+ * @param c a component
+ * @return an instance of {@code MetalToolBarUI}
+ */
public static ComponentUI createUI( JComponent c )
{
return new MetalToolBarUI();
@@ -269,6 +275,11 @@
return new MetalDockingListener( toolBar );
}
+ /**
+ * Sets the offset of the mouse cursor inside the DragWindow.
+ *
+ * @param p the offset
+ */
protected void setDragOffset(Point p) {
if (!GraphicsEnvironment.isHeadless()) {
if (dragWindow == null) {
@@ -346,17 +357,29 @@
}
}
- // No longer used. Cannot remove for compatibility reasons
+ /**
+ * No longer used. The class cannot be removed for compatibility reasons.
+ */
protected class MetalContainerListener
extends BasicToolBarUI.ToolBarContListener {}
- // No longer used. Cannot remove for compatibility reasons
+ /**
+ * No longer used. The class cannot be removed for compatibility reasons.
+ */
protected class MetalRolloverListener
extends BasicToolBarUI.PropertyListener {}
+ /**
+ * {@code DockingListener} for {@code MetalToolBarUI}.
+ */
protected class MetalDockingListener extends DockingListener {
private boolean pressedInBumps = false;
+ /**
+ * Constructs the {@code MetalDockingListener}.
+ *
+ * @param t an instance of {@code JToolBar}
+ */
public MetalDockingListener(JToolBar t) {
super(t);
}