Minor Update

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

View File

@ -95,6 +95,11 @@ public interface ResourceBundle extends ClientBundle {
@Source("pencil_32.png")
ImageResource rowEdit32();
@Source("table-row-insert_32.png")
ImageResource rowInsert32();
@Source("table-row-insert.png")
ImageResource rowInsert();
@Source("collapseall.png")
ImageResource collapseAll();

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 986 B

View File

@ -26,8 +26,9 @@ public class EditRowDialog extends Window {
protected RowRaw row;
protected DeleteRowsSession deleteRowsSession;
protected DeleteRowsProgressDialog deleteRowsProgressDialog;
private boolean addRow;
/**
* Edit selected row
*
@ -39,9 +40,11 @@ public class EditRowDialog extends Window {
this.trId = trId;
this.row = row;
this.eventBus = eventBus;
addRow = false;
if (row == null) {
UtilsGXT3.alert("Attentions", "No row selected");
} else {
initWindow();
EditRowPanel editRowPanel = new EditRowPanel(this, trId, row,
eventBus);
@ -58,6 +61,7 @@ public class EditRowDialog extends Window {
public EditRowDialog(TRId trId, EventBus eventBus) {
this.trId = trId;
this.eventBus = eventBus;
addRow = true;
initWindow();
EditRowPanel editRowPanel = new EditRowPanel(this, trId, eventBus);
add(editRowPanel);
@ -73,8 +77,11 @@ public class EditRowDialog extends Window {
setClosable(true);
setModal(true);
forceLayoutOnResize = true;
getHeader().setIcon(ResourceBundle.INSTANCE.rowEdit());
if (addRow) {
getHeader().setIcon(ResourceBundle.INSTANCE.rowInsert());
} else {
getHeader().setIcon(ResourceBundle.INSTANCE.rowEdit());
}
}
/**

View File

@ -599,8 +599,7 @@ public class EditRowPanel extends FramedPanel {
Log.debug("EditRow: "
+ caught.getLocalizedMessage());
if(caught instanceof TDGWTSessionExpiredException){
UtilsGXT3.alert("Attention",
((TDGWTSessionExpiredException)caught).getLocalizedMessage());
UtilsGXT3.alert("Attention",caught.getLocalizedMessage());
} else {
UtilsGXT3.alert("Error",
"Error in operation invocation!");

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 986 B