Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-toolbox-widget@90821 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-01-31 18:14:22 +00:00 committed by Giancarlo Panichi
parent f96cda2374
commit 5f789b7405
2 changed files with 24 additions and 35 deletions

View File

@ -46,20 +46,32 @@ public class ToolBox extends TabPanel {
}
public void closeTabs() {
Log.debug("Close ToolBox Tabs");
public void startTabs(){
Log.debug("Start ToolBox Tabs");
addHelpPanel();
setActiveWidget(getWidget(0));
}
public void openPropertiesTabs() {
Log.debug("Open Properties Tabs");
if (trProperties == null) {
addTrProperties();
}
setActiveWidget(trProperties);
}
public void closePropertiesTabs() {
Log.debug("Close Properties Tabs");
if(trProperties!=null){
remove(trProperties);
trProperties=null;
}
//remove(taskPanel);
// remove(tdTaskMainPanel);
//tdTaskMainWindow=null;
//tdTaskController=null;
}
public void updateTabs() {
Log.debug("Update ToolBox Tabs");
if (trProperties != null) {
@ -73,26 +85,6 @@ public class ToolBox extends TabPanel {
}
public void startTabs(){
Log.debug("Start ToolBox Tabs");
addHelpPanel();
setActiveWidget(getWidget(0));
}
public void openTabs() {
Log.debug("Open ToolBox Tabs");
addTrProperties();
//addTdTaskPanel();
/*
* Label taskLabel = new Label("Task Properties");
* taskLabel.addStyleName("pad-text"); functionalityTab .add(taskLabel,
* new TabItemConfig("Task", true));
*/
setActiveWidget(trProperties);
}
protected void addHelpPanel() {
TabItemConfig propertiesItemConf = new TabItemConfig("Help", false);

View File

@ -96,18 +96,15 @@ public class ToolBoxPanel extends ContentPanel {
protected void doToolBoxPanelOpenSwitch(){
if (uiStateType == UIStateType.TR_OPEN) {
if (state == ToolBoxPanelState.OPENED) {
toolBox.closeTabs();
Log.debug("ToolBoxPanel Closed");
toolBox.openPropertiesTabs();
Log.debug("ToolBoxPanelSTate.OPENED Add Tabs");
} else {
enable();
expand();
state = ToolBoxPanelState.OPENED;
toolBox.openTabs();
toolBox.openPropertiesTabs();
}
} else {
Log.debug("ToolBoxPanel No table open");
}
@ -121,7 +118,7 @@ public class ToolBoxPanel extends ContentPanel {
}
public void closePanel(){
toolBox.closeTabs();
toolBox.closePropertiesTabs();
Log.debug("ToolBoxPanel Closed");
}