litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/StyleContainerElements.java
|
@@ -5,36 +5,30 @@ |
5 |
5 |
|
|
6 |
6 |
|
import com.google.gwt.user.client.*; |
7 |
7 |
|
|
8 |
|
- |
public class StyleContainerElements |
9 |
|
- |
{ |
|
8 |
+ |
public class StyleContainerElements { |
10 |
9 |
|
public static final Element NO_STYLING_ELEMENT = DOM.createDiv(); |
11 |
10 |
|
|
12 |
11 |
|
private Element mStyleElement; |
13 |
12 |
|
private Element mContainerParentElement; |
14 |
13 |
|
|
15 |
|
- |
public StyleContainerElements( Element pStyleElement, Element pContainerParentElement ) |
16 |
|
- |
{ |
|
14 |
+ |
public StyleContainerElements( Element pStyleElement, Element pContainerParentElement ) { |
17 |
15 |
|
mStyleElement = pStyleElement; |
18 |
16 |
|
Objects.assertNotNull( "ContainerParentElement", mContainerParentElement = pContainerParentElement ); |
19 |
17 |
|
} |
20 |
18 |
|
|
21 |
|
- |
public StyleContainerElements( Element pContainerParentElement ) |
22 |
|
- |
{ |
|
19 |
+ |
public StyleContainerElements( Element pContainerParentElement ) { |
23 |
20 |
|
this( null, pContainerParentElement ); |
24 |
21 |
|
} |
25 |
22 |
|
|
26 |
|
- |
public boolean hasStyleElement() |
27 |
|
- |
{ |
|
23 |
+ |
public boolean hasStyleElement() { |
28 |
24 |
|
return (mStyleElement != null); |
29 |
25 |
|
} |
30 |
26 |
|
|
31 |
|
- |
public Element getStyleElement() |
32 |
|
- |
{ |
|
27 |
+ |
public Element getStyleElement() { |
33 |
28 |
|
return hasStyleElement() ? mStyleElement : NO_STYLING_ELEMENT; |
34 |
29 |
|
} |
35 |
30 |
|
|
36 |
|
- |
public Element getContainerParentElement() |
37 |
|
- |
{ |
|
31 |
+ |
public Element getContainerParentElement() { |
38 |
32 |
|
return mContainerParentElement; |
39 |
33 |
|
} |
40 |
34 |
|
} |