litesoft
@ 948
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
package org.litesoft.datt.client.ui.widgets; import org.litesoft.GWT.client.widgets.*; import org.litesoft.GWT.forms.client.*; import org.litesoft.datt.client.boviews.*; import org.litesoft.uispecification.*; import com.google.gwt.user.client.ui.*; import static org.litesoft.uispecification.FormWidgetCtrl.*; public class TaskFieldsPanel extends SizeableVerticalPanel implements TaskViewNames { private Widget mPointerField; public TaskFieldsPanel( FormBinder<TaskView> pFB ) { stretchable(); add( mPointerField = pFB.add( aName ) ); add( pFB.add( aDescription ) ); add( createIsDonePlusPriority( pFB ) ); SizeableHorizontalPanel zHorizontalPanel = new SizeableHorizontalPanel().stretchableHorizontally(); zHorizontalPanel.add( pFB.add( aCreatorFullName ) ); zHorizontalPanel.add( new SizeableSpacer().stretchableHorizontally() ); add( zHorizontalPanel ); } public Widget getPointerField() { return mPointerField; } private Widget createIsDonePlusPriority( FormBinder<TaskView> pFB ) { SizeableHorizontalPanel zPanel = new SizeableHorizontalPanel().stretchableHorizontally(); zPanel.add( pFB.add( aIsDone ) ); zPanel.add( new SizeableSpacer( 10 ) ); // todo: put back .stretchableHorizontally() ); zPanel.add( pFB.add( aShowDone ) ); return zPanel; } public static WidgetCtrlMap createWidgetCtrlMap( FormWidgetCtrl pDefaultCtrl ) { WidgetCtrlMap zWidgetCtrlMap = new WidgetCtrlMap( pDefaultCtrl ); zWidgetCtrlMap.add( SEARCH_FILTER.unique(), aName ); zWidgetCtrlMap.add( SEARCH_FILTER, aDescription ); zWidgetCtrlMap.add( SEARCH_FILTER.enable( FormWidgetAspectCtrl.Search ), aCreatorFullName ); zWidgetCtrlMap.add( SEARCH_ONLY.searchFilter(), aShowDone ); zWidgetCtrlMap.add( EDIT_ONLY, aIsDone ); return zWidgetCtrlMap; } } |
Commits for litesoft/trunk/Java/DATT/src/org/litesoft/datt/client/ui/widgets/TaskFieldsPanel.java
Revision | Author | Commited | Message |
---|---|---|---|
948 Diff | GeorgeS | Sat 07 Jun, 2014 23:42:39 +0000 | Jusefuls Formatter Updated to New Code Format |
565 Diff | markcmarkc | Sun 13 Nov, 2011 21:45:35 +0000 | |
539 Diff | markcmarkc | Mon 03 Oct, 2011 00:35:01 +0000 | |
496 Diff | GeorgeS | Sun 11 Sep, 2011 16:58:00 +0000 | |
430 | GeorgeS | Sat 20 Aug, 2011 19:46:21 +0000 |