|
@@ -1,12 +1,13 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt |
2 |
2 |
|
package org.litesoft.GWT.client.nonpublic; |
3 |
3 |
|
|
4 |
|
- |
import com.google.gwt.user.client.*; |
5 |
|
- |
import com.google.gwt.user.client.ui.*; |
6 |
4 |
|
import org.litesoft.GWT.client.*; |
7 |
5 |
|
import org.litesoft.GWT.client.widgets.*; |
8 |
6 |
|
import org.litesoft.configuration.*; |
|
7 |
+ |
|
|
8 |
+ |
import com.google.gwt.user.client.ui.*; |
9 |
9 |
|
import com.google.gwt.user.client.ui.Button; |
|
10 |
+ |
import com.google.gwt.user.client.*; |
10 |
11 |
|
|
11 |
12 |
|
public class FloaterMoveSizeDialog extends AbstractDialog |
12 |
13 |
|
{ |
|
@@ -327,42 +328,45 @@ |
327 |
328 |
|
|
328 |
329 |
|
private Widget createPinnedButton() |
329 |
330 |
|
{ |
330 |
|
- |
return new BGImageButton( "FloaterPushPin", "Pin to This Position;", new ClickListener() |
331 |
|
- |
{ |
332 |
|
- |
public void onClick( Widget sender ) |
333 |
|
- |
{ |
334 |
|
- |
mFloater.setPinned( !mFloater.isPinned() ); |
335 |
|
- |
|
336 |
|
- |
updatePinButton(); |
337 |
|
- |
} |
338 |
|
- |
} ); |
|
331 |
+ |
return null; // todo: translate: |
|
332 |
+ |
// new BGImageButton( "FloaterPushPin", "Pin to This Position;", new ClickListener() |
|
333 |
+ |
// { |
|
334 |
+ |
// public void onClick( Widget sender ) |
|
335 |
+ |
// { |
|
336 |
+ |
// mFloater.setPinned( !mFloater.isPinned() ); |
|
337 |
+ |
// |
|
338 |
+ |
// updatePinButton(); |
|
339 |
+ |
// } |
|
340 |
+ |
// } ); |
339 |
341 |
|
} |
340 |
342 |
|
|
341 |
343 |
|
private Widget createAnchorRightButton() |
342 |
344 |
|
{ |
343 |
|
- |
return new BGImageButton( "FloaterAnchorRight", "Anchor to Right Window Border;", new ClickListener() |
344 |
|
- |
{ |
345 |
|
- |
public void onClick( Widget sender ) |
346 |
|
- |
{ |
347 |
|
- |
mFloater.setRightAnchor( !mFloater.isRightAnchor() ); |
348 |
|
- |
|
349 |
|
- |
updateRightAnchor(); |
350 |
|
- |
} |
351 |
|
- |
} ); |
|
345 |
+ |
return null; // todo: translate: |
|
346 |
+ |
// new BGImageButton( "FloaterAnchorRight", "Anchor to Right Window Border;", new ClickListener() |
|
347 |
+ |
// { |
|
348 |
+ |
// public void onClick( Widget sender ) |
|
349 |
+ |
// { |
|
350 |
+ |
// mFloater.setRightAnchor( !mFloater.isRightAnchor() ); |
|
351 |
+ |
// |
|
352 |
+ |
// updateRightAnchor(); |
|
353 |
+ |
// } |
|
354 |
+ |
// } ); |
352 |
355 |
|
} |
353 |
356 |
|
|
354 |
357 |
|
private Widget createAnchorBottomButton() |
355 |
358 |
|
{ |
356 |
|
- |
return new BGImageButton( "FloaterAnchorBottom", "Anchor to Bottom Window Border;", |
357 |
|
- |
new ClickListener() |
358 |
|
- |
{ |
359 |
|
- |
public void onClick( Widget sender ) |
360 |
|
- |
{ |
361 |
|
- |
mFloater.setBottomAnchor( !mFloater.isBottomAnchor() ); |
362 |
|
- |
|
363 |
|
- |
updateBottomAnchor(); |
364 |
|
- |
} |
365 |
|
- |
} ); |
|
359 |
+ |
return null; // todo: translate: |
|
360 |
+ |
// new BGImageButton( "FloaterAnchorBottom", "Anchor to Bottom Window Border;", |
|
361 |
+ |
// new ClickListener() |
|
362 |
+ |
// { |
|
363 |
+ |
// public void onClick( Widget sender ) |
|
364 |
+ |
// { |
|
365 |
+ |
// mFloater.setBottomAnchor( !mFloater.isBottomAnchor() ); |
|
366 |
+ |
// |
|
367 |
+ |
// updateBottomAnchor(); |
|
368 |
+ |
// } |
|
369 |
+ |
// } ); |
366 |
370 |
|
} |
367 |
371 |
|
|
368 |
372 |
|
private MyTimer mTimer = null; |
|
@@ -614,283 +618,283 @@ |
614 |
618 |
|
|
615 |
619 |
|
private Widget createMoveUpButton() |
616 |
620 |
|
{ |
617 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterMoveUp", |
618 |
|
- |
"Click to Move Up;\nAlt-Click to Move to Top Window Border;", |
619 |
|
- |
new ClickListener() |
620 |
|
- |
{ |
621 |
|
- |
public void onClick( Widget sender ) |
622 |
|
- |
{ |
623 |
|
- |
if ( mAltDown ) |
624 |
|
- |
{ |
625 |
|
- |
mFloater.moveToMaxN(); |
626 |
|
- |
} |
627 |
|
- |
else |
628 |
|
- |
{ |
629 |
|
- |
mFloater.moveN( |
630 |
|
- |
mMoveTextbox.getTextboxValue() ); |
631 |
|
- |
} |
632 |
|
- |
updateStatus(); |
633 |
|
- |
} |
634 |
|
- |
} ); |
635 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
636 |
|
- |
{ |
637 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
638 |
|
- |
{ |
639 |
|
- |
start_N_Timer(); |
640 |
|
- |
} |
641 |
|
- |
|
642 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
643 |
|
- |
{ |
644 |
|
- |
stopTimer(); |
645 |
|
- |
} |
646 |
|
- |
} ); |
647 |
|
- |
|
648 |
|
- |
return imageButton; |
|
621 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterMoveUp", |
|
622 |
+ |
// "Click to Move Up;\nAlt-Click to Move to Top Window Border;", |
|
623 |
+ |
// new ClickListener() |
|
624 |
+ |
// { |
|
625 |
+ |
// public void onClick( Widget sender ) |
|
626 |
+ |
// { |
|
627 |
+ |
// if ( mAltDown ) |
|
628 |
+ |
// { |
|
629 |
+ |
// mFloater.moveToMaxN(); |
|
630 |
+ |
// } |
|
631 |
+ |
// else |
|
632 |
+ |
// { |
|
633 |
+ |
// mFloater.moveN( |
|
634 |
+ |
// mMoveTextbox.getTextboxValue() ); |
|
635 |
+ |
// } |
|
636 |
+ |
// updateStatus(); |
|
637 |
+ |
// } |
|
638 |
+ |
// } ); |
|
639 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
640 |
+ |
// { |
|
641 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
642 |
+ |
// { |
|
643 |
+ |
// start_N_Timer(); |
|
644 |
+ |
// } |
|
645 |
+ |
// |
|
646 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
647 |
+ |
// { |
|
648 |
+ |
// stopTimer(); |
|
649 |
+ |
// } |
|
650 |
+ |
// } ); |
|
651 |
+ |
// |
|
652 |
+ |
return null; // todo: translate: imageButton; |
649 |
653 |
|
} |
650 |
654 |
|
|
651 |
655 |
|
private Widget createMoveDownButton() |
652 |
656 |
|
{ |
653 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterMoveDown", |
654 |
|
- |
"Click to Move Down;\nAlt-Click to Move to Bottom Window Border;", |
655 |
|
- |
new ClickListener() |
656 |
|
- |
{ |
657 |
|
- |
public void onClick( Widget sender ) |
658 |
|
- |
{ |
659 |
|
- |
if ( mAltDown ) |
660 |
|
- |
{ |
661 |
|
- |
mFloater.moveToMaxS(); |
662 |
|
- |
} |
663 |
|
- |
else |
664 |
|
- |
{ |
665 |
|
- |
mFloater.moveS( |
666 |
|
- |
mMoveTextbox.getTextboxValue() ); |
667 |
|
- |
} |
668 |
|
- |
updateStatus(); |
669 |
|
- |
} |
670 |
|
- |
} ); |
671 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
672 |
|
- |
{ |
673 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
674 |
|
- |
{ |
675 |
|
- |
start_S_Timer(); |
676 |
|
- |
} |
677 |
|
- |
|
678 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
679 |
|
- |
{ |
680 |
|
- |
stopTimer(); |
681 |
|
- |
} |
682 |
|
- |
} ); |
683 |
|
- |
return imageButton; |
|
657 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterMoveDown", |
|
658 |
+ |
// "Click to Move Down;\nAlt-Click to Move to Bottom Window Border;", |
|
659 |
+ |
// new ClickListener() |
|
660 |
+ |
// { |
|
661 |
+ |
// public void onClick( Widget sender ) |
|
662 |
+ |
// { |
|
663 |
+ |
// if ( mAltDown ) |
|
664 |
+ |
// { |
|
665 |
+ |
// mFloater.moveToMaxS(); |
|
666 |
+ |
// } |
|
667 |
+ |
// else |
|
668 |
+ |
// { |
|
669 |
+ |
// mFloater.moveS( |
|
670 |
+ |
// mMoveTextbox.getTextboxValue() ); |
|
671 |
+ |
// } |
|
672 |
+ |
// updateStatus(); |
|
673 |
+ |
// } |
|
674 |
+ |
// } ); |
|
675 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
676 |
+ |
// { |
|
677 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
678 |
+ |
// { |
|
679 |
+ |
// start_S_Timer(); |
|
680 |
+ |
// } |
|
681 |
+ |
// |
|
682 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
683 |
+ |
// { |
|
684 |
+ |
// stopTimer(); |
|
685 |
+ |
// } |
|
686 |
+ |
// } ); |
|
687 |
+ |
return null; // todo: translate: imageButton; |
684 |
688 |
|
} |
685 |
689 |
|
|
686 |
690 |
|
private Widget createMoveLeftButton() |
687 |
691 |
|
{ |
688 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterMoveLeft", |
689 |
|
- |
"Click to Move Left;\nAlt-Click to Move to Left Window Border;", |
690 |
|
- |
new ClickListener() |
691 |
|
- |
{ |
692 |
|
- |
public void onClick( Widget sender ) |
693 |
|
- |
{ |
694 |
|
- |
if ( mAltDown ) |
695 |
|
- |
{ |
696 |
|
- |
mFloater.moveToMaxW(); |
697 |
|
- |
} |
698 |
|
- |
else |
699 |
|
- |
{ |
700 |
|
- |
mFloater.moveW( |
701 |
|
- |
mMoveTextbox.getTextboxValue() ); |
702 |
|
- |
} |
703 |
|
- |
updateStatus(); |
704 |
|
- |
} |
705 |
|
- |
} ); |
706 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
707 |
|
- |
{ |
708 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
709 |
|
- |
{ |
710 |
|
- |
start_W_Timer(); |
711 |
|
- |
} |
712 |
|
- |
|
713 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
714 |
|
- |
{ |
715 |
|
- |
stopTimer(); |
716 |
|
- |
} |
717 |
|
- |
} ); |
718 |
|
- |
return imageButton; |
|
692 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterMoveLeft", |
|
693 |
+ |
// "Click to Move Left;\nAlt-Click to Move to Left Window Border;", |
|
694 |
+ |
// new ClickListener() |
|
695 |
+ |
// { |
|
696 |
+ |
// public void onClick( Widget sender ) |
|
697 |
+ |
// { |
|
698 |
+ |
// if ( mAltDown ) |
|
699 |
+ |
// { |
|
700 |
+ |
// mFloater.moveToMaxW(); |
|
701 |
+ |
// } |
|
702 |
+ |
// else |
|
703 |
+ |
// { |
|
704 |
+ |
// mFloater.moveW( |
|
705 |
+ |
// mMoveTextbox.getTextboxValue() ); |
|
706 |
+ |
// } |
|
707 |
+ |
// updateStatus(); |
|
708 |
+ |
// } |
|
709 |
+ |
// } ); |
|
710 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
711 |
+ |
// { |
|
712 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
713 |
+ |
// { |
|
714 |
+ |
// start_W_Timer(); |
|
715 |
+ |
// } |
|
716 |
+ |
// |
|
717 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
718 |
+ |
// { |
|
719 |
+ |
// stopTimer(); |
|
720 |
+ |
// } |
|
721 |
+ |
// } ); |
|
722 |
+ |
return null; // todo: translate: imageButton; |
719 |
723 |
|
} |
720 |
724 |
|
|
721 |
725 |
|
private Widget createMoveRightButton() |
722 |
726 |
|
{ |
723 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterMoveRight", |
724 |
|
- |
"Click to Move Right;\nAlt-Click to Move to Right Window Border;", |
725 |
|
- |
new ClickListener() |
726 |
|
- |
{ |
727 |
|
- |
public void onClick( Widget sender ) |
728 |
|
- |
{ |
729 |
|
- |
if ( mAltDown ) |
730 |
|
- |
{ |
731 |
|
- |
mFloater.moveToMaxE(); |
732 |
|
- |
} |
733 |
|
- |
else |
734 |
|
- |
{ |
735 |
|
- |
mFloater.moveE( |
736 |
|
- |
mMoveTextbox.getTextboxValue() ); |
737 |
|
- |
} |
738 |
|
- |
updateStatus(); |
739 |
|
- |
} |
740 |
|
- |
} ); |
741 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
742 |
|
- |
{ |
743 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
744 |
|
- |
{ |
745 |
|
- |
start_E_Timer(); |
746 |
|
- |
} |
747 |
|
- |
|
748 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
749 |
|
- |
{ |
750 |
|
- |
stopTimer(); |
751 |
|
- |
} |
752 |
|
- |
} ); |
753 |
|
- |
return imageButton; |
|
727 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterMoveRight", |
|
728 |
+ |
// "Click to Move Right;\nAlt-Click to Move to Right Window Border;", |
|
729 |
+ |
// new ClickListener() |
|
730 |
+ |
// { |
|
731 |
+ |
// public void onClick( Widget sender ) |
|
732 |
+ |
// { |
|
733 |
+ |
// if ( mAltDown ) |
|
734 |
+ |
// { |
|
735 |
+ |
// mFloater.moveToMaxE(); |
|
736 |
+ |
// } |
|
737 |
+ |
// else |
|
738 |
+ |
// { |
|
739 |
+ |
// mFloater.moveE( |
|
740 |
+ |
// mMoveTextbox.getTextboxValue() ); |
|
741 |
+ |
// } |
|
742 |
+ |
// updateStatus(); |
|
743 |
+ |
// } |
|
744 |
+ |
// } ); |
|
745 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
746 |
+ |
// { |
|
747 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
748 |
+ |
// { |
|
749 |
+ |
// start_E_Timer(); |
|
750 |
+ |
// } |
|
751 |
+ |
// |
|
752 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
753 |
+ |
// { |
|
754 |
+ |
// stopTimer(); |
|
755 |
+ |
// } |
|
756 |
+ |
// } ); |
|
757 |
+ |
return null; // todo: translate: imageButton; |
754 |
758 |
|
} |
755 |
759 |
|
|
756 |
760 |
|
private Widget createMoveLeftUpButton() |
757 |
761 |
|
{ |
758 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterMoveLeftUp", |
759 |
|
- |
"Click to Move Top Left;\nAlt-Click to Move to Top Left Corner of Window;", |
760 |
|
- |
new ClickListener() |
761 |
|
- |
{ |
762 |
|
- |
public void onClick( Widget sender ) |
763 |
|
- |
{ |
764 |
|
- |
if ( mAltDown ) |
765 |
|
- |
{ |
766 |
|
- |
mFloater.moveToMaxNW(); |
767 |
|
- |
} |
768 |
|
- |
else |
769 |
|
- |
{ |
770 |
|
- |
mFloater.moveNW( |
771 |
|
- |
mMoveTextbox.getTextboxValue() ); |
772 |
|
- |
} |
773 |
|
- |
updateStatus(); |
774 |
|
- |
} |
775 |
|
- |
} ); |
776 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
777 |
|
- |
{ |
778 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
779 |
|
- |
{ |
780 |
|
- |
start_NW_Timer(); |
781 |
|
- |
} |
782 |
|
- |
|
783 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
784 |
|
- |
{ |
785 |
|
- |
stopTimer(); |
786 |
|
- |
} |
787 |
|
- |
} ); |
788 |
|
- |
return imageButton; |
|
762 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterMoveLeftUp", |
|
763 |
+ |
// "Click to Move Top Left;\nAlt-Click to Move to Top Left Corner of Window;", |
|
764 |
+ |
// new ClickListener() |
|
765 |
+ |
// { |
|
766 |
+ |
// public void onClick( Widget sender ) |
|
767 |
+ |
// { |
|
768 |
+ |
// if ( mAltDown ) |
|
769 |
+ |
// { |
|
770 |
+ |
// mFloater.moveToMaxNW(); |
|
771 |
+ |
// } |
|
772 |
+ |
// else |
|
773 |
+ |
// { |
|
774 |
+ |
// mFloater.moveNW( |
|
775 |
+ |
// mMoveTextbox.getTextboxValue() ); |
|
776 |
+ |
// } |
|
777 |
+ |
// updateStatus(); |
|
778 |
+ |
// } |
|
779 |
+ |
// } ); |
|
780 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
781 |
+ |
// { |
|
782 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
783 |
+ |
// { |
|
784 |
+ |
// start_NW_Timer(); |
|
785 |
+ |
// } |
|
786 |
+ |
// |
|
787 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
788 |
+ |
// { |
|
789 |
+ |
// stopTimer(); |
|
790 |
+ |
// } |
|
791 |
+ |
// } ); |
|
792 |
+ |
return null; // todo: translate: imageButton; |
789 |
793 |
|
} |
790 |
794 |
|
|
791 |
795 |
|
private Widget createMoveRightUpButton() |
792 |
796 |
|
{ |
793 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterMoveRightUp", |
794 |
|
- |
"Click to Move Top Right;\nAlt-Click to Move to Top Right Corner of Window;", |
795 |
|
- |
new ClickListener() |
796 |
|
- |
{ |
797 |
|
- |
public void onClick( Widget sender ) |
798 |
|
- |
{ |
799 |
|
- |
if ( mAltDown ) |
800 |
|
- |
{ |
801 |
|
- |
mFloater.moveToMaxNE(); |
802 |
|
- |
} |
803 |
|
- |
else |
804 |
|
- |
{ |
805 |
|
- |
mFloater.moveNE( |
806 |
|
- |
mMoveTextbox.getTextboxValue() ); |
807 |
|
- |
} |
808 |
|
- |
updateStatus(); |
809 |
|
- |
} |
810 |
|
- |
} ); |
811 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
812 |
|
- |
{ |
813 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
814 |
|
- |
{ |
815 |
|
- |
start_NE_Timer(); |
816 |
|
- |
} |
817 |
|
- |
|
818 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
819 |
|
- |
{ |
820 |
|
- |
stopTimer(); |
821 |
|
- |
} |
822 |
|
- |
} ); |
823 |
|
- |
return imageButton; |
|
797 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterMoveRightUp", |
|
798 |
+ |
// "Click to Move Top Right;\nAlt-Click to Move to Top Right Corner of Window;", |
|
799 |
+ |
// new ClickListener() |
|
800 |
+ |
// { |
|
801 |
+ |
// public void onClick( Widget sender ) |
|
802 |
+ |
// { |
|
803 |
+ |
// if ( mAltDown ) |
|
804 |
+ |
// { |
|
805 |
+ |
// mFloater.moveToMaxNE(); |
|
806 |
+ |
// } |
|
807 |
+ |
// else |
|
808 |
+ |
// { |
|
809 |
+ |
// mFloater.moveNE( |
|
810 |
+ |
// mMoveTextbox.getTextboxValue() ); |
|
811 |
+ |
// } |
|
812 |
+ |
// updateStatus(); |
|
813 |
+ |
// } |
|
814 |
+ |
// } ); |
|
815 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
816 |
+ |
// { |
|
817 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
818 |
+ |
// { |
|
819 |
+ |
// start_NE_Timer(); |
|
820 |
+ |
// } |
|
821 |
+ |
// |
|
822 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
823 |
+ |
// { |
|
824 |
+ |
// stopTimer(); |
|
825 |
+ |
// } |
|
826 |
+ |
// } ); |
|
827 |
+ |
return null; // todo: translate: imageButton; |
824 |
828 |
|
} |
825 |
829 |
|
|
826 |
830 |
|
private Widget createMoveLeftDownButton() |
827 |
831 |
|
{ |
828 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterMoveLeftDown", |
829 |
|
- |
"Click to Move Bottom Left;\nAlt-Click to Move to Bottom Left Corner of Window;", |
830 |
|
- |
new ClickListener() |
831 |
|
- |
{ |
832 |
|
- |
public void onClick( Widget sender ) |
833 |
|
- |
{ |
834 |
|
- |
if ( mAltDown ) |
835 |
|
- |
{ |
836 |
|
- |
mFloater.moveToMaxSW(); |
837 |
|
- |
} |
838 |
|
- |
else |
839 |
|
- |
{ |
840 |
|
- |
mFloater.moveSW( |
841 |
|
- |
mMoveTextbox.getTextboxValue() ); |
842 |
|
- |
} |
843 |
|
- |
updateStatus(); |
844 |
|
- |
} |
845 |
|
- |
} ); |
846 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
847 |
|
- |
{ |
848 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
849 |
|
- |
{ |
850 |
|
- |
start_SW_Timer(); |
851 |
|
- |
} |
852 |
|
- |
|
853 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
854 |
|
- |
{ |
855 |
|
- |
stopTimer(); |
856 |
|
- |
} |
857 |
|
- |
} ); |
858 |
|
- |
return imageButton; |
|
832 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterMoveLeftDown", |
|
833 |
+ |
// "Click to Move Bottom Left;\nAlt-Click to Move to Bottom Left Corner of Window;", |
|
834 |
+ |
// new ClickListener() |
|
835 |
+ |
// { |
|
836 |
+ |
// public void onClick( Widget sender ) |
|
837 |
+ |
// { |
|
838 |
+ |
// if ( mAltDown ) |
|
839 |
+ |
// { |
|
840 |
+ |
// mFloater.moveToMaxSW(); |
|
841 |
+ |
// } |
|
842 |
+ |
// else |
|
843 |
+ |
// { |
|
844 |
+ |
// mFloater.moveSW( |
|
845 |
+ |
// mMoveTextbox.getTextboxValue() ); |
|
846 |
+ |
// } |
|
847 |
+ |
// updateStatus(); |
|
848 |
+ |
// } |
|
849 |
+ |
// } ); |
|
850 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
851 |
+ |
// { |
|
852 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
853 |
+ |
// { |
|
854 |
+ |
// start_SW_Timer(); |
|
855 |
+ |
// } |
|
856 |
+ |
// |
|
857 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
858 |
+ |
// { |
|
859 |
+ |
// stopTimer(); |
|
860 |
+ |
// } |
|
861 |
+ |
// } ); |
|
862 |
+ |
return null; // todo: translate: imageButton; |
859 |
863 |
|
} |
860 |
864 |
|
|
861 |
865 |
|
private Widget createMoveRightDownButton() |
862 |
866 |
|
{ |
863 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterMoveRightDown", |
864 |
|
- |
"Click to Move Bottom Right;\nAlt-Click to Move to Bottom Right Corner of Window;", |
865 |
|
- |
new ClickListener() |
866 |
|
- |
{ |
867 |
|
- |
public void onClick( Widget sender ) |
868 |
|
- |
{ |
869 |
|
- |
if ( mAltDown ) |
870 |
|
- |
{ |
871 |
|
- |
mFloater.moveToMaxSE(); |
872 |
|
- |
} |
873 |
|
- |
else |
874 |
|
- |
{ |
875 |
|
- |
mFloater.moveSE( |
876 |
|
- |
mMoveTextbox.getTextboxValue() ); |
877 |
|
- |
} |
878 |
|
- |
updateStatus(); |
879 |
|
- |
} |
880 |
|
- |
} ); |
881 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
882 |
|
- |
{ |
883 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
884 |
|
- |
{ |
885 |
|
- |
start_SE_Timer(); |
886 |
|
- |
} |
887 |
|
- |
|
888 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
889 |
|
- |
{ |
890 |
|
- |
stopTimer(); |
891 |
|
- |
} |
892 |
|
- |
} ); |
893 |
|
- |
return imageButton; |
|
867 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterMoveRightDown", |
|
868 |
+ |
// "Click to Move Bottom Right;\nAlt-Click to Move to Bottom Right Corner of Window;", |
|
869 |
+ |
// new ClickListener() |
|
870 |
+ |
// { |
|
871 |
+ |
// public void onClick( Widget sender ) |
|
872 |
+ |
// { |
|
873 |
+ |
// if ( mAltDown ) |
|
874 |
+ |
// { |
|
875 |
+ |
// mFloater.moveToMaxSE(); |
|
876 |
+ |
// } |
|
877 |
+ |
// else |
|
878 |
+ |
// { |
|
879 |
+ |
// mFloater.moveSE( |
|
880 |
+ |
// mMoveTextbox.getTextboxValue() ); |
|
881 |
+ |
// } |
|
882 |
+ |
// updateStatus(); |
|
883 |
+ |
// } |
|
884 |
+ |
// } ); |
|
885 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
886 |
+ |
// { |
|
887 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
888 |
+ |
// { |
|
889 |
+ |
// start_SE_Timer(); |
|
890 |
+ |
// } |
|
891 |
+ |
// |
|
892 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
893 |
+ |
// { |
|
894 |
+ |
// stopTimer(); |
|
895 |
+ |
// } |
|
896 |
+ |
// } ); |
|
897 |
+ |
return null; // todo: translate: imageButton; |
894 |
898 |
|
} |
895 |
899 |
|
|
896 |
900 |
|
private HTMLPanel createSizeControl() |
|
@@ -911,218 +915,218 @@ |
911 |
915 |
|
|
912 |
916 |
|
private Widget createSizeHorizontalPlusButton() |
913 |
917 |
|
{ |
914 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterSizeHorizontalPlus", |
915 |
|
- |
"Click to Increase Width;\nAlt-Click to Resize Width to Right Window Border;", |
916 |
|
- |
new ClickListener() |
917 |
|
- |
{ |
918 |
|
- |
public void onClick( Widget sender ) |
919 |
|
- |
{ |
920 |
|
- |
if ( mAltDown ) |
921 |
|
- |
{ |
922 |
|
- |
mFloater.expandToMaxWidth(); |
923 |
|
- |
} |
924 |
|
- |
else |
925 |
|
- |
{ |
926 |
|
- |
mFloater.increaseWidthBy( |
927 |
|
- |
mSizeTextbox.getTextboxValue() ); |
928 |
|
- |
} |
929 |
|
- |
updateStatus(); |
930 |
|
- |
} |
931 |
|
- |
} ); |
932 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
933 |
|
- |
{ |
934 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
935 |
|
- |
{ |
936 |
|
- |
startIncreaseWidthTimer(); |
937 |
|
- |
} |
938 |
|
- |
|
939 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
940 |
|
- |
{ |
941 |
|
- |
stopTimer(); |
942 |
|
- |
} |
943 |
|
- |
} ); |
944 |
|
- |
return imageButton; |
|
918 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterSizeHorizontalPlus", |
|
919 |
+ |
// "Click to Increase Width;\nAlt-Click to Resize Width to Right Window Border;", |
|
920 |
+ |
// new ClickListener() |
|
921 |
+ |
// { |
|
922 |
+ |
// public void onClick( Widget sender ) |
|
923 |
+ |
// { |
|
924 |
+ |
// if ( mAltDown ) |
|
925 |
+ |
// { |
|
926 |
+ |
// mFloater.expandToMaxWidth(); |
|
927 |
+ |
// } |
|
928 |
+ |
// else |
|
929 |
+ |
// { |
|
930 |
+ |
// mFloater.increaseWidthBy( |
|
931 |
+ |
// mSizeTextbox.getTextboxValue() ); |
|
932 |
+ |
// } |
|
933 |
+ |
// updateStatus(); |
|
934 |
+ |
// } |
|
935 |
+ |
// } ); |
|
936 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
937 |
+ |
// { |
|
938 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
939 |
+ |
// { |
|
940 |
+ |
// startIncreaseWidthTimer(); |
|
941 |
+ |
// } |
|
942 |
+ |
// |
|
943 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
944 |
+ |
// { |
|
945 |
+ |
// stopTimer(); |
|
946 |
+ |
// } |
|
947 |
+ |
// } ); |
|
948 |
+ |
return null; // todo: translate: imageButton; |
945 |
949 |
|
} |
946 |
950 |
|
|
947 |
951 |
|
private Widget createSizeHorizontalMinusButton() |
948 |
952 |
|
{ |
949 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterSizeHorizontalMinus", |
950 |
|
- |
"Click to Decrease Width;\nAlt-Click to Set Exact Width;", |
951 |
|
- |
new ClickListener() |
952 |
|
- |
{ |
953 |
|
- |
public void onClick( Widget sender ) |
954 |
|
- |
{ |
955 |
|
- |
if ( mAltDown ) |
956 |
|
- |
{ |
957 |
|
- |
mFloater.setWidth( |
958 |
|
- |
mSizeTextbox.getTextboxValue() ); |
959 |
|
- |
} |
960 |
|
- |
else |
961 |
|
- |
{ |
962 |
|
- |
mFloater.decreaseWidthBy( |
963 |
|
- |
mSizeTextbox.getTextboxValue() ); |
964 |
|
- |
} |
965 |
|
- |
updateStatus(); |
966 |
|
- |
} |
967 |
|
- |
} ); |
968 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
969 |
|
- |
{ |
970 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
971 |
|
- |
{ |
972 |
|
- |
startDecreaseWidthTimer(); |
973 |
|
- |
} |
974 |
|
- |
|
975 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
976 |
|
- |
{ |
977 |
|
- |
stopTimer(); |
978 |
|
- |
} |
979 |
|
- |
} ); |
980 |
|
- |
return imageButton; |
|
953 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterSizeHorizontalMinus", |
|
954 |
+ |
// "Click to Decrease Width;\nAlt-Click to Set Exact Width;", |
|
955 |
+ |
// new ClickListener() |
|
956 |
+ |
// { |
|
957 |
+ |
// public void onClick( Widget sender ) |
|
958 |
+ |
// { |
|
959 |
+ |
// if ( mAltDown ) |
|
960 |
+ |
// { |
|
961 |
+ |
// mFloater.setWidth( |
|
962 |
+ |
// mSizeTextbox.getTextboxValue() ); |
|
963 |
+ |
// } |
|
964 |
+ |
// else |
|
965 |
+ |
// { |
|
966 |
+ |
// mFloater.decreaseWidthBy( |
|
967 |
+ |
// mSizeTextbox.getTextboxValue() ); |
|
968 |
+ |
// } |
|
969 |
+ |
// updateStatus(); |
|
970 |
+ |
// } |
|
971 |
+ |
// } ); |
|
972 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
973 |
+ |
// { |
|
974 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
975 |
+ |
// { |
|
976 |
+ |
// startDecreaseWidthTimer(); |
|
977 |
+ |
// } |
|
978 |
+ |
// |
|
979 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
980 |
+ |
// { |
|
981 |
+ |
// stopTimer(); |
|
982 |
+ |
// } |
|
983 |
+ |
// } ); |
|
984 |
+ |
return null; // todo: translate: imageButton; |
981 |
985 |
|
} |
982 |
986 |
|
|
983 |
987 |
|
private Widget createSizeVerticalPlusButton() |
984 |
988 |
|
{ |
985 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterSizeVerticalPlus", |
986 |
|
- |
"Click to Increase Height;\nAlt-Click to Resize Height to Bottom Window Border;", |
987 |
|
- |
new ClickListener() |
988 |
|
- |
{ |
989 |
|
- |
public void onClick( Widget sender ) |
990 |
|
- |
{ |
991 |
|
- |
if ( mAltDown ) |
992 |
|
- |
{ |
993 |
|
- |
mFloater.expandToMaxHeight(); |
994 |
|
- |
} |
995 |
|
- |
else |
996 |
|
- |
{ |
997 |
|
- |
mFloater.increaseHeightBy( |
998 |
|
- |
mSizeTextbox.getTextboxValue() ); |
999 |
|
- |
} |
1000 |
|
- |
updateStatus(); |
1001 |
|
- |
} |
1002 |
|
- |
} ); |
1003 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
1004 |
|
- |
{ |
1005 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
1006 |
|
- |
{ |
1007 |
|
- |
startIncreaseHeightTimer(); |
1008 |
|
- |
} |
1009 |
|
- |
|
1010 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
1011 |
|
- |
{ |
1012 |
|
- |
stopTimer(); |
1013 |
|
- |
} |
1014 |
|
- |
} ); |
1015 |
|
- |
return imageButton; |
|
989 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterSizeVerticalPlus", |
|
990 |
+ |
// "Click to Increase Height;\nAlt-Click to Resize Height to Bottom Window Border;", |
|
991 |
+ |
// new ClickListener() |
|
992 |
+ |
// { |
|
993 |
+ |
// public void onClick( Widget sender ) |
|
994 |
+ |
// { |
|
995 |
+ |
// if ( mAltDown ) |
|
996 |
+ |
// { |
|
997 |
+ |
// mFloater.expandToMaxHeight(); |
|
998 |
+ |
// } |
|
999 |
+ |
// else |
|
1000 |
+ |
// { |
|
1001 |
+ |
// mFloater.increaseHeightBy( |
|
1002 |
+ |
// mSizeTextbox.getTextboxValue() ); |
|
1003 |
+ |
// } |
|
1004 |
+ |
// updateStatus(); |
|
1005 |
+ |
// } |
|
1006 |
+ |
// } ); |
|
1007 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
1008 |
+ |
// { |
|
1009 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
1010 |
+ |
// { |
|
1011 |
+ |
// startIncreaseHeightTimer(); |
|
1012 |
+ |
// } |
|
1013 |
+ |
// |
|
1014 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
1015 |
+ |
// { |
|
1016 |
+ |
// stopTimer(); |
|
1017 |
+ |
// } |
|
1018 |
+ |
// } ); |
|
1019 |
+ |
return null; // todo: translate: imageButton; |
1016 |
1020 |
|
} |
1017 |
1021 |
|
|
1018 |
1022 |
|
private Widget createSizeVerticalMinusButton() |
1019 |
1023 |
|
{ |
1020 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterSizeVerticalMinus", |
1021 |
|
- |
"Click to Decrease Height;\nAlt-Click to Set Exact Height;", |
1022 |
|
- |
new ClickListener() |
1023 |
|
- |
{ |
1024 |
|
- |
public void onClick( Widget sender ) |
1025 |
|
- |
{ |
1026 |
|
- |
if ( mAltDown ) |
1027 |
|
- |
{ |
1028 |
|
- |
mFloater.setHeight( |
1029 |
|
- |
mSizeTextbox.getTextboxValue() ); |
1030 |
|
- |
} |
1031 |
|
- |
else |
1032 |
|
- |
{ |
1033 |
|
- |
mFloater.decreaseHeightBy( |
1034 |
|
- |
mSizeTextbox.getTextboxValue() ); |
1035 |
|
- |
} |
1036 |
|
- |
updateStatus(); |
1037 |
|
- |
} |
1038 |
|
- |
} ); |
1039 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
1040 |
|
- |
{ |
1041 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
1042 |
|
- |
{ |
1043 |
|
- |
startDecreaseHeightTimer(); |
1044 |
|
- |
} |
1045 |
|
- |
|
1046 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
1047 |
|
- |
{ |
1048 |
|
- |
stopTimer(); |
1049 |
|
- |
} |
1050 |
|
- |
} ); |
1051 |
|
- |
return imageButton; |
|
1024 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterSizeVerticalMinus", |
|
1025 |
+ |
// "Click to Decrease Height;\nAlt-Click to Set Exact Height;", |
|
1026 |
+ |
// new ClickListener() |
|
1027 |
+ |
// { |
|
1028 |
+ |
// public void onClick( Widget sender ) |
|
1029 |
+ |
// { |
|
1030 |
+ |
// if ( mAltDown ) |
|
1031 |
+ |
// { |
|
1032 |
+ |
// mFloater.setHeight( |
|
1033 |
+ |
// mSizeTextbox.getTextboxValue() ); |
|
1034 |
+ |
// } |
|
1035 |
+ |
// else |
|
1036 |
+ |
// { |
|
1037 |
+ |
// mFloater.decreaseHeightBy( |
|
1038 |
+ |
// mSizeTextbox.getTextboxValue() ); |
|
1039 |
+ |
// } |
|
1040 |
+ |
// updateStatus(); |
|
1041 |
+ |
// } |
|
1042 |
+ |
// } ); |
|
1043 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
1044 |
+ |
// { |
|
1045 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
1046 |
+ |
// { |
|
1047 |
+ |
// startDecreaseHeightTimer(); |
|
1048 |
+ |
// } |
|
1049 |
+ |
// |
|
1050 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
1051 |
+ |
// { |
|
1052 |
+ |
// stopTimer(); |
|
1053 |
+ |
// } |
|
1054 |
+ |
// } ); |
|
1055 |
+ |
return null; // todo: translate: imageButton; |
1052 |
1056 |
|
} |
1053 |
1057 |
|
|
1054 |
1058 |
|
private Widget createSizeDiagonalPlusButton() |
1055 |
1059 |
|
{ |
1056 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterSizeDiagonalPlus", |
1057 |
|
- |
"Click to Increase Width & Height;\nAlt-Click to Resize Width & Height Bottom Right Window Corner;", |
1058 |
|
- |
new ClickListener() |
1059 |
|
- |
{ |
1060 |
|
- |
public void onClick( Widget sender ) |
1061 |
|
- |
{ |
1062 |
|
- |
if ( mAltDown ) |
1063 |
|
- |
{ |
1064 |
|
- |
mFloater.expandToMaxWidth(); |
1065 |
|
- |
mFloater.expandToMaxHeight(); |
1066 |
|
- |
} |
1067 |
|
- |
else |
1068 |
|
- |
{ |
1069 |
|
- |
int zBy = mSizeTextbox.getTextboxValue(); |
1070 |
|
- |
mFloater.increaseWidthBy( zBy ); |
1071 |
|
- |
mFloater.increaseHeightBy( zBy ); |
1072 |
|
- |
} |
1073 |
|
- |
updateStatus(); |
1074 |
|
- |
} |
1075 |
|
- |
} ); |
1076 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
1077 |
|
- |
{ |
1078 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
1079 |
|
- |
{ |
1080 |
|
- |
startIncreaseDiagonalTimer(); |
1081 |
|
- |
} |
1082 |
|
- |
|
1083 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
1084 |
|
- |
{ |
1085 |
|
- |
stopTimer(); |
1086 |
|
- |
} |
1087 |
|
- |
} ); |
1088 |
|
- |
return imageButton; |
|
1060 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterSizeDiagonalPlus", |
|
1061 |
+ |
// "Click to Increase Width & Height;\nAlt-Click to Resize Width & Height Bottom Right Window Corner;", |
|
1062 |
+ |
// new ClickListener() |
|
1063 |
+ |
// { |
|
1064 |
+ |
// public void onClick( Widget sender ) |
|
1065 |
+ |
// { |
|
1066 |
+ |
// if ( mAltDown ) |
|
1067 |
+ |
// { |
|
1068 |
+ |
// mFloater.expandToMaxWidth(); |
|
1069 |
+ |
// mFloater.expandToMaxHeight(); |
|
1070 |
+ |
// } |
|
1071 |
+ |
// else |
|
1072 |
+ |
// { |
|
1073 |
+ |
// int zBy = mSizeTextbox.getTextboxValue(); |
|
1074 |
+ |
// mFloater.increaseWidthBy( zBy ); |
|
1075 |
+ |
// mFloater.increaseHeightBy( zBy ); |
|
1076 |
+ |
// } |
|
1077 |
+ |
// updateStatus(); |
|
1078 |
+ |
// } |
|
1079 |
+ |
// } ); |
|
1080 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
1081 |
+ |
// { |
|
1082 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
1083 |
+ |
// { |
|
1084 |
+ |
// startIncreaseDiagonalTimer(); |
|
1085 |
+ |
// } |
|
1086 |
+ |
// |
|
1087 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
1088 |
+ |
// { |
|
1089 |
+ |
// stopTimer(); |
|
1090 |
+ |
// } |
|
1091 |
+ |
// } ); |
|
1092 |
+ |
return null; // todo: translate: imageButton; |
1089 |
1093 |
|
} |
1090 |
1094 |
|
|
1091 |
1095 |
|
private Widget createSizeDiagonalMinusButton() |
1092 |
1096 |
|
{ |
1093 |
|
- |
BGImageButton imageButton = new BGImageButton( "FloaterSizeDiagonalMinus", |
1094 |
|
- |
"Click to Decrease Width & Height;\nAlt-Click to Set Exact Width & Height;", |
1095 |
|
- |
new ClickListener() |
1096 |
|
- |
{ |
1097 |
|
- |
public void onClick( Widget sender ) |
1098 |
|
- |
{ |
1099 |
|
- |
int zBy = mSizeTextbox.getTextboxValue(); |
1100 |
|
- |
if ( mAltDown ) |
1101 |
|
- |
{ |
1102 |
|
- |
mFloater.setWidth( zBy ); |
1103 |
|
- |
mFloater.setHeight( zBy ); |
1104 |
|
- |
} |
1105 |
|
- |
else |
1106 |
|
- |
{ |
1107 |
|
- |
mFloater.decreaseWidthBy( zBy ); |
1108 |
|
- |
mFloater.decreaseHeightBy( zBy ); |
1109 |
|
- |
} |
1110 |
|
- |
updateStatus(); |
1111 |
|
- |
} |
1112 |
|
- |
} ); |
1113 |
|
- |
imageButton.addMouseListener( new MouseListenerAdapter() |
1114 |
|
- |
{ |
1115 |
|
- |
public void onMouseDown( Widget sender, int x, int y ) |
1116 |
|
- |
{ |
1117 |
|
- |
startDecreaseDiagonalTimer(); |
1118 |
|
- |
} |
1119 |
|
- |
|
1120 |
|
- |
public void onMouseUp( Widget sender, int x, int y ) |
1121 |
|
- |
{ |
1122 |
|
- |
stopTimer(); |
1123 |
|
- |
} |
1124 |
|
- |
} ); |
1125 |
|
- |
return imageButton; |
|
1097 |
+ |
// BGImageButton imageButton = new BGImageButton( "FloaterSizeDiagonalMinus", |
|
1098 |
+ |
// "Click to Decrease Width & Height;\nAlt-Click to Set Exact Width & Height;", |
|
1099 |
+ |
// new ClickListener() |
|
1100 |
+ |
// { |
|
1101 |
+ |
// public void onClick( Widget sender ) |
|
1102 |
+ |
// { |
|
1103 |
+ |
// int zBy = mSizeTextbox.getTextboxValue(); |
|
1104 |
+ |
// if ( mAltDown ) |
|
1105 |
+ |
// { |
|
1106 |
+ |
// mFloater.setWidth( zBy ); |
|
1107 |
+ |
// mFloater.setHeight( zBy ); |
|
1108 |
+ |
// } |
|
1109 |
+ |
// else |
|
1110 |
+ |
// { |
|
1111 |
+ |
// mFloater.decreaseWidthBy( zBy ); |
|
1112 |
+ |
// mFloater.decreaseHeightBy( zBy ); |
|
1113 |
+ |
// } |
|
1114 |
+ |
// updateStatus(); |
|
1115 |
+ |
// } |
|
1116 |
+ |
// } ); |
|
1117 |
+ |
// imageButton.addMouseListener( new MouseListenerAdapter() |
|
1118 |
+ |
// { |
|
1119 |
+ |
// public void onMouseDown( Widget sender, int x, int y ) |
|
1120 |
+ |
// { |
|
1121 |
+ |
// startDecreaseDiagonalTimer(); |
|
1122 |
+ |
// } |
|
1123 |
+ |
// |
|
1124 |
+ |
// public void onMouseUp( Widget sender, int x, int y ) |
|
1125 |
+ |
// { |
|
1126 |
+ |
// stopTimer(); |
|
1127 |
+ |
// } |
|
1128 |
+ |
// } ); |
|
1129 |
+ |
return null; // todo: translate: imageButton; |
1126 |
1130 |
|
} |
1127 |
1131 |
|
|
1128 |
1132 |
|
private static class TextBoxHelper implements ChangeListener, |