Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -1,64 +1,64 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.client.widgets;
3 -
4 - import org.litesoft.GWT.client.widgets.nonpublic.*;
5 -
6 - import com.google.gwt.event.dom.client.*;
7 - import com.google.gwt.event.shared.*;
8 - import com.google.gwt.user.client.*;
9 - import com.google.gwt.user.client.ui.*;
10 -
11 - public class SizeableFocusPanel extends AbstractSizeableSimplePanel implements HasClickHandlers // see FocusPanel for all the other stuff it SHOULD do!
12 - {
13 - protected SizeableFocusPanel( boolean pOverflowHidden, String pStyle ) {
14 - initializeElements( getHelper().create_OeTable_SeDiv_IeFocusDiv( pOverflowHidden ), pStyle );
15 - }
16 -
17 - public SizeableFocusPanel( boolean pOverflowHidden ) {
18 - this( pOverflowHidden, "LayoutSizeableFocusPanel" );
19 - }
20 -
21 - public SizeableFocusPanel() {
22 - this( true );
23 - }
24 -
25 - public SizeableFocusPanel( Widget pWidget ) {
26 - this();
27 - setWidget( pWidget );
28 - }
29 -
30 - public SizeableFocusPanel( boolean pOverflowHidden, Widget pWidget ) {
31 - this( pOverflowHidden );
32 - setWidget( pWidget );
33 - }
34 -
35 - public SizeableFocusPanel style( String pStyleName ) {
36 - addStyleName( pStyleName );
37 - return this;
38 - }
39 -
40 - public SizeableFocusPanel stretchable() {
41 - LLstretchable();
42 - return this;
43 - }
44 -
45 - public SizeableFocusPanel stretchableVertically() {
46 - LLstretchableVertically();
47 - return this;
48 - }
49 -
50 - public SizeableFocusPanel stretchableHorizontally() {
51 - LLstretchableHorizontally();
52 - return this;
53 - }
54 -
55 - @Override
56 - public HandlerRegistration addClickHandler( ClickHandler handler ) {
57 - return addDomHandler( handler, ClickEvent.getType() );
58 - }
59 -
60 - @Override
61 - public void sinkEvents( int eventBitsToAdd ) {
62 - DOM.sinkEvents( getHelper().getInnerElement(), eventBitsToAdd | DOM.getEventsSunk( getElement() ) );
63 - }
64 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.client.widgets;
3 +
4 + import org.litesoft.GWT.client.widgets.nonpublic.*;
5 +
6 + import com.google.gwt.event.dom.client.*;
7 + import com.google.gwt.event.shared.*;
8 + import com.google.gwt.user.client.*;
9 + import com.google.gwt.user.client.ui.*;
10 +
11 + public class SizeableFocusPanel extends AbstractSizeableSimplePanel implements HasClickHandlers // see FocusPanel for all the other stuff it SHOULD do!
12 + {
13 + protected SizeableFocusPanel( boolean pOverflowHidden, String pStyle ) {
14 + initializeElements( getHelper().create_OeTable_SeDiv_IeFocusDiv( pOverflowHidden ), pStyle );
15 + }
16 +
17 + public SizeableFocusPanel( boolean pOverflowHidden ) {
18 + this( pOverflowHidden, "LayoutSizeableFocusPanel" );
19 + }
20 +
21 + public SizeableFocusPanel() {
22 + this( true );
23 + }
24 +
25 + public SizeableFocusPanel( Widget pWidget ) {
26 + this();
27 + setWidget( pWidget );
28 + }
29 +
30 + public SizeableFocusPanel( boolean pOverflowHidden, Widget pWidget ) {
31 + this( pOverflowHidden );
32 + setWidget( pWidget );
33 + }
34 +
35 + public SizeableFocusPanel style( String pStyleName ) {
36 + addStyleName( pStyleName );
37 + return this;
38 + }
39 +
40 + public SizeableFocusPanel stretchable() {
41 + LLstretchable();
42 + return this;
43 + }
44 +
45 + public SizeableFocusPanel stretchableVertically() {
46 + LLstretchableVertically();
47 + return this;
48 + }
49 +
50 + public SizeableFocusPanel stretchableHorizontally() {
51 + LLstretchableHorizontally();
52 + return this;
53 + }
54 +
55 + @Override
56 + public HandlerRegistration addClickHandler( ClickHandler handler ) {
57 + return addDomHandler( handler, ClickEvent.getType() );
58 + }
59 +
60 + @Override
61 + public void sinkEvents( int eventBitsToAdd ) {
62 + DOM.sinkEvents( getHelper().getInnerElement(), eventBitsToAdd | DOM.getEventsSunk( getElement() ) );
63 + }
64 + }