2
Fork 0

[svn r382] hacked jsf frontend working

This commit is contained in:
willemc 2009-08-11 20:31:29 +02:00
parent 37fdf22282
commit 9a605f177a
123 changed files with 7035 additions and 2418 deletions

View file

@ -29,6 +29,7 @@ package com.idcanet.vasc.impl.actions;
import com.idcanet.vasc.core.VascEntry;
import com.idcanet.vasc.core.actions.AbstractVascAction;
import com.idcanet.vasc.core.actions.RowVascAction;
import com.idcanet.vasc.core.entry.VascEntryEventListener.VascEventType;
/**
*
@ -37,19 +38,21 @@ import com.idcanet.vasc.core.actions.RowVascAction;
*/
public class EditRowAction extends AbstractVascAction implements RowVascAction {
public EditRowAction() {
setId("editRowAction");
setName("vasc.action.edit.name");
setToolTip("vasc.action.edit.tooltip");
setImage("vasc.action.edit.image");
static public final String ACTION_ID = "editRowAction";
protected String getActionId() {
return ACTION_ID;
}
public void doRowAction(VascEntry entry,Object rowObject) throws Exception {
if (rowObject==null) {
return;
return; // nothing selected
}
entry.getVascFrontendData().getVascFrontend().renderEdit(rowObject);
entry.getVascFrontendData().setEditCreate(false);
entry.getVascFrontendData().getVascFrontendHelper().fireVascEvent(entry, VascEventType.DATA_SELECT, rowObject);
entry.getVascFrontendData().setEntryDataObject(rowObject);
entry.getVascFrontendData().getVascFrontend().renderEdit();
}