litesoft
Diff Revisions
566
vs
604
for /trunk/Java/DATT/src/org/litesoft/datt/client/ui/views/stories/StoryTasks.java
|
@@ -12,6 +12,7 @@ |
12 |
12 |
|
import org.litesoft.datt.client.ui.widgets.*; |
13 |
13 |
|
import org.litesoft.uispecification.*; |
14 |
14 |
|
|
|
15 |
+ |
import com.google.gwt.event.dom.client.*; |
15 |
16 |
|
import com.google.gwt.user.client.ui.*; |
16 |
17 |
|
|
17 |
18 |
|
import static org.litesoft.uispecification.FormWidgetCtrl.*; |
|
@@ -76,7 +77,14 @@ |
76 |
77 |
|
zHorizontalPanel.setVerticalAlignment( HasVerticalAlignment.ALIGN_MIDDLE ); |
77 |
78 |
|
zHorizontalPanel.add( new OurLabel( "Tasks", false ).style( "LineFreeSectionTitleLabel" ) ); |
78 |
79 |
|
zHorizontalPanel.add( new SizeableSpacer().stretchableHorizontally() ); |
79 |
|
- |
zHorizontalPanel.add( mAddNewTaskButton = Button.named( "Plus" ).blue().icon().disabled().create() ); |
|
80 |
+ |
zHorizontalPanel.add( mAddNewTaskButton = Button.named( "Plus" ).blue().icon().disabled().add( new ClickHandler() |
|
81 |
+ |
{ |
|
82 |
+ |
@Override |
|
83 |
+ |
public void onClick( ClickEvent event ) |
|
84 |
+ |
{ |
|
85 |
+ |
// new DialogViewDialog( new AddNewTaskDialog( this ) ).show(); |
|
86 |
+ |
} |
|
87 |
+ |
} ).create() ); |
80 |
88 |
|
SizeableVerticalPanel zVerticalPanel = new SizeableVerticalPanel().stretchable(); |
81 |
89 |
|
zVerticalPanel.add( zHorizontalPanel ); |
82 |
90 |
|
zVerticalPanel.add( zTable ); |