1 | |
package org.kuali.student.common.ui.client.configurable.mvc.layouts; |
2 | |
|
3 | |
import org.kuali.student.common.ui.client.configurable.mvc.LayoutController; |
4 | |
import org.kuali.student.common.ui.client.mvc.View; |
5 | |
|
6 | |
import com.google.gwt.user.client.ui.FlowPanel; |
7 | |
|
8 | |
public class BasicLayout extends LayoutController{ |
9 | 0 | private FlowPanel viewContainer = new FlowPanel(); |
10 | |
|
11 | |
public BasicLayout(String controllerId) { |
12 | 0 | super(controllerId); |
13 | 0 | this.initWidget(viewContainer); |
14 | 0 | } |
15 | |
|
16 | |
@Override |
17 | |
protected void hideView(View view) { |
18 | 0 | viewContainer.clear(); |
19 | 0 | } |
20 | |
|
21 | |
@Override |
22 | |
protected void renderView(View view) { |
23 | 0 | viewContainer.add(view.asWidget()); |
24 | 0 | } |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
@Override |
31 | |
public void updateModel() { |
32 | 0 | this.updateModelFromCurrentView(); |
33 | 0 | } |
34 | |
} |