| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_201) on Thu Jul 23 15:59:00 CEST 2020 --> |
| <title>CalendarableModel</title> |
| <meta name="date" content="2020-07-23"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="CalendarableModel"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/CalendarableModel.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-files/index-1.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/EventContentProvider.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html" target="_top">Frames</a></li> |
| <li><a href="CalendarableModel.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.eclipse.nebula.widgets.compositetable.timeeditor</div> |
| <h2 title="Class CalendarableModel" class="title">Class CalendarableModel</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.nebula.widgets.compositetable.timeeditor.CalendarableModel</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">CalendarableModel</span> |
| extends java.lang.Object</pre> |
| <div class="block">Represents the model behind the calendar control. This model manages three |
| concerns: |
| 1) Setting/maintaining the visible range of days (startDate, numberOfDays) |
| 2) Keeping the events for a particular day within the range of visible days |
| 3) Keeping track of the number of columns required to display the events |
| in a given day from the set of visible days.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>3.2</dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#CalendarableModel--">CalendarableModel</a></span>()</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>java.util.Date</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#calculateDate-java.util.Date-int-">calculateDate</a></span>(java.util.Date startDate, |
| int numberOfDaysFromStartDate)</code> |
| <div class="block">Returns the date that is the numberOfDaysFromStartDate.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#computeHourFromRow-int-">computeHourFromRow</a></span>(int row)</code> |
| <div class="block">FIXME: Test me please</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#computeMinuteFromRow-int-">computeMinuteFromRow</a></span>(int row)</code> |
| <div class="block">FIXME: Test me please</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#computeNumberOfAllDayEventRows--">computeNumberOfAllDayEventRows</a></span>()</code> |
| <div class="block">Method computeNumberOfAllDayEventRows.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#computeStartHour--">computeStartHour</a></span>()</code> |
| <div class="block">Method computeStartHour.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#findAllDayCalendarable-int-boolean-org.eclipse.nebula.widgets.compositetable.timeeditor.CalendarableItem-">findAllDayCalendarable</a></span>(int day, |
| boolean forward, |
| <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> selection)</code> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#findNextCalendarable-int-int-org.eclipse.nebula.widgets.compositetable.timeeditor.CalendarableItem-boolean-">findNextCalendarable</a></span>(int selectedDay, |
| int selectedRow, |
| <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> selection, |
| boolean isAllDayEventRow)</code> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#findPreviousCalendarable-int-int-org.eclipse.nebula.widgets.compositetable.timeeditor.CalendarableItem-boolean-">findPreviousCalendarable</a></span>(int selectedDay, |
| int selectedRow, |
| <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> selection, |
| boolean isAllDayEventRow)</code> </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#findTimedCalendarable-int-int-int-boolean-org.eclipse.nebula.widgets.compositetable.timeeditor.CalendarableItem-">findTimedCalendarable</a></span>(int day, |
| int currentRow, |
| int stopPosition, |
| boolean forward, |
| <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> selection)</code> </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a>[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#getAllDayCalendarables-int-">getAllDayCalendarables</a></span>(int day)</code> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>java.util.List</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#getCalendarableItems-int-">getCalendarableItems</a></span>(int dayOffset)</code> |
| <div class="block">Return the events for a particular day offset.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#getDay-org.eclipse.nebula.widgets.compositetable.timeeditor.CalendarableItem-">getDay</a></span>(<a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> calendarable)</code> |
| <div class="block">Method getDay.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#getDefaultStartHour--">getDefaultStartHour</a></span>()</code> |
| <div class="block">Method getDefaultStartHour</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a>[][]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#getEventLayout-int-">getEventLayout</a></span>(int dayOffset)</code> |
| <div class="block">Gets the eventLayout for a particular dayOffset</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#getNumberOfColumnsWithinDay-int-">getNumberOfColumnsWithinDay</a></span>(int dayOffset)</code> </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#getNumberOfDays--">getNumberOfDays</a></span>()</code> </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#getNumberOfDivisionsInHour--">getNumberOfDivisionsInHour</a></span>()</code> </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>java.util.Date</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#getStartDate--">getStartDate</a></span>()</code> </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>java.util.List</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#refresh-java.util.Date-">refresh</a></span>(java.util.Date date)</code> |
| <div class="block">Refresh the display for the specified Date.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#setDefaultStartHour-int-">setDefaultStartHour</a></span>(int defaultStartHour)</code> |
| <div class="block">Method setDefaultStartHour.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#setEventContentProvider-org.eclipse.nebula.widgets.compositetable.timeeditor.EventContentProvider-">setEventContentProvider</a></span>(<a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/EventContentProvider.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">EventContentProvider</a> eventContentProvider)</code> |
| <div class="block">Sets a strategy pattern object that can set the data for the actual events for |
| a particular day.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#setEventCountProvider-org.eclipse.nebula.widgets.compositetable.timeeditor.EventCountProvider-">setEventCountProvider</a></span>(<a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/EventCountProvider.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">EventCountProvider</a> eventCountProvider)</code> |
| <div class="block">Sets a strategy pattern object that can return the number of events |
| to display on a particulr day.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#setEventLayout-int-org.eclipse.nebula.widgets.compositetable.timeeditor.CalendarableItem:A:A-">setEventLayout</a></span>(int dayOffset, |
| <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a>[][] eventLayout)</code> |
| <div class="block">Sets the eventLayout for a particular dayOffset</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>java.util.List</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#setStartDate-java.util.Date-">setStartDate</a></span>(java.util.Date startDate)</code> </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html#setTimeBreakdown-int-int-">setTimeBreakdown</a></span>(int numberOfDays, |
| int numberOfDivisionsInHour)</code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="CalendarableModel--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>CalendarableModel</h4> |
| <pre>public CalendarableModel()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getNumberOfColumnsWithinDay-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNumberOfColumnsWithinDay</h4> |
| <pre>public int getNumberOfColumnsWithinDay(int dayOffset)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>dayOffset</code> - </dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the number of columns within the day or -1 if this has not been computed yet.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setEventLayout-int-org.eclipse.nebula.widgets.compositetable.timeeditor.CalendarableItem:A:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setEventLayout</h4> |
| <pre>public void setEventLayout(int dayOffset, |
| <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a>[][] eventLayout)</pre> |
| <div class="block">Sets the eventLayout for a particular dayOffset</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>dayOffset</code> - </dd> |
| <dd><code>eventLayout</code> - </dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getEventLayout-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getEventLayout</h4> |
| <pre>public <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a>[][] getEventLayout(int dayOffset)</pre> |
| <div class="block">Gets the eventLayout for a particular dayOffset</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>dayOffset</code> - </dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the eventLayout array for the specified day or null if none has been computed.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setTimeBreakdown-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setTimeBreakdown</h4> |
| <pre>public void setTimeBreakdown(int numberOfDays, |
| int numberOfDivisionsInHour)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>numberOfDays</code> - </dd> |
| <dd><code>numberOfDivisionsInHour</code> - </dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNumberOfDays--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNumberOfDays</h4> |
| <pre>public int getNumberOfDays()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The number of days to display</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNumberOfDivisionsInHour--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNumberOfDivisionsInHour</h4> |
| <pre>public int getNumberOfDivisionsInHour()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Returns the numberOfDivisionsInHour.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setStartDate-java.util.Date-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setStartDate</h4> |
| <pre>public java.util.List setStartDate(java.util.Date startDate)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>startDate</code> - The starting date to display</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The obsolete Calendarable objects</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getStartDate--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getStartDate</h4> |
| <pre>public java.util.Date getStartDate()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The starting date to display</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setEventCountProvider-org.eclipse.nebula.widgets.compositetable.timeeditor.EventCountProvider-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setEventCountProvider</h4> |
| <pre>public void setEventCountProvider(<a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/EventCountProvider.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">EventCountProvider</a> eventCountProvider)</pre> |
| <div class="block">Sets a strategy pattern object that can return the number of events |
| to display on a particulr day.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>eventCountProvider</code> - </dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setEventContentProvider-org.eclipse.nebula.widgets.compositetable.timeeditor.EventContentProvider-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setEventContentProvider</h4> |
| <pre>public void setEventContentProvider(<a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/EventContentProvider.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">EventContentProvider</a> eventContentProvider)</pre> |
| <div class="block">Sets a strategy pattern object that can set the data for the actual events for |
| a particular day.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>eventContentProvider</code> - </dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="calculateDate-java.util.Date-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>calculateDate</h4> |
| <pre>public java.util.Date calculateDate(java.util.Date startDate, |
| int numberOfDaysFromStartDate)</pre> |
| <div class="block">Returns the date that is the numberOfDaysFromStartDate.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>startDate</code> - The start date</dd> |
| <dd><code>numberOfDaysFromStartDate</code> - </dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Date</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="refresh-java.util.Date-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>refresh</h4> |
| <pre>public java.util.List refresh(java.util.Date date)</pre> |
| <div class="block">Refresh the display for the specified Date. If Date isn't being |
| displayed, this method ignores the request.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>date</code> - the date to refresh.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>List any Calendarables that were invalidated</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getCalendarableItems-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCalendarableItems</h4> |
| <pre>public java.util.List getCalendarableItems(int dayOffset)</pre> |
| <div class="block">Return the events for a particular day offset.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>dayOffset</code> - </dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A List of events.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="computeNumberOfAllDayEventRows--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>computeNumberOfAllDayEventRows</h4> |
| <pre>public int computeNumberOfAllDayEventRows()</pre> |
| <div class="block">Method computeNumberOfAllDayEventRows.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>int representing the max number of events in all visible days.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="computeStartHour--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>computeStartHour</h4> |
| <pre>public int computeStartHour()</pre> |
| <div class="block">Method computeStartHour. Computes the start hour of the day for all |
| days that are displayed. If no events are before the defaultStartHour, |
| the defaultStartHour is returned. If any day in the model has an event |
| beginning before defaultStartHour, the hour of the earliest event is |
| used instead.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>int The start hour.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setDefaultStartHour-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setDefaultStartHour</h4> |
| <pre>public void setDefaultStartHour(int defaultStartHour)</pre> |
| <div class="block">Method setDefaultStartHour.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>defaultStartHour</code> - The first hour to be displayed by default.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getDefaultStartHour--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDefaultStartHour</h4> |
| <pre>public int getDefaultStartHour()</pre> |
| <div class="block">Method getDefaultStartHour</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>int representing the first hour to be displayed by default.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getDay-org.eclipse.nebula.widgets.compositetable.timeeditor.CalendarableItem-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDay</h4> |
| <pre>public int getDay(<a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> calendarable)</pre> |
| <div class="block">Method getDay. Returns the day on which the specified Calendarable appers.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>calendarable</code> - The calendarable to find</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The day offset (0-based)</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if Calendarable isn't found</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="computeHourFromRow-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>computeHourFromRow</h4> |
| <pre>public int computeHourFromRow(int row)</pre> |
| <div class="block">FIXME: Test me please</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>row</code> - The row starting from the beginning of the day</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The hour portion of the time that this row represents</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="computeMinuteFromRow-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>computeMinuteFromRow</h4> |
| <pre>public int computeMinuteFromRow(int row)</pre> |
| <div class="block">FIXME: Test me please</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>row</code> - The row starting from the beginning of the day</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The minute portion of the time that this row represents</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAllDayCalendarables-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAllDayCalendarables</h4> |
| <pre>public <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a>[] getAllDayCalendarables(int day)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>day</code> - The day to return all day Calendarables for</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>All the all day Calendarables for the specified day, order maintained</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="findAllDayCalendarable-int-boolean-org.eclipse.nebula.widgets.compositetable.timeeditor.CalendarableItem-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>findAllDayCalendarable</h4> |
| <pre>public <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> findAllDayCalendarable(int day, |
| boolean forward, |
| <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> selection)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>day</code> - The day to search</dd> |
| <dd><code>forward</code> - true if we're going forward; false if we're searching backward</dd> |
| <dd><code>selection</code> - The currently selected Calendarable or null if none</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The next Calendarable in the specified direction where result != selection; null if none</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="findTimedCalendarable-int-int-int-boolean-org.eclipse.nebula.widgets.compositetable.timeeditor.CalendarableItem-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>findTimedCalendarable</h4> |
| <pre>public <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> findTimedCalendarable(int day, |
| int currentRow, |
| int stopPosition, |
| boolean forward, |
| <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> selection)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>day</code> - The day to search</dd> |
| <dd><code>currentRow</code> - The first row to search</dd> |
| <dd><code>stopPosition</code> - The row to stop searching on or -1 to search to the first/last element</dd> |
| <dd><code>forward</code> - true if we're going forward; false if we're searching backward</dd> |
| <dd><code>selection</code> - The Calendarable associated with currentRow or null if none</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The next Calendarable in the specified direction where result != selection; null if none</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="findNextCalendarable-int-int-org.eclipse.nebula.widgets.compositetable.timeeditor.CalendarableItem-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>findNextCalendarable</h4> |
| <pre>public <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> findNextCalendarable(int selectedDay, |
| int selectedRow, |
| <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> selection, |
| boolean isAllDayEventRow)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>selectedDay</code> - </dd> |
| <dd><code>selectedRow</code> - </dd> |
| <dd><code>selection</code> - </dd> |
| <dd><code>isAllDayEventRow</code> - </dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| </dl> |
| </li> |
| </ul> |
| <a name="findPreviousCalendarable-int-int-org.eclipse.nebula.widgets.compositetable.timeeditor.CalendarableItem-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>findPreviousCalendarable</h4> |
| <pre>public <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> findPreviousCalendarable(int selectedDay, |
| int selectedRow, |
| <a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor">CalendarableItem</a> selection, |
| boolean isAllDayEventRow)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>selectedDay</code> - </dd> |
| <dd><code>selectedRow</code> - </dd> |
| <dd><code>selection</code> - </dd> |
| <dd><code>isAllDayEventRow</code> - </dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/CalendarableModel.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-files/index-1.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableItem.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../org/eclipse/nebula/widgets/compositetable/timeeditor/EventContentProvider.html" title="class in org.eclipse.nebula.widgets.compositetable.timeeditor"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/eclipse/nebula/widgets/compositetable/timeeditor/CalendarableModel.html" target="_top">Frames</a></li> |
| <li><a href="CalendarableModel.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |