blob: 2b660d40c8115dbff67c623777819b9c708d3a20 [file] [log] [blame]
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.sample.expenses.client.place;
import com.google.gwt.user.client.TakesValue;
import com.google.gwt.user.client.ui.IsWidget;
/**
* Implemented by views that show the details of an object.
*
* @param <P> the type of object to show
*/
public interface ProxyDetailsView<P> extends TakesValue<P>, IsWidget {
/**
* Implemented by the owner of the view.
*/
interface Delegate {
void deleteClicked();
void editClicked();
}
boolean confirm(String msg);
void setDelegate(Delegate delegate);
}