1 |
/* BasicSplitPaneDivider.java -- |
/* BasicSplitPaneDivider.java -- |
2 |
Copyright (C) 2003, 2004 Free Software Foundation, Inc. |
Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
157 |
/** |
/** |
158 |
* Keeps track of where the divider should be placed when using one touch |
* Keeps track of where the divider should be placed when using one touch |
159 |
* expand buttons. |
* expand buttons. |
160 |
|
* This is package-private to avoid an accessor method. |
161 |
*/ |
*/ |
162 |
private transient int currentDividerLocation = 1; |
transient int currentDividerLocation = 1; |
163 |
|
|
164 |
/** DOCUMENT ME! */ |
/** DOCUMENT ME! */ |
165 |
private transient Border tmpBorder = new Border() |
private transient Border tmpBorder = new Border() |
494 |
* using one touch expand buttons. Location 0 is the left (or top) most |
* using one touch expand buttons. Location 0 is the left (or top) most |
495 |
* location. Location 1 is the middle. Location 2 is the right (or bottom) |
* location. Location 1 is the middle. Location 2 is the right (or bottom) |
496 |
* most location. |
* most location. |
497 |
|
* This is package-private to avoid an accessor method. |
498 |
* |
* |
499 |
* @param locationIndex The location to move to. |
* @param locationIndex The location to move to. |
500 |
*/ |
*/ |
501 |
private void moveDividerTo(int locationIndex) |
void moveDividerTo(int locationIndex) |
502 |
{ |
{ |
503 |
Insets insets = splitPane.getInsets(); |
Insets insets = splitPane.getInsets(); |
504 |
switch (locationIndex) |
switch (locationIndex) |