1 | |
package org.kuali.student.common.ui.client.widgets.field.layout.button; |
2 | |
|
3 | |
import org.kuali.student.common.ui.client.widgets.KSButton; |
4 | |
|
5 | |
import com.google.gwt.user.client.ui.Composite; |
6 | |
import com.google.gwt.user.client.ui.FlowPanel; |
7 | |
|
8 | |
public class ButtonLayout extends Composite{ |
9 | 0 | protected FlowPanel layout = new FlowPanel(); |
10 | |
|
11 | 0 | public ButtonLayout(){ |
12 | 0 | layout.addStyleName("ks-form-button-container"); |
13 | 0 | this.initWidget(layout); |
14 | 0 | } |
15 | |
|
16 | |
public void addButton(KSButton button){ |
17 | 0 | button.addStyleName("ks-button-right-margin"); |
18 | 0 | layout.add(button); |
19 | 0 | } |
20 | |
|
21 | |
public void removeButton(KSButton button){ |
22 | 0 | layout.remove(button); |
23 | 0 | } |
24 | |
|
25 | |
public void setVisible(boolean visible){ |
26 | 0 | layout.setVisible(visible); |
27 | 0 | } |
28 | |
} |