| 1 | /** |
| 2 | * Copyright 2005-2011 Steve McDuff d-duff@users.sourceforge.net |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | package org.deduced.viewer.web.shared; |
| 17 | |
| 18 | import com.google.gwt.user.client.ui.Button; |
| 19 | import com.google.gwt.user.client.ui.UIObject; |
| 20 | |
| 21 | /** |
| 22 | * ButtonModel |
| 23 | * |
| 24 | * @author Steve McDuff |
| 25 | * |
| 26 | */ |
| 27 | public class ButtonModel extends ButtonBaseModel |
| 28 | { |
| 29 | |
| 30 | /** |
| 31 | * serialVersionUID |
| 32 | */ |
| 33 | private static final long serialVersionUID = -7457268752933696741L; |
| 34 | |
| 35 | /** |
| 36 | * |
| 37 | * ButtonModel constructor |
| 38 | */ |
| 39 | public ButtonModel() |
| 40 | { |
| 41 | |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * (non-JSDoc) |
| 46 | * |
| 47 | * @see org.deduced.viewer.web.shared.WidgetModel#createUIObject() |
| 48 | */ |
| 49 | @Override |
| 50 | public UIObject createUIObject() |
| 51 | { |
| 52 | return new Button(); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * get Button |
| 57 | * |
| 58 | * @return the button |
| 59 | */ |
| 60 | public Button getButton() |
| 61 | { |
| 62 | return (Button) getUIObject(); |
| 63 | } |
| 64 | |
| 65 | } |