Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -22,8 +22,7 @@
22 22 TableRowRemoveCallBack<TaskView>,
23 23 TableRowEditCallBack<TaskView>,
24 24 TableRowMoveCallBack<TaskView>,
25 - TaskDialog.CallBack
26 - {
25 + TaskDialog.CallBack {
27 26 // private QBE_FormEngine mFE;
28 27
29 28 // private StoryViewDataProvider mDataProvider = StoryViewDataProvider.getInstance();
  @@ -32,28 +31,23 @@
32 31 private ObjectURL mStory = null;
33 32
34 33 @Override
35 - protected UriFragmentIdParams createRefreshParams()
36 - {
34 + protected UriFragmentIdParams createRefreshParams() {
37 35 return StoryTasksFactory.encodeParams( mStory );
38 36 }
39 37
40 - public StoryTasks( String pSection, ViewDef pViewDef, ObjectURL pEditing )
41 - {
38 + public StoryTasks( String pSection, ViewDef pViewDef, ObjectURL pEditing ) {
42 39 super( title( pSection, pViewDef ) );
43 40
44 41 mStory = pEditing;
45 - if ( mStory == null )
46 - {
42 + if ( mStory == null ) {
47 43 backToHome( "Story Not Found" );
48 44 }
49 45
50 46 addStandardTitleBar();
51 47
52 - addLeft( BackButton.factory( "Change Story" ).add( ViewDefs.STORY_STORIES, new UriFragmentIdParams.ScreenParamsFactory()
53 - {
48 + addLeft( BackButton.factory( "Change Story" ).add( ViewDefs.STORY_STORIES, new UriFragmentIdParams.ScreenParamsFactory() {
54 49 @Override
55 - public UriFragmentIdParams create( ViewDef pTarget )
56 - {
50 + public UriFragmentIdParams create( ViewDef pTarget ) {
57 51 return StoriesFactory.encodeParams( mStory );
58 52 }
59 53 } ).create() );
  @@ -70,19 +64,16 @@
70 64 add( new SizeableVerticalSplitPairPanel().stretchable().add( zUpperPanel, zTaskTable ) );
71 65 }
72 66
73 - private Widget createTaskTable()
74 - {
67 + private Widget createTaskTable() {
75 68 ListTableModel<TaskView> zTableModel = new ListTableModel<TaskView>();
76 69 UnSelectableRegularTable<TaskView> zTable = new UnSelectableRegularTable<TaskView>( zTableModel, new StoryTasksTableDef( this, this, this ) );
77 70 SizeableHorizontalPanel zHorizontalPanel = new SizeableHorizontalPanel().stretchableHorizontally();
78 71 zHorizontalPanel.setVerticalAlignment( HasVerticalAlignment.ALIGN_MIDDLE );
79 72 zHorizontalPanel.add( new OurLabel( "Tasks", false ).style( "LineFreeSectionTitleLabel" ) );
80 73 zHorizontalPanel.add( new SizeableSpacer().stretchableHorizontally() );
81 - zHorizontalPanel.add( mAddNewTaskButton = Button.named( "Plus" ).blue().icon().disabled().add( new ClickHandler()
82 - {
74 + zHorizontalPanel.add( mAddNewTaskButton = Button.named( "Plus" ).blue().icon().disabled().add( new ClickHandler() {
83 75 @Override
84 - public void onClick( ClickEvent event )
85 - {
76 + public void onClick( ClickEvent event ) {
86 77 new DialogViewDialog( new TaskDialog( mStoryFormBinder.getObject(), TaskDialog.EditType.Add, StoryTasks.this ) ).show();
87 78 }
88 79 } ).create() );
  @@ -95,15 +86,13 @@
95 86 private ButtonBase mAddNewTaskButton;
96 87
97 88 @Override
98 - public void aboutToShow()
99 - {
89 + public void aboutToShow() {
100 90 super.aboutToShow();
101 91 StoryScreenViewHelper.requestRequiredStory( this, mStory, 0 );
102 92 }
103 93
104 94 @Override
105 - public void foundStory( StoryView pStoryView, Integer pRequestID )
106 - {
95 + public void foundStory( StoryView pStoryView, Integer pRequestID ) {
107 96 mStoryFormBinder.setExistingObject( pStoryView, FormEngine.Mode.ViewRegular );
108 97 }
109 98
  @@ -115,8 +104,7 @@
115 104 // }
116 105
117 106 @Override
118 - public Widget getBottomBar()
119 - {
107 + public Widget getBottomBar() {
120 108 LeftCenterRightHorizontalPanel zActionPanel = new LeftCenterRightHorizontalPanel();
121 109
122 110 // zActionPanel.addLeft( mFE.addEditRevertButton( createRevertButton() ) );
  @@ -133,26 +121,22 @@
133 121 }
134 122
135 123 @Override
136 - public void editRow( TaskView pRowValue )
137 - {
124 + public void editRow( TaskView pRowValue ) {
138 125 System.out.println( "StoryTasks.editRow: " + pRowValue );
139 126 }
140 127
141 128 @Override
142 - public void moveUp( TaskView pRowValue )
143 - {
129 + public void moveUp( TaskView pRowValue ) {
144 130 System.out.println( "StoryTasks.moveUp: " + pRowValue );
145 131 }
146 132
147 133 @Override
148 - public void moveDown( TaskView pRowValue )
149 - {
134 + public void moveDown( TaskView pRowValue ) {
150 135 System.out.println( "StoryTasks.moveDown: " + pRowValue );
151 136 }
152 137
153 138 @Override
154 - public void removeRow( TaskView pRowValue )
155 - {
139 + public void removeRow( TaskView pRowValue ) {
156 140 System.out.println( "StoryTasks.removeRow: " + pRowValue );
157 141 }
158 142
  @@ -160,5 +144,4 @@
160 144 {
161 145
162 146 }
163 -
164 147 }