Compiles again
parent
d6e2b8b7a9
commit
eaff75777f
|
|
@ -21,7 +21,7 @@ import org.scientificcms.contenttypes.sciproject.SciProjectConstants;
|
|||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class SciProjectContactsStep extends SimpleEditStep {
|
||||
|
||||
|
||||
private ContactableEntity selectedContact;
|
||||
private String selectedContactType;
|
||||
|
||||
|
|
@ -44,19 +44,20 @@ public class SciProjectContactsStep extends SimpleEditStep {
|
|||
|
||||
final BasicItemForm addContactSheet = new SciProjectContactAddForm(
|
||||
itemModel, this, selectedLanguageParam);
|
||||
|
||||
|
||||
add(SciProjectUiConstants.ADD_CONTACT_SHEET_NAME,
|
||||
new GlobalizedMessage(
|
||||
"cms.contenttypes.ui.genericorgaunit.add_contact",
|
||||
SciProjectConstants.SCI_PROJECT_BUNDLE),
|
||||
new WorkflowLockedComponentAccess(addContactSheet, itemModel),
|
||||
addContactSheet.getSaveCancelSection().getCancelButton());
|
||||
|
||||
final SciProjectContactsTable contactsTable
|
||||
= new SciProjectContactsTable(itemModel, this);
|
||||
|
||||
final SciProjectContactsTable contactsTable
|
||||
= new SciProjectContactsTable(
|
||||
itemModel, this);
|
||||
setDisplayComponent(contactsTable);
|
||||
}
|
||||
|
||||
|
||||
public ContactableEntity getSelectedContact() {
|
||||
return selectedContact;
|
||||
}
|
||||
|
|
@ -72,6 +73,5 @@ public class SciProjectContactsStep extends SimpleEditStep {
|
|||
public void setSelectedContactType(final String selectedContactType) {
|
||||
this.selectedContactType = selectedContactType;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.FormProcessException;
|
||||
import com.arsdigita.bebop.Table;
|
||||
import com.arsdigita.bebop.event.TableActionEvent;
|
||||
import com.arsdigita.bebop.event.TableActionListener;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
public class SciProjectContactsTable
|
||||
extends Table
|
||||
implements TableActionListener {
|
||||
|
||||
private static final Logger LOGGER = LogManager
|
||||
.getLogger(SciProjectContactsTable.class);
|
||||
|
||||
private final static String TABLE_COL_EDIT = "table_col_edit";
|
||||
private final static String TABLE_COL_EDIT_ASSOC = "table_col_edit_assoc";
|
||||
private final static String TABLE_COL_DEL = "table_col_del";
|
||||
private final static String TABLE_COL_UP = "table_col_up";
|
||||
private final static String TABLE_COL_DOWN = "table_col_down";
|
||||
|
||||
private final ItemSelectionModel itemModel;
|
||||
private final SciProjectContactsStep editStep;
|
||||
|
||||
public SciProjectContactsTable(final ItemSelectionModel itemModel,
|
||||
final SciProjectContactsStep editStep) {
|
||||
|
||||
super();
|
||||
|
||||
this.itemModel = itemModel;
|
||||
this.editStep = editStep;
|
||||
|
||||
throw new UnsupportedOperationException("ToDo");
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cellSelected(final TableActionEvent event) throws FormProcessException {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
||||
@Override
|
||||
public void headSelected(final TableActionEvent event) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue