82 |
*/ |
*/ |
83 |
public class BasicToolBarUI extends ToolBarUI implements SwingConstants |
public class BasicToolBarUI extends ToolBarUI implements SwingConstants |
84 |
{ |
{ |
85 |
/** Static owner of all DragWindows. */ |
/** Static owner of all DragWindows. |
86 |
private static JFrame owner = new JFrame(); |
* This is package-private to avoid an accessor method. */ |
87 |
|
static JFrame owner = new JFrame(); |
88 |
|
|
89 |
/** The border used when the JToolBar is in nonrollover mode. */ |
/** The border used when the JToolBar is in nonrollover mode. */ |
90 |
private static Border nonRolloverBorder; |
private static Border nonRolloverBorder; |
95 |
/** The last known BorderLayout constraint before floating. */ |
/** The last known BorderLayout constraint before floating. */ |
96 |
protected String constraintBeforeFloating; |
protected String constraintBeforeFloating; |
97 |
|
|
98 |
/** The last known orientation of the JToolBar before floating. */ |
/** The last known orientation of the JToolBar before floating. |
99 |
private int lastGoodOrientation; |
* This is package-private to avoid an accessor method. */ |
100 |
|
int lastGoodOrientation; |
101 |
|
|
102 |
/** The color of the border when it is dockable. */ |
/** The color of the border when it is dockable. */ |
103 |
protected Color dockingBorderColor; |
protected Color dockingBorderColor; |
138 |
*/ |
*/ |
139 |
private transient Window floatFrame; |
private transient Window floatFrame; |
140 |
|
|
141 |
/** The original parent of the JToolBar. */ |
/** The original parent of the JToolBar. |
142 |
private transient Container origParent; |
* This is package-private to avoid an accessor method. */ |
143 |
|
transient Container origParent; |
144 |
/** A hashtable of components and their original borders. */ |
|
145 |
private transient Hashtable borders; |
/** A hashtable of components and their original borders. |
146 |
|
* This is package-private to avoid an accessor method. */ |
147 |
|
transient Hashtable borders; |
148 |
|
|
149 |
/** A window listener for the floatable frame. */ |
/** A window listener for the floatable frame. */ |
150 |
private transient WindowListener windowListener; |
private transient WindowListener windowListener; |
151 |
|
|
152 |
/** A set of cached bounds of the JToolBar. */ |
/** A set of cached bounds of the JToolBar. |
153 |
private transient Dimension cachedBounds; |
* This is package-private to avoid an accessor method. */ |
154 |
|
transient Dimension cachedBounds; |
155 |
/** The cached orientation of the JToolBar. */ |
|
156 |
private transient int cachedOrientation; |
/** The cached orientation of the JToolBar. |
157 |
|
* This is package-private to avoid an accessor method. */ |
158 |
|
transient int cachedOrientation; |
159 |
|
|
160 |
/** |
/** |
161 |
* This method creates a new <code>BasicToolBarUI</code> object for the given JToolBar. |
* This method creates a new <code>BasicToolBarUI</code> object for the given JToolBar. |
1092 |
|
|
1093 |
/** |
/** |
1094 |
* Creates a new DragWindow object. |
* Creates a new DragWindow object. |
1095 |
|
* This is package-private to avoid an accessor method. |
1096 |
*/ |
*/ |
1097 |
private DragWindow() |
DragWindow() |
1098 |
{ |
{ |
1099 |
super(owner); |
super(owner); |
1100 |
} |
} |