Changeset 17901
- Timestamp:
- 08/18/08 10:45:39 (3 months ago)
- Files:
-
- trunk/core/src/net/project/channel/Channel.java (modified) (2 diffs)
- trunk/core/src/net/project/channel/ChannelManager.java (modified) (1 diff)
- trunk/core/src/net/project/taglibs/channel/InsertTag.java (modified) (4 diffs)
- trunk/core/web/META-INF/tomcat/context.xml (modified) (1 diff)
- trunk/core/web/jsp/schedule/Main.jsp (modified) (2 diffs)
- trunk/core/web/jsp/schedule/include/taskList.jsp (modified) (1 diff)
- trunk/core/web/jsp/taglibs/channelTags.tld (modified) (1 diff)
- trunk/core/web/src/components/gridView.js (modified) (1 diff)
- trunk/core/web/src/indentedView.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/core/src/net/project/channel/Channel.java
r17305 r17901 84 84 private boolean m_actionBarOnly = false; 85 85 private boolean m_displayActionBar = false; 86 /* To not add a break line after the channel. By default we will add a break.*/ 87 private boolean addBreak = true; 86 88 87 89 private final Hashtable m_includeAttributes = new Hashtable(); … … 305 307 } 306 308 309 /** 310 * Gets the <code>addBreak</code> attribute, which indicates whether a break is needed after the channel rendering. 311 * @return the <code>addBreak</code> attribute 312 * @since 8.5 313 */ 314 public boolean isAddBreak(){ 315 return this.addBreak; 316 } 317 318 /** 319 * Sets the <code>addBreak</code> attribute to indicate whether it is needed a break line after the channel 320 * @param addBreak the value to set into the <code>addBreak</code> attribute 321 * @since 8.5 322 */ 323 public void setAddBreak(boolean addBreak){ 324 this.addBreak = addBreak; 325 } 307 326 /** 308 327 * Sets included content to some JSP that has been transformed. This trunk/core/src/net/project/channel/ChannelManager.java
r17673 r17901 290 290 // padding between it and the next 291 291 isPadRequired = true; 292 isAtLeastOneChannel = true; 292 /* 293 * There are some channels we don't want to add a break line after them. 294 */ 295 if(nextChannel.isAddBreak()){ 296 isAtLeastOneChannel = true; 297 } 293 298 } 294 299 } trunk/core/src/net/project/taglibs/channel/InsertTag.java
r15738 r17901 67 67 private Boolean actionBarOnly = null; 68 68 private Boolean isInIFrame = null; 69 private Boolean addBreak = null; /* To not add a break aftert the channel.*/ 69 70 70 71 /** … … 114 115 if (actionBarOnly != null) { 115 116 channel.setActionbarOnly(actionBarOnly.booleanValue()); 117 } 118 119 if(this.addBreak != null){ 120 channel.setAddBreak(this.addBreak.booleanValue()); 116 121 } 117 122 … … 211 216 public void setInIFrame(String isInIFrame) { 212 217 this.isInIFrame = new Boolean(Conversion.toBoolean(isInIFrame)); 218 } 219 220 /** 221 * Sets the <code>addBreak</code> attribute, to indicate whether to add a break line after the channel. 222 * @param addBreak the value to set the <code>addBreak</code> attribute 223 * @since 8.5 224 */ 225 public void setAddBreak(String addBreak){ 226 this.addBreak = new Boolean(Conversion.toBoolean(addBreak)); 213 227 } 214 228 … … 238 252 isInIFrame = null; 239 253 defaultState = null; 254 this.addBreak = null; 240 255 } 241 256 trunk/core/web/META-INF/tomcat/context.xml
r17512 r17901 6 6 <Resource name="jdbc/PnetDB" auth="Container" 7 7 type="javax.sql.DataSource" username="pnet_user" password="pnet_user" 8 driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@localhost:1521: pnetdb"8 driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@localhost:1521:v84dev" 9 9 maxActive="8" maxIdle="4"/> 10 10 trunk/core/web/jsp/schedule/Main.jsp
r17888 r17901 1501 1501 <channel:insert name="Schedule_Tasks_List" 1502 1502 title='<%=PropertyProvider.get("prm.schedule.main.channel.schedulelist.title")%>' 1503 row="0" column="0" width="100%" minimizable="false" closeable="false" 1503 row="0" column="0" width="100%" minimizable="false" closeable="false" addBreak="false" 1504 1504 include="include/taskList.jsp"> 1505 1505 <channel:button type="expand_all"/> … … 1518 1518 </channel:insert> 1519 1519 </channel:channel> 1520 <div id="schedule-grid"></div> 1520 1521 </form> 1521 1522 <%@ include file="/help/include_outside/footer.jsp" %> trunk/core/web/jsp/schedule/include/taskList.jsp
r17804 r17901 375 375 </pnet-xml:transform> 376 376 <%}%> 377 <div id='schedule-grid'></div>trunk/core/web/jsp/taglibs/channelTags.tld
r15492 r17901 138 138 <rtexprvalue>true</rtexprvalue> 139 139 </attribute> 140 <attribute> 141 <name>addBreak</name> 142 <required>false</required> 143 <rtexprvalue>true</rtexprvalue> 144 </attribute> 140 145 </tag> 141 146 trunk/core/web/src/components/gridView.js
r17883 r17901 394 394 autoHeight: true, 395 395 autoSizeColumns: true, 396 loadMask: true, 397 clicksToEdit:2 396 loadMask: true 398 397 }); 399 398 trunk/core/web/src/indentedView.js
r17888 r17901 203 203 enableRowBody : true 204 204 ,forceFit: true 205 }206 205 ,emptyText: 'It is no data available to be displayed.' 206 } 207 207 }); 208 208 grid.render();
