task sharing.. updating

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@69135 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2013-02-12 15:02:16 +00:00
parent a9aad53480
commit 0a1567cf8f
3 changed files with 4 additions and 21 deletions

View File

@ -23,7 +23,6 @@ public class WorskpacePortlet {
private GxtPathPanel toolBarPathPanel; private GxtPathPanel toolBarPathPanel;
private GxtGridFilterGroupPanel gridFilterGroupContainer; private GxtGridFilterGroupPanel gridFilterGroupContainer;
private GxtSeachAndFilterPanel searchAndFilterContainer; private GxtSeachAndFilterPanel searchAndFilterContainer;
private GxtGridFilterGroupPanel gridFilterContainer;
private GxtCardLayoutResultPanel gxtCardLayoutResultPanel; private GxtCardLayoutResultPanel gxtCardLayoutResultPanel;
public WorskpacePortlet(boolean activeGroup) { public WorskpacePortlet(boolean activeGroup) {
@ -33,13 +32,12 @@ public class WorskpacePortlet {
this.toolBarPathPanel = new GxtPathPanel(); this.toolBarPathPanel = new GxtPathPanel();
this.searchAndFilterContainer = new GxtSeachAndFilterPanel(this.toolBarPathPanel.getToolBarPathPanel()); this.searchAndFilterContainer = new GxtSeachAndFilterPanel(this.toolBarPathPanel.getToolBarPathPanel());
this.gridFilterContainer = new GxtGridFilterGroupPanel(false);
this.gridFilterGroupContainer = new GxtGridFilterGroupPanel(activeGroup); this.gridFilterGroupContainer = new GxtGridFilterGroupPanel(activeGroup);
this.listViewContainer = new GxtListView(); this.listViewContainer = new GxtListView();
this.detailsContainer = new GxtDetailsContainer(); this.detailsContainer = new GxtDetailsContainer();
this.gxtCardLayoutResultPanel = new GxtCardLayoutResultPanel(gridFilterContainer, gridFilterGroupContainer, listViewContainer, detailsContainer); this.gxtCardLayoutResultPanel = new GxtCardLayoutResultPanel(gridFilterGroupContainer, listViewContainer, detailsContainer);
} }
@ -82,15 +80,6 @@ public class WorskpacePortlet {
return explorerPanel; return explorerPanel;
} }
public GxtGridFilterGroupPanel getGridFilterContainer() {
return gridFilterContainer;
}
public void setGridFilterContainer(GxtGridFilterGroupPanel gridFilterContainer) {
this.gridFilterContainer = gridFilterContainer;
}
public GxtCardLayoutResultPanel getGxtCardLayoutResultPanel() { public GxtCardLayoutResultPanel getGxtCardLayoutResultPanel() {
return gxtCardLayoutResultPanel; return gxtCardLayoutResultPanel;
} }

View File

@ -20,19 +20,15 @@ public class GxtCardLayoutResultPanel extends LayoutContainer{
private CardLayout cardLayout = new CardLayout(); private CardLayout cardLayout = new CardLayout();
private GxtItemsPanel itemPanel; private GxtItemsPanel itemPanel;
private GxtGridFilterGroupPanel gridFilterViewContainer;
private GxtListView iconsViewContainer; private GxtListView iconsViewContainer;
private GxtGridFilterGroupPanel gridGroupViewContainer; private GxtGridFilterGroupPanel gridGroupViewContainer;
private ContentPanel activePanel = null; private ContentPanel activePanel = null;
private GxtToolBarItem toolBarItem; private GxtToolBarItem toolBarItem;
public GxtCardLayoutResultPanel( public GxtCardLayoutResultPanel(
GxtGridFilterGroupPanel gridFilterContainer,
GxtGridFilterGroupPanel gridFilterGroupContainer, GxtGridFilterGroupPanel gridFilterGroupContainer,
GxtListView listViewContainer, GxtListView listViewContainer,
GxtDetailsContainer detailsContainer) { GxtDetailsContainer detailsContainer) {
this.gridFilterViewContainer = gridFilterContainer;
this.iconsViewContainer = listViewContainer; this.iconsViewContainer = listViewContainer;
this.gridGroupViewContainer = gridFilterGroupContainer; this.gridGroupViewContainer = gridFilterGroupContainer;
@ -43,7 +39,7 @@ public class GxtCardLayoutResultPanel extends LayoutContainer{
private void instanceItemsPanel(){ private void instanceItemsPanel(){
this.toolBarItem = new GxtToolBarItem(gridGroupViewContainer); //instance toolbar this.toolBarItem = new GxtToolBarItem(gridGroupViewContainer); //instance toolbar
this.itemPanel = new GxtItemsPanel(gridFilterViewContainer, iconsViewContainer, gridGroupViewContainer, toolBarItem); this.itemPanel = new GxtItemsPanel(iconsViewContainer, gridGroupViewContainer, toolBarItem);
} }

View File

@ -13,13 +13,11 @@ import com.extjs.gxt.ui.client.widget.layout.FitLayout;
*/ */
public class GxtItemsPanel extends ContentPanel{ public class GxtItemsPanel extends ContentPanel{
private GxtToolBarItem toolBarItem; private GxtToolBarItem toolBarItem;
private GxtGridFilterGroupPanel gridFilterViewContainer;
private GxtListView iconsViewContainer; private GxtListView iconsViewContainer;
private GxtGridFilterGroupPanel gridGroupViewContainer; private GxtGridFilterGroupPanel gridGroupViewContainer;
public GxtItemsPanel(GxtGridFilterGroupPanel gridFilterViewContainer,GxtListView iconsViewContainer, GxtGridFilterGroupPanel gridGroupViewContainer, GxtToolBarItem toolBarItem) { public GxtItemsPanel(GxtListView iconsViewContainer, GxtGridFilterGroupPanel gridGroupViewContainer, GxtToolBarItem toolBarItem) {
this.gridFilterViewContainer = gridFilterViewContainer;
this.iconsViewContainer = iconsViewContainer; this.iconsViewContainer = iconsViewContainer;
this.gridGroupViewContainer = gridGroupViewContainer; this.gridGroupViewContainer = gridGroupViewContainer;
this.toolBarItem = toolBarItem; this.toolBarItem = toolBarItem;