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:
parent
c3fc156044
commit
7d92927b8d
|
@ -26,14 +26,21 @@ public class EditRowDialog extends Window {
|
||||||
protected RowRaw row;
|
protected RowRaw row;
|
||||||
protected DeleteRowsSession deleteRowsSession;
|
protected DeleteRowsSession deleteRowsSession;
|
||||||
protected DeleteRowsProgressDialog deleteRowsProgressDialog;
|
protected DeleteRowsProgressDialog deleteRowsProgressDialog;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Edit selected row
|
||||||
|
*
|
||||||
|
* @param trId
|
||||||
|
* @param row
|
||||||
|
* @param eventBus
|
||||||
|
*/
|
||||||
public EditRowDialog(TRId trId, RowRaw row, EventBus eventBus) {
|
public EditRowDialog(TRId trId, RowRaw row, EventBus eventBus) {
|
||||||
this.trId = trId;
|
this.trId = trId;
|
||||||
this.row = row;
|
this.row = row;
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
if (row == null) {
|
if (row == null) {
|
||||||
UtilsGXT3.alert("Attentions",
|
UtilsGXT3.alert("Attentions", "No row selected");
|
||||||
"No row selected");
|
|
||||||
} else {
|
} else {
|
||||||
initWindow();
|
initWindow();
|
||||||
EditRowPanel editRowPanel = new EditRowPanel(this, trId, row,
|
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() {
|
protected void initWindow() {
|
||||||
setWidth(WIDTH);
|
setWidth(WIDTH);
|
||||||
setHeight(HEIGHT);
|
setHeight(HEIGHT);
|
||||||
|
|
Loading…
Reference in New Issue