Changeset 285 for ether_megapoli
- Timestamp:
- 12/05/11 17:51:54 (12 years ago)
- Location:
- ether_megapoli/trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_megapoli/trunk/common/implementation/com/ether/MethodDescription.java
r269 r285 15 15 _method = method; 16 16 _view = annotation.view(); 17 _defaultView = annotation.defaultView(); 17 18 _isJsonResult = annotation.jsonResult(); 18 19 _isLoginMandatory = annotation.loginMandatory(); … … 36 37 { 37 38 return _view; 39 } 40 41 @Nullable 42 public String getDefaultView() 43 { 44 return _defaultView; 45 } 46 47 public void setDefaultView( @Nullable final String defaultView ) 48 { 49 _defaultView = defaultView; 38 50 } 39 51 … … 100 112 @NotNull 101 113 private String _view; 114 @Nullable 115 private String _defaultView; 102 116 private Boolean _isJsonResult; 103 117 @Nullable -
ether_megapoli/trunk/common/implementation/com/ether/annotation/ControllerMethod.java
r268 r285 2 2 3 3 import org.jetbrains.annotations.NotNull; 4 import org.jetbrains.annotations.Nullable; 4 5 5 6 import java.lang.annotation.ElementType; … … 21 22 22 23 boolean backofficeMethod() default false; 24 25 @Nullable String defaultView() default ""; 23 26 } -
ether_megapoli/trunk/web/backoffice/index.jsp
r269 r285 2 2 <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> 3 3 <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> 4 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 4 5 5 6 <tiles:insert page="/resources/templates/templateBackoffice.jsp" flush="true"> … … 20 21 <img src="resources/images/engrenage.png"/> 21 22 </center> 23 24 <c:if test="${not empty errors}"> 25 <BR/><BR/><BR/><BR/> 26 <div id="errors"><bean:message key="${errors}"/></div> 27 </c:if> 28 22 29 </tiles:put> 23 24 30 </tiles:insert> -
ether_megapoli/trunk/web/resources/js/classesForJQuery/etherClasses.js
r259 r285 9 9 jQuery.each( jsonElements, jQuery.proxy( function( i, jsonElement ) 10 10 { 11 // if( jQuery.isArray( jsonElement ) && 1 < jsonElement.length )12 // var subItems = new ListItem( jsonElement, new Object() );13 // else14 11 this.addItem( jsonElement, objectParameter ); 15 12 }, this ) ); … … 123 120 }, 124 121 122 getNameWithCode: function () 123 { 124 if( jQuery.isArray( this.jsonElement ) ) 125 return this.jsonElement[0].name + " (" + this.jsonElement[0].code + ")"; 126 else 127 return this.jsonElement.name + " (" + this.jsonElement.code + ")"; 128 }, 129 125 130 getContentType: function() 126 131 { … … 135 140 this.divContainer.addClass( classNameValue ); 136 141 if( jQuery.isArray( this.jsonElement ) && 1 < this.jsonElement.length ) 137 this.divContainer.attr( {id:containerName + "_MENU _" + this.getId()} );142 this.divContainer.attr( {id:containerName + "_MENU"} ); 138 143 else 139 144 this.divContainer.attr( {id:containerName + "_" + this.getId()} ); … … 224 229 225 230 this.divHiddenElements = $( document.createElement( "div" ) ); 226 this.divHiddenElements.attr( { id:"divMenu_content" + this.getId(),class:"divMenu_content" } );231 this.divHiddenElements.attr( {class:"divMenu_content" } ); 227 232 228 233 jQuery.each( this.jsonElement, jQuery.proxy( function ( i, element ) … … 232 237 divSubMenu_name.addClass( "parameter_menu_" + element.id ); 233 238 divSubMenu_name.html( element.code ); 234 divSubMenu_name.bind( 'click', {divContainer:this.divContainer, jsonElement: element}, this.onClickMenu );239 divSubMenu_name.bind( 'click', {divContainer:this.divContainer, jsonElement:[element]}, this.onClickMenu ); 235 240 this.divHiddenElements.append( divSubMenu_name ); 236 241 }, this ) ); … … 248 253 $( "#divMenu_arrow_" + this.getId() ).removeClass( "deployed" ); 249 254 this.divHiddenElements.animate( {height:"toggle"}, 100 ); 250 }, this ) 251 ); 255 }, this ) ); 252 256 253 257 divMenu_arrow.toggle( … … 261 265 $( "#divMenu_arrow_" + this.getId() ).removeClass( "deployed" ); 262 266 this.divHiddenElements.animate( {width:"toggle"}, 100 ); 263 }, this ) 264 ); 267 }, this ) ); 265 268 } 266 269 else … … 270 273 onClickMenu: function( event ) 271 274 { 272 var jsonElement = event.data.jsonElement; 273 event.data = event.data.divContainer.item; 274 event.data.jsonElement = jsonElement; 275 event.data.divContainer.item.jsonElement = event.data.jsonElement; 275 276 } 276 277 -
ether_megapoli/trunk/web/resources/jsp/backofficeHead.jsp
r278 r285 59 59 onClickHome: function() 60 60 { 61 document.location.href = "backoffice?methodName= view";61 document.location.href = "backoffice?methodName=home"; 62 62 }, 63 63 -
ether_megapoli/trunk/web/src/ApplicationResources_en.properties
r280 r285 446 446 app.dataProtocol.account=Your account is waiting for administrator validation. You will receive an email when it will be activated. 447 447 app.dataProtocol.alreadyExist=This email is already used, you have to give another one 448 app.unknown.login=Unknown login 449 app.access.not.allowed=You are not authorized to access to backoffice 448 450 449 451 data.visualization.general.text=In this area you can visualize available data with the following types of visualization : <ul><li>one parameter by plateform</li><li>one parameter by many plateforms</li><li>differents parameters by plateform</li><li>2D visualizations</li></ul> -
ether_megapoli/trunk/web/src/com/ether/ControllerBackoffice.java
r284 r285 30 30 extends ControllerEther 31 31 { 32 // TODO : mettre un pwd pour chaque méthode !!!33 34 32 /** *********************************************************** **/ 35 33 /** *********************** VIEWS ***************************** **/ -
ether_megapoli/trunk/web/src/com/ether/ControllerVisualization.java
r275 r285 17 17 import org.jdom.output.XMLOutputter; 18 18 import org.jetbrains.annotations.NotNull; 19 import org.springframework.beans.factory.annotation.Required;20 19 import org.springframework.web.servlet.ModelAndView; 21 20 … … 70 69 throws ServiceException 71 70 { 72 final List<Plateforme> plateforms = _etherService.getAllPlateforms();73 final Date firstDate = _etherService.getFirstDate();74 final Date endDate = _etherService.getLastDate();71 final List<Plateforme> plateforms = getEtherService().getAllPlateforms(); 72 final Date firstDate = getEtherService().getFirstDate(); 73 final Date endDate = getEtherService().getLastDate(); 75 74 76 75 final Map<String, Object> model = new HashMap<String, Object>(); … … 90 89 throws ServiceException, EtherException 91 90 { 92 final List<Parametre> fullParametersByPlateform = _etherService.getParametersByPlateformId( plateformId );91 final List<Parametre> fullParametersByPlateform = getEtherService().getParametersByPlateformId( plateformId ); 93 92 final List<List<Parametre>> parametersByPlateform = manageMenusForParameterList( fullParametersByPlateform ); 94 93 … … 274 273 } 275 274 276 @Required277 public void setEtherService( @NotNull final EtherService etherService )278 {279 _etherService = etherService;280 }281 282 275 private static final Log LOGGER = LogFactory.getLog( ControllerVisualization.class ); 283 276 … … 289 282 private static final String FORMAT_DEFAULT = "NASA-AMES"; 290 283 private static final String COMPRESSION_DEFAULT = "None"; 291 private EtherService _etherService; 292 } 284 } -
ether_megapoli/trunk/web/visualization/visu_parameter_by_pf-script.jsp
r278 r285 18 18 this.selectedPlateform = false; 19 19 this.selectedParameter = false; 20 // This variable is needed to manage the subMenu id's 21 this.selectedParameterId = false; 20 22 this.beginDate = false; 21 23 this.endDate = false; … … 202 204 if( this.selectedParameter ) 203 205 this.selectedParameter = false; 206 this.selectedParameterId = false; 204 207 205 208 // Change axe's list select … … 223 226 onSelectParameter: function( objParameter ) 224 227 { 225 if( this.selectedParameter && objParameter.getId() == this.selectedParameter .getId())228 if( this.selectedParameter && objParameter.getId() == this.selectedParameterId ) 226 229 return; 227 230 … … 230 233 this.selectedParameter.unselect(); 231 234 235 this.selectedParameterId = objParameter.getId(); 232 236 this.selectedParameter = objParameter; 233 237 this.selectedParameter.select(); 234 238 235 239 // Change title 236 $( "#textareaTitle" ).html( this.selectedPlateform.getName() + " - " + this.selectedParameter.getName () );240 $( "#textareaTitle" ).html( this.selectedPlateform.getName() + " - " + this.selectedParameter.getNameWithCode() ); 237 241 238 242 // Update number and list of parameter to display … … 318 322 319 323 $dialog.dialog( 'open' ); 320 // return false;321 324 }, 322 325 … … 374 377 // INIT 375 378 this.selectPlots.clear(); 376 this.selectParameters .empty();379 this.selectParameters = $(); 377 380 this.selectPlotsPlateformType = false; 378 381 … … 416 419 this.selectPlots.select( plotValue, false ); 417 420 this.selectPlotsPlateformType = this.selectedPlateform.jsonElement.type; 418 //if( !isParameterAlreadySelected )419 this.selectParameters.push( this.selectedParameter.getId() );421 if( !isParameterAlreadySelected ) 422 this.selectParameters.push( this.selectedParameter.getId() ); 420 423 421 424 this.numberParameterToDisplay = this.selectPlots.getSize(); … … 436 439 if( 1 <= this.numberParameterToDisplay && 1 <= this.selectPlots.getSize() ) 437 440 { 438 var index = 0; 439 this.selectPlots.arrayOptions.each( function( option ) 441 this.selectPlots.arrayOptions.each( function( index, option ) 440 442 { 441 443 arrayPIdPId[index] = option.itemValue; 442 index++;443 444 } ); 444 445 } -
ether_megapoli/trunk/web/visualization/visu_parameter_by_pf.jsp
r270 r285 61 61 <div id="containerOptionTitle" class="span-5"> 62 62 <div id="messages" class="messagesHeight"><bean:message key="data.visualization.titleChoice"/></div> 63 <textarea id="textareaTitle" cols="25" rows=" 1"></textarea>63 <textarea id="textareaTitle" cols="25" rows="3"></textarea> 64 64 </div> 65 65 … … 82 82 </div> 83 83 84 ee${axeTypesForFixedPlateforms}rr85 84 <script type="text/javascript"> 86 85 var interfaceTexts = $A( "" );
Note: See TracChangeset
for help on using the changeset viewer.