Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@95746 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-05-16 08:21:04 +00:00 committed by Giancarlo Panichi
parent c3fc156044
commit 7d92927b8d
1 changed files with 25 additions and 3 deletions

View File

@ -26,14 +26,21 @@ public class EditRowDialog extends Window {
protected RowRaw row;
protected DeleteRowsSession deleteRowsSession;
protected DeleteRowsProgressDialog deleteRowsProgressDialog;
/**
* Edit selected row
*
* @param trId
* @param row
* @param eventBus
*/
public EditRowDialog(TRId trId, RowRaw row, EventBus eventBus) {
this.trId = trId;
this.row = row;
this.eventBus = eventBus;
if (row == null) {
UtilsGXT3.alert("Attentions",
"No row selected");
UtilsGXT3.alert("Attentions", "No row selected");
} else {
initWindow();
EditRowPanel editRowPanel = new EditRowPanel(this, trId, row,
@ -42,6 +49,21 @@ public class EditRowDialog extends Window {
}
}
/**
* Add a new row to the table
*
* @param trId
* @param eventBus
*/
public EditRowDialog(TRId trId, EventBus eventBus) {
this.trId = trId;
this.eventBus = eventBus;
initWindow();
EditRowPanel editRowPanel = new EditRowPanel(this, trId, eventBus);
add(editRowPanel);
}
protected void initWindow() {
setWidth(WIDTH);
setHeight(HEIGHT);