Fixed hide window

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@84401 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-10-25 17:29:08 +00:00
parent c5b2b5f3b2
commit 8e153b84f0
3 changed files with 17 additions and 17 deletions

View File

@ -189,6 +189,19 @@ public class TabularDataController {
eventBus.fireEvent(new UIStateEvent(UIStateType.TR_OPEN));
}
protected void closeTabularResources() {
if (uiState == UIStateType.TR_OPEN) {
tabularData.closeTable();
uiState = UIStateType.TR_CLOSE;
eventBus.fireEvent(new UIStateEvent(UIStateType.TR_CLOSE));
if (uiProperties == UIProperties.OPENED) {
functionalityPanel.collapse();
functionalityPanel.disable();
uiProperties = UIProperties.CLOSED;
functionalityTab.remove(trProperties);
}
}
}
protected void openWizard(){
eventBus.fireEvent(new UIStateEvent(UIStateType.WIZARD_OPEN));
}
@ -424,21 +437,8 @@ public class TabularDataController {
*/
}
/**
*
*/
protected void closeTabularResources() {
if (uiState == UIStateType.TR_OPEN) {
tabularData.closeTable();
uiState = UIStateType.TR_CLOSE;
if (uiProperties == UIProperties.OPENED) {
functionalityPanel.collapse();
functionalityPanel.disable();
uiProperties = UIProperties.CLOSED;
functionalityTab.remove(trProperties);
}
}
}
/**
*

View File

@ -120,7 +120,7 @@ public class FileToolBar {
closeButton = new TextButton("Close",
TabularDataResources.INSTANCE.close());
propertiesButton.disable();
closeButton.disable();
closeButton.setId("closeButton");
closeButton.setToolTip("Close table");

View File

@ -27,7 +27,7 @@
<!-- Specify the app entry point class. -->
<entry-point class='org.gcube.portlets.user.td.client.TabularDataPortlet' />
<set-property name="log_DivLogger" value="DISABLED" />
<set-property name="log_DivLogger" value="ENABLED" />
<set-property name="log_ConsoleLogger" value="ENABLED" />
<set-property name="log_FirebugLogger" value="ENABLED" />
<set-property name="log_GWTLogger" value="ENABLED" />