Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/DATT/src/org/litesoft/datt/client/ui/views/stories/MergeStories.java

Diff revisions: vs.
  @@ -16,23 +16,19 @@
16 16 import static org.litesoft.uispecification.FormWidgetCtrl.*;
17 17
18 18 public class MergeStories extends ClickableViewObjectQBEscreenView<StoryView> implements StoryFindable,
19 - StoryViewNames
20 - {
19 + StoryViewNames {
21 20 private ObjectURL mStory0 = null;
22 21 private ObjectURL mStory1 = null;
23 22
24 23 @Override
25 - protected UriFragmentIdParams createRefreshParams()
26 - {
24 + protected UriFragmentIdParams createRefreshParams() {
27 25 return MergeStoriesFactory.encodeParams( new TwoStoryURLs( mStory0, mStory1 ) );
28 26 }
29 27
30 - public MergeStories( String pSection, ViewDef pViewDef, TwoStoryURLs pTwoStoryURLs )
31 - {
28 + public MergeStories( String pSection, ViewDef pViewDef, TwoStoryURLs pTwoStoryURLs ) {
32 29 super( title( pSection, pViewDef ), StoryViewDataProvider.getInstance() );
33 30
34 - if ( pTwoStoryURLs != null )
35 - {
31 + if ( pTwoStoryURLs != null ) {
36 32 mStory0 = pTwoStoryURLs.getStory0();
37 33 mStory1 = pTwoStoryURLs.getStory1();
38 34 }
  @@ -63,8 +59,7 @@
63 59 }
64 60
65 61 @Override
66 - public void aboutToShow()
67 - {
62 + public void aboutToShow() {
68 63 super.aboutToShow();
69 64 ObjectURL zStory = mStory0;
70 65 modeSearch();
  @@ -72,36 +67,29 @@
72 67 }
73 68
74 69 @Override
75 - public void foundStory( StoryView pStoryView, Integer pRequestID )
76 - {
70 + public void foundStory( StoryView pStoryView, Integer pRequestID ) {
77 71 modeView( pStoryView );
78 72 }
79 73
80 74 @Override
81 - protected void justLoaded()
82 - {
75 + protected void justLoaded() {
83 76 super.justLoaded();
84 77 mFE.setFocus();
85 78 }
86 79
87 80 @Override
88 - protected void processVO( StoryView pRowValue )
89 - {
90 - if ( pRowValue != null )
91 - {
81 + protected void processVO( StoryView pRowValue ) {
82 + if ( pRowValue != null ) {
92 83 modeView( pRowValue );
93 84 }
94 85 }
95 86
96 87 @Override
97 - public Widget getBottomBar()
98 - {
88 + public Widget getBottomBar() {
99 89 RightHorizontalPanel zActionPanel = new RightHorizontalPanel();
100 - zActionPanel.add( mFE.addExistingUnchangedNextButton( true, ViewDefs.STORY_MERGE_STORIES_STEP_TWO, new UriFragmentIdParams.ScreenParamsFactory()
101 - {
90 + zActionPanel.add( mFE.addExistingUnchangedNextButton( true, ViewDefs.STORY_MERGE_STORIES_STEP_TWO, new UriFragmentIdParams.ScreenParamsFactory() {
102 91 @Override
103 - public UriFragmentIdParams create( ViewDef pTarget )
104 - {
92 + public UriFragmentIdParams create( ViewDef pTarget ) {
105 93 return MergeStoriesFactory.encodeParams( new TwoStoryURLs( mStory0, mStory1 ) );
106 94 // return MergeStoriesStepTwoFactory.encodeParams( new TwoStoryURLs( mStory0, mStory1 ) );
107 95 }
  @@ -109,14 +97,12 @@
109 97 return zActionPanel;
110 98 }
111 99
112 - private void modeSearch()
113 - {
100 + private void modeSearch() {
114 101 mStory0 = null;
115 102 mFE.setMode( FormEngine.Mode.Search );
116 103 }
117 104
118 - private void modeView( StoryView pStoryView )
119 - {
105 + private void modeView( StoryView pStoryView ) {
120 106 mStory0 = pStoryView.getObjectURL();
121 107 mFormBinder.setExistingObject( pStoryView, FormEngine.Mode.ViewFromSearch );
122 108 }