Subversion Repository Public Repository

litesoft

Diff Revisions 496 vs 539 for /trunk/Java/DATT/src/org/litesoft/datt/client/ui/views/stories/Stories.java

Diff revisions: vs.
  @@ -1,6 +1,7 @@
1 1 package org.litesoft.datt.client.ui.views.stories;
2 2
3 3 import org.litesoft.GWT.client.view.*;
4 + import org.litesoft.GWT.client.widgets.Button;
4 5 import org.litesoft.GWT.client.widgets.*;
5 6 import org.litesoft.GWT.client.widgets.datatables.*;
6 7 import org.litesoft.GWT.forms.client.*;
  @@ -9,6 +10,7 @@
9 10 import org.litesoft.datt.client.ui.widgets.*;
10 11 import org.litesoft.uispecification.*;
11 12
13 + import com.google.gwt.event.dom.client.*;
12 14 import com.google.gwt.user.client.ui.*;
13 15
14 16 import static org.litesoft.uispecification.FormWidgetCtrl.*;
  @@ -24,9 +26,10 @@
24 26 return StoriesFactory.encodeParams( mEditing );
25 27 }
26 28
29 + @SuppressWarnings({"UnusedParameters"})
27 30 public Stories( String pSection, ViewDef pViewDef, ObjectURL pEditing )
28 31 {
29 - super( title( pSection, pViewDef ), StoryViewDataProvider.getInstance() );
32 + super( title( pViewDef ), StoryViewDataProvider.getInstance() );
30 33
31 34 mEditing = pEditing;
32 35
  @@ -47,13 +50,27 @@
47 50
48 51 add( mFE.createSectionTitle( "Story" ) );
49 52
50 - StoryFieldsPanel zStoryFieldsPanel = new StoryFieldsPanel( mFormBinder );
53 + Button zTaskButton = Button.named( "Tasks" ).blue().text().enabledToolTip( "Manage Tasks for this Story" ).add( new ClickHandler()
54 + {
55 + @Override
56 + public void onClick( ClickEvent event )
57 + {
58 + editTasks();
59 + }
60 + } ).create();
61 +
62 + StoryFieldsPanel zStoryFieldsPanel = new StoryFieldsPanel( mFormBinder, mFE, zTaskButton );
51 63
52 64 add( zStoryFieldsPanel );
53 65
54 66 mFE.setPointerWidget( zStoryFieldsPanel.getPointerField() );
55 67 }
56 68
69 + private void editTasks()
70 + {
71 + new DialogViewDialog( null ).show(); // new EditCurrentInventoryDialog( zNotItemIDs, this ) ).show(); // todo
72 + }
73 +
57 74 @Override
58 75 public void aboutToShow()
59 76 {