|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPagingModel
A model used for implementing a paging concept within the Gantt chart. When a paging model has been assigned to the Gantt chart then the Gantt chart will display a paging control in the lower-left corner of the layer container. This control allows the user to change the time span of the Gantt chart with a single click. Listeners can be attached to this model so that the application can perform operations like lazy loading of timeline objects whenever the user switches to a page that hasn't been loaded, yet.
AbstractGanttChart.setPagingModel(IPagingModel)
Method Summary | |
---|---|
void |
addPagingModelListener(IPagingModelListener l)
Adds a listener to the paging model. |
void |
earlierPage()
Goto the next page that has a smaller start time than the currently used page. |
void |
firstPage()
Goto the first page. |
Page |
getPage()
Returns the currently used page. |
Page |
getPage(int index)
Returns the page for the given index. |
int |
getPageCount()
Returns the total number of pages added to the model. |
boolean |
hasEarlierPage()
Determines if the model has a page that starts earlier than the currently used page. |
boolean |
hasLaterPage()
Determines if the model has a page that starts later than the currently used page. |
void |
lastPage()
Goto the last page. |
void |
laterPage()
Goto the next page that has a larger start time than the currently used page. |
void |
removePagingModelListener(IPagingModelListener l)
Removes a listener from the paging model. |
void |
setPage(Page page)
Sets a new page to be used. |
Method Detail |
---|
int getPageCount()
getPage(int)
Page getPage(int index)
index
-
getPageCount()
Page getPage()
setPage(Page)
void setPage(Page page)
page
- the new page to use for displayvoid firstPage()
void earlierPage()
void laterPage()
void lastPage()
boolean hasEarlierPage()
earlierPage()
boolean hasLaterPage()
laterPage()
void addPagingModelListener(IPagingModelListener l)
l
- the listener to add to the modelvoid removePagingModelListener(IPagingModelListener l)
l
- the listener to remove from the model
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |