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 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);
|
||||
|
|
Loading…
Reference in New Issue