Changeset 22 for gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java
- Timestamp:
- 08/24/11 14:47:39 (14 years ago)
- Location:
- gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/GSSimStudio.java
r19 r22 851 851 @BlazeDsMethod() 852 852 public GSSimStudioModel setSelectedResourceIndex(int index, Integer res) { 853 return delegate (new Object[]{res}, index);853 return delegateResource(new Object[]{res}, index); 854 854 } 855 855 … … 857 857 public GSSimStudioModel getResourcesFromDb(int index, Integer expId, String name, 858 858 String type) { 859 return delegate (new Object[]{expId, name, type}, index);859 return delegateResource(new Object[]{expId, name, type}, index); 860 860 } 861 861 … … 863 863 public GSSimStudioModel getResourceAllTimelineFromDb(int index, Integer resourceId, Integer expId, 864 864 Long minTimestampMilis, Long maxTimestampMilis) { 865 return delegate (new Object[]{resourceId, expId, minTimestampMilis, maxTimestampMilis}, index);865 return delegateResource(new Object[]{resourceId, expId, minTimestampMilis, maxTimestampMilis}, index); 866 866 } 867 867 … … 869 869 public GSSimStudioModel getResourceEnTimelineFromDb(int index, Integer resourceId, Integer expId, 870 870 Long minTimestampMilis, Long maxTimestampMilis) { 871 return delegate (new Object[]{resourceId, expId, minTimestampMilis, maxTimestampMilis}, index);871 return delegateResource(new Object[]{resourceId, expId, minTimestampMilis, maxTimestampMilis}, index); 872 872 } 873 873 874 874 @BlazeDsMethod() 875 875 public GSSimStudioModel getExperimentConfiguration(int index, Integer expId) { 876 return delegate (new Object[]{expId}, index);877 } 878 879 protected GSSimStudioModel delegate (Object[] parameters, Integer index) {876 return delegateResource(new Object[]{expId}, index); 877 } 878 879 protected GSSimStudioModel delegateResource(Object[] parameters, Integer index) { 880 880 GSSimStudioModel gssimStudioModel = (GSSimStudioModel) VineFlexUtilClass.getUIModel(); 881 881 gssimStudioModel.setExperimentListChanged(false); … … 910 910 } 911 911 VineFlexUtilClass.invokeDestination(ExperimentComparisonChart.class, parameters, experimentComparisonChartModel); 912 return gssimStudioModel; 913 } 914 915 @BlazeDsMethod() 916 public GSSimStudioModel getTasksAllocationsFromDb(int index, Integer expId) { 917 return delegateGannt(new Object[]{expId}, index); 918 } 919 920 protected GSSimStudioModel delegateGannt(Object[] parameters, Integer index) { 921 GSSimStudioModel gssimStudioModel = (GSSimStudioModel) VineFlexUtilClass.getUIModel(); 922 gssimStudioModel.setExperimentListChanged(false); 923 GanntChartModel ganntChartModel = (GanntChartModel) gssimStudioModel.getGanntChartComponents().get(index.toString()); 924 if (ganntChartModel == null) 925 { 926 ganntChartModel = new GanntChartModel(); 927 gssimStudioModel.getResourceChartComponents().put(index.toString(), ganntChartModel); 928 } 929 VineFlexUtilClass.invokeDestination(GanntChart.class, parameters, ganntChartModel); 912 930 return gssimStudioModel; 913 931 } -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/GSSimStudioModel.java
r15 r22 58 58 public void setResourceChartComponents(HashMap resourceChartComponents) { 59 59 this.resourceChartComponents = resourceChartComponents; 60 } 61 62 private HashMap ganntChartComponents = new HashMap(); 63 64 public HashMap getGanntChartComponents() { 65 return ganntChartComponents; 66 } 67 68 public void setGanntChartComponents(HashMap ganntChartComponents) { 69 this.ganntChartComponents = ganntChartComponents; 60 70 } 61 71
Note: See TracChangeset
for help on using the changeset viewer.