Package org.wicketstuff
Interface IRepeaterUtil
- All Known Implementing Classes:
RepeaterUtil
public interface IRepeaterUtil
- Author:
- Vineet Semwal
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
throw this exception if outmarkupid is not set to truestatic class
throw this exception if quickview's parent is not foundstatic class
throw this exception if reuse constant set is not supported -
Method Summary
Modifier and TypeMethodDescriptioncreates a new dom tag element as the last element of parent with parentIdappend
(MarkupContainer c, MarkupContainer parent, Component start, Component end) creates a new dom tag element as the last element of parentfindsComponentTag
of the component passedisComponentScrollBarAtBottom
(MarkupContainer component) js calls which calls methods that when fired returns true if component's navigation-bar is at the bottomjs calls which calls methods that when fired returns true if page's navigation-bar is at the bottomvoid
outPutMarkupIdNotTrue
(IQuickView repeater) throws exception if outmarkupid of parent is not set true and outputMarkupPlaceholderTag is not set truevoid
parentNotSuitable
(IQuickView repeater) throws exception if no suitable unary parent is found,unary parent is one which only has one childprepend js call ,creates a new dom tag element as the first element of parentprepend
(MarkupContainer component, MarkupContainer parent, Component start, Component end) prepend js call ,creates a new dom tag element as the first element of parentremoveItem
(String id, String parentId) removes js call for item whose markupid is passedremoveItem
(Component component, Component parent) removes js call for component which is providedvoid
throws exception if reuse strategy is not supported for items navigationint
safeLongToInt
(long l) safely converts long to intscrollTo
(IQuickView quickView, int height) js call to scroll to heightscrollToBottom
(String markupId) scrollToBottom
(IQuickView quickView) js call to scroll to bottomscrollToTop
(String markupId) scrollToTop
(IQuickView quickView) js call to scroll to top
-
Method Details
-
prepend
prepend js call ,creates a new dom tag element as the first element of parent- Parameters:
tag
- repeater tagid
- repeater markupidparentId
- parent markupid- Returns:
- prepend call of js
-
prepend
prepend js call ,creates a new dom tag element as the first element of parent- Parameters:
component
- repeaterparent
- parent to which repeater is added- Returns:
- prepend call of js
-
append
creates a new dom tag element as the last element of parent with parentId- Parameters:
tag
- repeater tagid
- repeater markupidparentId
- parent markupid- Returns:
- append call of js
-
append
creates a new dom tag element as the last element of parent- Parameters:
c
- repeaterparent
- parent- Returns:
- append js call
-
getComponentTag
findsComponentTag
of the component passed- Parameters:
c
- component whose componenttag has to be found- Returns:
ComponentTag
-
removeItem
removes js call for item whose markupid is passed- Parameters:
id
- markupid of the element which needs to be removedparentId
- markupId of parent- Returns:
- remove js call
-
removeItem
removes js call for component which is provided- Parameters:
component
-parent
-- Returns:
- remove js call
-
safeLongToInt
int safeLongToInt(long l) safely converts long to int- Parameters:
l
-- Returns:
- int value for long passed
-
parentNotSuitable
throws exception if no suitable unary parent is found,unary parent is one which only has one child- Parameters:
repeater
-
-
outPutMarkupIdNotTrue
throws exception if outmarkupid of parent is not set true and outputMarkupPlaceholderTag is not set true- Parameters:
repeater
-
-
scrollToTop
js call to scroll to top- Parameters:
quickView
-- Returns:
- js call string
-
scrollToTop
-
scrollToBottom
js call to scroll to bottom- Parameters:
quickView
-- Returns:
- js call string
-
scrollToBottom
-
scrollTo
-
scrollTo
js call to scroll to height- Parameters:
quickView
-height
-- Returns:
- js call string
-
isComponentScrollBarAtBottom
js calls which calls methods that when fired returns true if component's navigation-bar is at the bottom- Parameters:
component
-- Returns:
- js call string
-
isPageScrollBarAtBottom
String isPageScrollBarAtBottom()js calls which calls methods that when fired returns true if page's navigation-bar is at the bottom- Returns:
- js call string
-
showPageScrollBar
String showPageScrollBar()
-