]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.cms.ux/src/org/argeo/cms/ux/widgets/DataPart.java
1 package org
.argeo
.cms
.ux
.widgets
;
3 import java
.util
.function
.Consumer
;
5 public interface DataPart
<INPUT
, TYPE
> {
6 void setInput(INPUT data
);
10 void onSelected(Consumer
<TYPE
> onSelected
);
12 Consumer
<TYPE
> getOnSelected();
14 void onAction(Consumer
<TYPE
> onAction
);
16 Consumer
<TYPE
> getOnAction();
20 void addView(DataView
<INPUT
, TYPE
> view
);
22 void removeView(DataView
<INPUT
, TYPE
> view
);
24 // void select(TYPE data);
26 // TYPE getSelected();