正如上面的标题,我希望 showDialog() 的行为显示在新的浏览器选项卡上,但我不知道是否为此编写了任何 Java 代码。
我的代码:
public class ListSportImagesMethod2Action extends TabBaseAction {
private int row;
@Inject
private Tab tab;
public void execute() throws Exception {
Map sportKey = (Map) tab.getTableModel().getObjectAt(row);
//Map sportKey = (Map) getView().getSubview("sport").getValues();
int sportId = ((Integer) sportKey.get("sportId")).intValue();
sportKey.put("sportId", sportId);
showDialog(); //What should it replace with?
getView().setModelName("Sport");
getView().setValues(sportKey); System.out.println("data============" + getView().getValues());
getView().findObject();
getView().setKeyEditable(false);
getView().setEditable(true);
setControllers("Sport");
}
public int getRow() {
return row;
}
public void setRow(int row) {
this.row = row;
}
public Tab getTab() {
return tab;
}
public void setTab(Tab tab) {
this.tab = tab;
}
}
PS:我知道我可以使用链接进行重定向,但是使用这种方法,我无法获取父母的数据。我还在努力。