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:
parent
f96cda2374
commit
5f789b7405
|
@ -46,18 +46,30 @@ 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){
|
if(trProperties!=null){
|
||||||
remove(trProperties);
|
remove(trProperties);
|
||||||
trProperties=null;
|
trProperties=null;
|
||||||
}
|
}
|
||||||
|
|
||||||
//remove(taskPanel);
|
|
||||||
// remove(tdTaskMainPanel);
|
|
||||||
//tdTaskMainWindow=null;
|
|
||||||
|
|
||||||
//tdTaskController=null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateTabs() {
|
public void updateTabs() {
|
||||||
|
@ -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() {
|
protected void addHelpPanel() {
|
||||||
TabItemConfig propertiesItemConf = new TabItemConfig("Help", false);
|
TabItemConfig propertiesItemConf = new TabItemConfig("Help", false);
|
||||||
|
|
||||||
|
|
|
@ -96,18 +96,15 @@ public class ToolBoxPanel extends ContentPanel {
|
||||||
protected void doToolBoxPanelOpenSwitch(){
|
protected void doToolBoxPanelOpenSwitch(){
|
||||||
if (uiStateType == UIStateType.TR_OPEN) {
|
if (uiStateType == UIStateType.TR_OPEN) {
|
||||||
if (state == ToolBoxPanelState.OPENED) {
|
if (state == ToolBoxPanelState.OPENED) {
|
||||||
|
toolBox.openPropertiesTabs();
|
||||||
toolBox.closeTabs();
|
Log.debug("ToolBoxPanelSTate.OPENED Add Tabs");
|
||||||
Log.debug("ToolBoxPanel Closed");
|
|
||||||
} else {
|
} else {
|
||||||
enable();
|
enable();
|
||||||
expand();
|
expand();
|
||||||
state = ToolBoxPanelState.OPENED;
|
state = ToolBoxPanelState.OPENED;
|
||||||
toolBox.openTabs();
|
toolBox.openPropertiesTabs();
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
Log.debug("ToolBoxPanel No table open");
|
Log.debug("ToolBoxPanel No table open");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,7 +118,7 @@ public class ToolBoxPanel extends ContentPanel {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void closePanel(){
|
public void closePanel(){
|
||||||
toolBox.closeTabs();
|
toolBox.closePropertiesTabs();
|
||||||
Log.debug("ToolBoxPanel Closed");
|
Log.debug("ToolBoxPanel Closed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue