/[classpath]/classpath/javax/swing/plaf/basic/BasicToolBarUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicToolBarUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by mkoch, Fri Oct 22 12:44:01 2004 UTC revision 1.7 by mkoch, Fri Dec 24 09:53:03 2004 UTC
# Line 152  public class BasicToolBarUI extends Tool Line 152  public class BasicToolBarUI extends Tool
152    private transient int cachedOrientation;    private transient int cachedOrientation;
153    
154    /**    /**
155     * This method creates a new BasicToolBarUI object for the given JToolBar.     * This method creates a new <code>BasicToolBarUI</code> object for the given JToolBar.
156     */     */
157    public BasicToolBarUI()    public BasicToolBarUI()
158    {    {
159      super();      // Do nothing here.
160    }    }
161    
162    /**    /**
# Line 168  public class BasicToolBarUI extends Tool Line 168  public class BasicToolBarUI extends Tool
168     *     *
169     * @return Whether the JToolBar can dock.     * @return Whether the JToolBar can dock.
170     */     */
171    protected boolean canDock(Component c, Point p)    public boolean canDock(Component c, Point p)
172    {    {
173      if (areaOfClick(c, p) != -1)      return areaOfClick(c, p) != -1;
       return true;  
   
     return false;  
174    }    }
175    
176    /**    /**
# Line 937  public class BasicToolBarUI extends Tool Line 934  public class BasicToolBarUI extends Tool
934     * This is the MouseHandler class that allows the user to drag the JToolBar     * This is the MouseHandler class that allows the user to drag the JToolBar
935     * in and out of the parent and dock it if it can.     * in and out of the parent and dock it if it can.
936     */     */
937    protected class DockingListener implements MouseInputListener    public class DockingListener implements MouseInputListener
938    {    {
939      /** Whether the JToolBar is being dragged. */      /** Whether the JToolBar is being dragged. */
940      protected boolean isDragging;      protected boolean isDragging;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26