Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/ISizeableDimensionHelper.java

Diff revisions: vs.
  @@ -1,100 +1,100 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.client.widgets.nonpublic;
3 -
4 - import com.google.gwt.user.client.*;
5 - import com.google.gwt.user.client.ui.*;
6 -
7 - public interface ISizeableDimensionHelper extends IDimensionHelper {
8 - public boolean isStretchable();
9 -
10 - public void setStretchable( boolean pNewValue );
11 -
12 - public boolean setPrefferredDimension();
13 -
14 - public boolean adjustSizeBy( int pDelta );
15 -
16 - public void setDimension( int pDimension );
17 -
18 - public int getDimension();
19 -
20 - public int getDimensionMaxShrinkability();
21 -
22 - public int getDecorationSize();
23 -
24 - public void deligateSetDimensionFromWidget( int pDimension );
25 -
26 - public void contentChangedResizeToParent();
27 -
28 - public void distributeToChildrenChangedDimension();
29 -
30 - public static final ISizeableDimensionHelper NULL = new ISizeableDimensionHelper() {
31 - public String getWhat() {
32 - return "NULL";
33 - }
34 -
35 - public boolean isAdjustable() {
36 - return false;
37 - }
38 -
39 - public boolean isStretchable() {
40 - return false;
41 - }
42 -
43 - public void setStretchable( boolean pNewValue ) {
44 - }
45 -
46 - public boolean setPrefferredDimension() {
47 - return true;
48 - }
49 -
50 - public boolean adjustSizeBy( int pDelta ) {
51 - return true;
52 - }
53 -
54 - public void setDimension( int pDimension ) {
55 - }
56 -
57 - public void setDimension( Widget pWidget, int pDimension ) {
58 - }
59 -
60 - public int getDimension() {
61 - return 0;
62 - }
63 -
64 - public int getDimension( Widget pWidget ) {
65 - return 0;
66 - }
67 -
68 - public int getDimension( Element pElement ) {
69 - return 0;
70 - }
71 -
72 - public int getDimensionMaxShrinkability() {
73 - return 0;
74 - }
75 -
76 - public int getDecorationSize() {
77 - return 0;
78 - }
79 -
80 - public void deligateSetDimensionFromWidget( int pDimension ) {
81 - }
82 -
83 - public void contentChangedResizeToParent() {
84 - }
85 -
86 - public void distributeToChildrenChangedDimension() {
87 - }
88 -
89 - public int getPosition( Widget pWidget ) {
90 - return -1;
91 - }
92 -
93 - public int getPosition( Element pElement ) {
94 - return -1;
95 - }
96 -
97 - public void setStyleDimension( Element pElement, int pDimension ) {
98 - }
99 - };
100 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.client.widgets.nonpublic;
3 +
4 + import com.google.gwt.user.client.*;
5 + import com.google.gwt.user.client.ui.*;
6 +
7 + public interface ISizeableDimensionHelper extends IDimensionHelper {
8 + public boolean isStretchable();
9 +
10 + public void setStretchable( boolean pNewValue );
11 +
12 + public boolean setPrefferredDimension();
13 +
14 + public boolean adjustSizeBy( int pDelta );
15 +
16 + public void setDimension( int pDimension );
17 +
18 + public int getDimension();
19 +
20 + public int getDimensionMaxShrinkability();
21 +
22 + public int getDecorationSize();
23 +
24 + public void deligateSetDimensionFromWidget( int pDimension );
25 +
26 + public void contentChangedResizeToParent();
27 +
28 + public void distributeToChildrenChangedDimension();
29 +
30 + public static final ISizeableDimensionHelper NULL = new ISizeableDimensionHelper() {
31 + public String getWhat() {
32 + return "NULL";
33 + }
34 +
35 + public boolean isAdjustable() {
36 + return false;
37 + }
38 +
39 + public boolean isStretchable() {
40 + return false;
41 + }
42 +
43 + public void setStretchable( boolean pNewValue ) {
44 + }
45 +
46 + public boolean setPrefferredDimension() {
47 + return true;
48 + }
49 +
50 + public boolean adjustSizeBy( int pDelta ) {
51 + return true;
52 + }
53 +
54 + public void setDimension( int pDimension ) {
55 + }
56 +
57 + public void setDimension( Widget pWidget, int pDimension ) {
58 + }
59 +
60 + public int getDimension() {
61 + return 0;
62 + }
63 +
64 + public int getDimension( Widget pWidget ) {
65 + return 0;
66 + }
67 +
68 + public int getDimension( Element pElement ) {
69 + return 0;
70 + }
71 +
72 + public int getDimensionMaxShrinkability() {
73 + return 0;
74 + }
75 +
76 + public int getDecorationSize() {
77 + return 0;
78 + }
79 +
80 + public void deligateSetDimensionFromWidget( int pDimension ) {
81 + }
82 +
83 + public void contentChangedResizeToParent() {
84 + }
85 +
86 + public void distributeToChildrenChangedDimension() {
87 + }
88 +
89 + public int getPosition( Widget pWidget ) {
90 + return -1;
91 + }
92 +
93 + public int getPosition( Element pElement ) {
94 + return -1;
95 + }
96 +
97 + public void setStyleDimension( Element pElement, int pDimension ) {
98 + }
99 + };
100 + }