litesoft
Diff Revisions
151
vs
157
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/AbstractContextPopup.java
|
@@ -19,15 +19,6 @@ |
19 |
19 |
|
super( pAutoHide ); |
20 |
20 |
|
} |
21 |
21 |
|
|
22 |
|
- |
protected AbstractContextPopup( boolean autoHide, PopupListener pListener ) |
23 |
|
- |
{ |
24 |
|
- |
this( autoHide ); |
25 |
|
- |
if ( pListener != null ) |
26 |
|
- |
{ |
27 |
|
- |
addPopupListener( pListener ); |
28 |
|
- |
} |
29 |
|
- |
} |
30 |
|
- |
|
31 |
22 |
|
protected void error( String pProblem, RuntimeException pRTE ) |
32 |
23 |
|
{ |
33 |
24 |
|
AlertManager.alert( ERROR_FROM, "Contextual Options Error", pProblem, pRTE ); |
|
@@ -48,7 +39,8 @@ |
48 |
39 |
|
* @param pPopupRelativeMeetingPoint the Popup's "meeting" point. null defaults to "CornerTopLeft" |
49 |
40 |
|
*/ |
50 |
41 |
|
public void showContextPopup( Event pEvent, // |
51 |
|
- |
RectangleContainmentStrategy pRectangleContainmentStrategy, CommonRectangularPoint pSourceElementRelativeMeetingPoint, CommonRectangularPoint pPopupRelativeMeetingPoint ) |
|
42 |
+ |
RectangleContainmentStrategy pRectangleContainmentStrategy, // |
|
43 |
+ |
CommonRectangularPoint pSourceElementRelativeMeetingPoint, CommonRectangularPoint pPopupRelativeMeetingPoint ) |
52 |
44 |
|
{ |
53 |
45 |
|
Widget zWidget; |
54 |
46 |
|
try |
|
@@ -67,9 +59,10 @@ |
67 |
59 |
|
|
68 |
60 |
|
setWidget( zWidget ); |
69 |
61 |
|
|
70 |
|
- |
setPopupPositionAndShow( new MyPositionCallback( pRectangleContainmentStrategy, pSourceElementRelativeMeetingPoint, pEvent, (pPopupRelativeMeetingPoint != null) ? // |
71 |
|
- |
pPopupRelativeMeetingPoint : // |
72 |
|
- |
CommonRectangularPoint.LeftTop ) ); |
|
62 |
+ |
setPopupPositionAndShow( new MyPositionCallback( pRectangleContainmentStrategy, pSourceElementRelativeMeetingPoint, pEvent, // |
|
63 |
+ |
(pPopupRelativeMeetingPoint != null) ? // |
|
64 |
+ |
pPopupRelativeMeetingPoint : // |
|
65 |
+ |
CommonRectangularPoint.LeftTop ) ); |
73 |
66 |
|
} |
74 |
67 |
|
|
75 |
68 |
|
@Override |