Remove references to setProjectTypes that are not used
Confuses developers into thinking an application period's project types are modified in more places than they actually are.
This commit is contained in:
parent
9b26843570
commit
b12d3670a5
view/src/main/java/se/su/dsv/scipro
applicationperiod
datatables/target
projectpartner
@ -123,13 +123,7 @@ public class AdminApplicationPeriodsPanel extends Panel {
|
|||||||
item.add(
|
item.add(
|
||||||
new DisplayMultiplesPanel<>(
|
new DisplayMultiplesPanel<>(
|
||||||
s,
|
s,
|
||||||
new ListAdapterModel<>(
|
new ListAdapterModel<>(iModel.map(ApplicationPeriod::getProjectTypes))
|
||||||
LambdaModel.of(
|
|
||||||
iModel,
|
|
||||||
ApplicationPeriod::getProjectTypes,
|
|
||||||
ApplicationPeriod::setProjectTypes
|
|
||||||
)
|
|
||||||
)
|
|
||||||
) {
|
) {
|
||||||
@Override
|
@Override
|
||||||
public Component getComponent(String componentId, IModel<ProjectType> t) {
|
public Component getComponent(String componentId, IModel<ProjectType> t) {
|
||||||
|
@ -22,12 +22,7 @@ public class AddTargetLinkPanel extends Panel {
|
|||||||
public AddTargetLinkPanel(String id, final IModel<ApplicationPeriod> model) {
|
public AddTargetLinkPanel(String id, final IModel<ApplicationPeriod> model) {
|
||||||
super(id, model);
|
super(id, model);
|
||||||
add(
|
add(
|
||||||
new ListView<>(
|
new ListView<>("list", new ListAdapterModel<>(model.map(ApplicationPeriod::getProjectTypes))) {
|
||||||
"list",
|
|
||||||
new ListAdapterModel<>(
|
|
||||||
LambdaModel.of(model, ApplicationPeriod::getProjectTypes, ApplicationPeriod::setProjectTypes)
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
@Override
|
@Override
|
||||||
protected void populateItem(ListItem<ProjectType> item) {
|
protected void populateItem(ListItem<ProjectType> item) {
|
||||||
item.add(new Label("pc", item.getModelObject().getName()));
|
item.add(new Label("pc", item.getModelObject().getName()));
|
||||||
|
@ -76,13 +76,7 @@ public class ProjectPartnerPage extends AbstractIdeaProjectPage implements MenuH
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
final IModel<? extends List<ProjectType>> matchableTypes = getMatchableTypes(
|
final IModel<? extends List<ProjectType>> matchableTypes = getMatchableTypes(
|
||||||
new ListAdapterModel<>(
|
new ListAdapterModel<>(applicationPeriod.map(ApplicationPeriod::getProjectTypes))
|
||||||
LambdaModel.of(
|
|
||||||
applicationPeriod,
|
|
||||||
ApplicationPeriod::getProjectTypes,
|
|
||||||
ApplicationPeriod::setProjectTypes
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
panelContainer.add(
|
panelContainer.add(
|
||||||
new ListView<>("ads", matchableTypes) {
|
new ListView<>("ads", matchableTypes) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user