Ignore:
Timestamp:
06/15/11 11:46:36 (14 years ago)
Author:
lgiessmann
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/gdl-frontend/playground/GWT-JSNI/GWT-JSNI-example/src/gdl/isidor/us/client/GWT_JSNI_example.java

    r476 r478  
    22
    33import com.google.gwt.core.client.EntryPoint;
     4import com.google.gwt.event.dom.client.ClickEvent;
     5import com.google.gwt.event.dom.client.ClickHandler;
    46import com.google.gwt.user.client.DOM;
    57import com.google.gwt.user.client.Window;
     
    1517        private VerticalPanel mainPanel = new VerticalPanel();
    1618        private AbsolutePanel absolutePanel = new AbsolutePanel();
    17        
     19
    1820
    1921        /**
     
    2224        public void onModuleLoad() {
    2325                mainPanel.setBorderWidth(1);
    24                
     26
    2527                int mpWidth = 500;
    2628                int mpHeight = 500;
    2729                mainPanel.setPixelSize(mpWidth, mpHeight);
    2830                RootPanel.get("gwtCode").add(mainPanel);
    29                
     31
    3032                int apWidth = 290;
    3133                int apHeight = 290;
     
    3537                DOM.setStyleAttribute(absolutePanel.getElement(), "marginRight", "auto");
    3638                DOM.setStyleAttribute(absolutePanel.getElement(), "marginTop", (mpHeight - apHeight)/2 + "px");
    37                
     39
    3840                Button actionButton = new Button();
    3941                actionButton.setText("process");
    4042                absolutePanel.addStyleName("absolutePanel");
    41                
     43
    4244                absolutePanel.add(actionButton);
    4345                absolutePanel.setWidgetPosition(actionButton, apWidth - actionButton.getOffsetWidth(), apHeight - actionButton.getOffsetHeight());
    44         }
     46
     47
     48                actionButton.addClickHandler(new ClickHandler() {
     49
     50                        @Override
     51                        public void onClick(ClickEvent event) {
     52                               
     53                        }
     54                });
     55
     56        } //endmethod
    4557}
Note: See TracChangeset for help on using the changeset viewer.