litesoft
Diff Revisions
947
vs
948
for /trunk/Java/DATT/src/org/litesoft/datt/client/ui/widgets/StoryFieldsPanel.java
|
@@ -11,20 +11,17 @@ |
11 |
11 |
|
import static org.litesoft.uispecification.FormWidgetAspectCtrl.*; |
12 |
12 |
|
import static org.litesoft.uispecification.FormWidgetCtrl.*; |
13 |
13 |
|
|
14 |
|
- |
public class StoryFieldsPanel extends SizeableVerticalSplitPairPanel implements StoryViewNames |
15 |
|
- |
{ |
|
14 |
+ |
public class StoryFieldsPanel extends SizeableVerticalSplitPairPanel implements StoryViewNames { |
16 |
15 |
|
private Widget mPointerField; |
17 |
16 |
|
|
18 |
|
- |
public StoryFieldsPanel( FormBinder<StoryView> pFB, FormEngine pFE, Button pTaskButton ) |
19 |
|
- |
{ |
|
17 |
+ |
public StoryFieldsPanel( FormBinder<StoryView> pFB, FormEngine pFE, Button pTaskButton ) { |
20 |
18 |
|
stretchable(); |
21 |
19 |
|
|
22 |
20 |
|
add( createUpperPanel( pFB, pFE, pTaskButton ) ); |
23 |
21 |
|
add( pFB.add( aChanges ) ); |
24 |
22 |
|
} |
25 |
23 |
|
|
26 |
|
- |
private Widget createUpperPanel( FormBinder<StoryView> pFB, FormEngine pFE, Button pTaskButton ) |
27 |
|
- |
{ |
|
24 |
+ |
private Widget createUpperPanel( FormBinder<StoryView> pFB, FormEngine pFE, Button pTaskButton ) { |
28 |
25 |
|
SizeableVerticalPanel zPanel = new SizeableVerticalPanel().stretchable(); |
29 |
26 |
|
|
30 |
27 |
|
zPanel.add( mPointerField = pFB.add( aName ) ); |
|
@@ -34,8 +31,7 @@ |
34 |
31 |
|
SizeableHorizontalPanel zHorizontalPanel = new SizeableHorizontalPanel().stretchableHorizontally(); |
35 |
32 |
|
zHorizontalPanel.add( pFB.add( aCreatorFullName ) ); |
36 |
33 |
|
zHorizontalPanel.add( new SizeableSpacer().stretchableHorizontally() ); |
37 |
|
- |
if ( pTaskButton != null ) |
38 |
|
- |
{ |
|
34 |
+ |
if ( pTaskButton != null ) { |
39 |
35 |
|
zHorizontalPanel.add( pFE.addButton( Visible( Edit ).enable( Edit_Existing_NoChanges ), pTaskButton ) ); |
40 |
36 |
|
} |
41 |
37 |
|
|
|
@@ -44,13 +40,11 @@ |
44 |
40 |
|
return zPanel; |
45 |
41 |
|
} |
46 |
42 |
|
|
47 |
|
- |
public Widget getPointerField() |
48 |
|
- |
{ |
|
43 |
+ |
public Widget getPointerField() { |
49 |
44 |
|
return mPointerField; |
50 |
45 |
|
} |
51 |
46 |
|
|
52 |
|
- |
private Widget createIsDonePlusPriority( FormBinder<StoryView> pFB ) |
53 |
|
- |
{ |
|
47 |
+ |
private Widget createIsDonePlusPriority( FormBinder<StoryView> pFB ) { |
54 |
48 |
|
SizeableHorizontalPanel zPanel = new SizeableHorizontalPanel().stretchableHorizontally(); |
55 |
49 |
|
zPanel.add( pFB.add( aIsDone ) ); |
56 |
50 |
|
zPanel.add( new SizeableSpacer( 10 ) ); // todo: put back .stretchableHorizontally() ); |
|
@@ -58,8 +52,7 @@ |
58 |
52 |
|
return zPanel; |
59 |
53 |
|
} |
60 |
54 |
|
|
61 |
|
- |
public static WidgetCtrlMap createWidgetCtrlMap( FormWidgetCtrl pDefaultCtrl ) |
62 |
|
- |
{ |
|
55 |
+ |
public static WidgetCtrlMap createWidgetCtrlMap( FormWidgetCtrl pDefaultCtrl ) { |
63 |
56 |
|
WidgetCtrlMap zWidgetCtrlMap = new WidgetCtrlMap( pDefaultCtrl ); |
64 |
57 |
|
|
65 |
58 |
|
zWidgetCtrlMap.add( SEARCH_FILTER.unique(), aName ); |