Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/OldClient/src/org/litesoft/GWT/client/taskbar/nonpublic/MoveDockedWidgetContextPopup.java

Diff revisions: vs.
  @@ -1,31 +1,31 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.client.taskbar.nonpublic;
3 -
4 - import org.litesoft.GWT.client.commands.*;
5 - import org.litesoft.GWT.client.widgets.*;
6 - import org.litesoft.commonfoundation.typeutils.*;
7 -
8 - import com.google.gwt.user.client.*;
9 - import com.google.gwt.user.client.ui.*;
10 -
11 - public class MoveDockedWidgetContextPopup extends AbstractGridIconCommandContextPopup {
12 - public MoveDockedWidgetContextPopup( MoveNEWScommands pCommands ) {
13 - super( true, 3, 3 );
14 -
15 - mGrid.setWidth( "55" );
16 - mGrid.setHeight( "55" );
17 - DOM.setElementAttribute( mGrid.getElement(), "width", "55" );
18 - DOM.setElementAttribute( mGrid.getElement(), "height", "55" );
19 -
20 - Objects.assertNotNull( "Commands", pCommands );
21 -
22 - addIconCommand( 0, 1, pCommands.getMoveNorth() );
23 - addIconCommand( 1, 0, pCommands.getMoveWest() );
24 - Image zAnchorImg = new OurImage( "common/images/dockmenu/anchor.gif" );
25 - zAnchorImg.setWidth( "16" );
26 - zAnchorImg.setHeight( "16" );
27 - mGrid.setWidget( 1, 1, zAnchorImg );
28 - addIconCommand( 1, 2, pCommands.getMoveEast() );
29 - addIconCommand( 2, 1, pCommands.getMoveSouth() );
30 - }
31 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.client.taskbar.nonpublic;
3 +
4 + import org.litesoft.GWT.client.commands.*;
5 + import org.litesoft.GWT.client.widgets.*;
6 + import org.litesoft.commonfoundation.base.*;
7 +
8 + import com.google.gwt.user.client.*;
9 + import com.google.gwt.user.client.ui.*;
10 +
11 + public class MoveDockedWidgetContextPopup extends AbstractGridIconCommandContextPopup {
12 + public MoveDockedWidgetContextPopup( MoveNEWScommands pCommands ) {
13 + super( true, 3, 3 );
14 +
15 + mGrid.setWidth( "55" );
16 + mGrid.setHeight( "55" );
17 + DOM.setElementAttribute( mGrid.getElement(), "width", "55" );
18 + DOM.setElementAttribute( mGrid.getElement(), "height", "55" );
19 +
20 + Confirm.isNotNull( "Commands", pCommands );
21 +
22 + addIconCommand( 0, 1, pCommands.getMoveNorth() );
23 + addIconCommand( 1, 0, pCommands.getMoveWest() );
24 + Image zAnchorImg = new OurImage( "common/images/dockmenu/anchor.gif" );
25 + zAnchorImg.setWidth( "16" );
26 + zAnchorImg.setHeight( "16" );
27 + mGrid.setWidget( 1, 1, zAnchorImg );
28 + addIconCommand( 1, 2, pCommands.getMoveEast() );
29 + addIconCommand( 2, 1, pCommands.getMoveSouth() );
30 + }
31 + }