[svn r382] hacked jsf frontend working
This commit is contained in:
parent
37fdf22282
commit
9a605f177a
123 changed files with 7035 additions and 2418 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue