]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.cms.ux/src/org/argeo/cms/ux/widgets/DataPart.java
Improve documentation.
[lgpl/argeo-commons.git] / org.argeo.cms.ux / src / org / argeo / cms / ux / widgets / DataPart.java
1 package org.argeo.cms.ux.widgets;
2
3 import java.util.function.Consumer;
4
5 public interface DataPart<INPUT, TYPE> {
6 void setInput(INPUT data);
7
8 INPUT getInput();
9
10 void onSelected(Consumer<TYPE> onSelected);
11
12 Consumer<TYPE> getOnSelected();
13
14 void onAction(Consumer<TYPE> onAction);
15
16 Consumer<TYPE> getOnAction();
17
18 void refresh();
19
20 void addView(DataView<INPUT, TYPE> view);
21
22 void removeView(DataView<INPUT, TYPE> view);
23
24 // void select(TYPE data);
25 //
26 // TYPE getSelected();
27
28 }