|
@@ -3,8 +3,6 @@ |
3 |
3 |
|
|
4 |
4 |
|
import java.util.*; |
5 |
5 |
|
|
6 |
|
- |
import com.google.gwt.user.client.*; |
7 |
|
- |
import com.google.gwt.user.client.ui.*; |
8 |
6 |
|
import org.litesoft.GWT.client.*; |
9 |
7 |
|
import org.litesoft.GWT.client.widgets.*; |
10 |
8 |
|
import org.litesoft.GWT.client.widgets.nonpublic.*; |
|
@@ -13,10 +11,12 @@ |
13 |
11 |
|
import org.litesoft.logger.*; |
14 |
12 |
|
import org.litesoft.logger.nonpublic.*; |
15 |
13 |
|
|
16 |
|
- |
public abstract class AbstractFloaterPanel extends AbstractSizeablePanel |
17 |
|
- |
implements UiPositionAndSizeAdjustable, |
18 |
|
- |
IndexedPanel, |
19 |
|
- |
SizeableSingleWidgetContainer |
|
14 |
+ |
import com.google.gwt.user.client.*; |
|
15 |
+ |
import com.google.gwt.user.client.ui.*; |
|
16 |
+ |
|
|
17 |
+ |
public abstract class AbstractFloaterPanel extends AbstractSizeablePanel implements UiPositionAndSizeAdjustable, |
|
18 |
+ |
IndexedPanel, |
|
19 |
+ |
SizeableSingleWidgetContainer |
20 |
20 |
|
{ |
21 |
21 |
|
public static final int BORDER_T_H = 7; |
22 |
22 |
|
public static final int BORDER_B_H = 7; |
|
@@ -335,8 +335,7 @@ |
335 |
335 |
|
} |
336 |
336 |
|
|
337 |
337 |
|
protected DeferableFloaterDimensionHandler mWidthHandler = // |
338 |
|
- |
new DeferableFloaterDimensionHandler( this, mLogger, getWidthHelper(), |
339 |
|
- |
createWidthPositionHandler() ); |
|
338 |
+ |
new DeferableFloaterDimensionHandler( this, mLogger, getWidthHelper(), createWidthPositionHandler() ); |
340 |
339 |
|
|
341 |
340 |
|
@Override |
342 |
341 |
|
public boolean setPrefferredHeight() |
|
@@ -401,8 +400,7 @@ |
401 |
400 |
|
} |
402 |
401 |
|
|
403 |
402 |
|
protected DeferableFloaterDimensionHandler mHeightHandler = // |
404 |
|
- |
new DeferableFloaterDimensionHandler( this, mLogger, getHeightHelper(), |
405 |
|
- |
createHeightPositionHandler() ); |
|
403 |
+ |
new DeferableFloaterDimensionHandler( this, mLogger, getHeightHelper(), createHeightPositionHandler() ); |
406 |
404 |
|
|
407 |
405 |
|
private boolean setTitleBarPrefferredHeight() |
408 |
406 |
|
{ |
|
@@ -428,8 +426,7 @@ |
428 |
426 |
|
|
429 |
427 |
|
private void setContentHeight( int pHeight ) |
430 |
428 |
|
{ |
431 |
|
- |
mHeightHandler.LLsetDimension( mTitleBarPanel.getOffsetHeight() + BORDER_TB_H + |
432 |
|
- |
setHeightOn( mContent, pHeight, mTsLeftContent, mTsRightContent ) ); |
|
429 |
+ |
mHeightHandler.LLsetDimension( mTitleBarPanel.getOffsetHeight() + BORDER_TB_H + setHeightOn( mContent, pHeight, mTsLeftContent, mTsRightContent ) ); |
433 |
430 |
|
} |
434 |
431 |
|
|
435 |
432 |
|
private int setHeightOn( Widget pWidget, int pHeight, Widget pLeftBorder, Widget pRightBorder ) |
|
@@ -745,8 +742,7 @@ |
745 |
742 |
|
DOM.setElementPropertyInt( zTD, "rowSpan", 2 ); |
746 |
743 |
|
} |
747 |
744 |
|
|
748 |
|
- |
private Widget addTD( Element pTR, String pBorderID, String pClassPlus, int pWidth, int pHeight, |
749 |
|
- |
DragGesture pResizer ) |
|
745 |
+ |
private Widget addTD( Element pTR, String pBorderID, String pClassPlus, int pWidth, int pHeight, DragGesture pResizer ) |
750 |
746 |
|
{ |
751 |
747 |
|
Border border = new Border( "litesoft-" + mForm + "Border" + pBorderID + pClassPlus ); |
752 |
748 |
|
border.addController( createBorderDragController( pResizer ) ); |
|
@@ -775,8 +771,7 @@ |
775 |
771 |
|
return addTD( pTR, pBorderID, "", 0, pHeight, pResizer ); |
776 |
772 |
|
} |
777 |
773 |
|
|
778 |
|
- |
private Widget addTDVertical( Element pTR, String pBorderID, String pClassPlus, int pWidth, |
779 |
|
- |
DragGesture pResizer ) |
|
774 |
+ |
private Widget addTDVertical( Element pTR, String pBorderID, String pClassPlus, int pWidth, DragGesture pResizer ) |
780 |
775 |
|
{ |
781 |
776 |
|
return addTD( pTR, pBorderID, pClassPlus, pWidth, 0, pResizer ); |
782 |
777 |
|
} |