|
@@ -1,34 +1,34 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.client.widgets.nonpublic; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.commonfoundation.typeutils.*; |
5 |
|
- |
|
6 |
|
- |
import com.google.gwt.user.client.*; |
7 |
|
- |
|
8 |
|
- |
public class StyleContainerElements { |
9 |
|
- |
public static final Element NO_STYLING_ELEMENT = DOM.createDiv(); |
10 |
|
- |
|
11 |
|
- |
private Element mStyleElement; |
12 |
|
- |
private Element mContainerParentElement; |
13 |
|
- |
|
14 |
|
- |
public StyleContainerElements( Element pStyleElement, Element pContainerParentElement ) { |
15 |
|
- |
mStyleElement = pStyleElement; |
16 |
|
- |
Objects.assertNotNull( "ContainerParentElement", mContainerParentElement = pContainerParentElement ); |
17 |
|
- |
} |
18 |
|
- |
|
19 |
|
- |
public StyleContainerElements( Element pContainerParentElement ) { |
20 |
|
- |
this( null, pContainerParentElement ); |
21 |
|
- |
} |
22 |
|
- |
|
23 |
|
- |
public boolean hasStyleElement() { |
24 |
|
- |
return (mStyleElement != null); |
25 |
|
- |
} |
26 |
|
- |
|
27 |
|
- |
public Element getStyleElement() { |
28 |
|
- |
return hasStyleElement() ? mStyleElement : NO_STYLING_ELEMENT; |
29 |
|
- |
} |
30 |
|
- |
|
31 |
|
- |
public Element getContainerParentElement() { |
32 |
|
- |
return mContainerParentElement; |
33 |
|
- |
} |
34 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.client.widgets.nonpublic; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.commonfoundation.base.*; |
|
5 |
+ |
|
|
6 |
+ |
import com.google.gwt.user.client.*; |
|
7 |
+ |
|
|
8 |
+ |
public class StyleContainerElements { |
|
9 |
+ |
public static final Element NO_STYLING_ELEMENT = DOM.createDiv(); |
|
10 |
+ |
|
|
11 |
+ |
private Element mStyleElement; |
|
12 |
+ |
private Element mContainerParentElement; |
|
13 |
+ |
|
|
14 |
+ |
public StyleContainerElements( Element pStyleElement, Element pContainerParentElement ) { |
|
15 |
+ |
mStyleElement = pStyleElement; |
|
16 |
+ |
Confirm.isNotNull( "ContainerParentElement", mContainerParentElement = pContainerParentElement ); |
|
17 |
+ |
} |
|
18 |
+ |
|
|
19 |
+ |
public StyleContainerElements( Element pContainerParentElement ) { |
|
20 |
+ |
this( null, pContainerParentElement ); |
|
21 |
+ |
} |
|
22 |
+ |
|
|
23 |
+ |
public boolean hasStyleElement() { |
|
24 |
+ |
return (mStyleElement != null); |
|
25 |
+ |
} |
|
26 |
+ |
|
|
27 |
+ |
public Element getStyleElement() { |
|
28 |
+ |
return hasStyleElement() ? mStyleElement : NO_STYLING_ELEMENT; |
|
29 |
+ |
} |
|
30 |
+ |
|
|
31 |
+ |
public Element getContainerParentElement() { |
|
32 |
+ |
return mContainerParentElement; |
|
33 |
+ |
} |
|
34 |
+ |
} |