Package org.wicketstuff
Interface IRepeaterUtil
-
- All Known Implementing Classes:
RepeaterUtil
public interface IRepeaterUtil
- Author:
- Vineet Semwal
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IRepeaterUtil.OutputMarkupIdNotTrueException
throw this exception if outmarkupid is not set to truestatic class
IRepeaterUtil.QuickViewNotAddedToParentException
throw this exception if quickview's parent is not foundstatic class
IRepeaterUtil.ReuseStrategyNotSupportedException
throw this exception if reuse constant set is not supported
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
append(String tag, String id, String parentId, String startId, String endId)
creates a new dom tag element as the last element of parent with parentIdString
append(MarkupContainer c, MarkupContainer parent, Component start, Component end)
creates a new dom tag element as the last element of parentComponentTag
getComponentTag(Component c)
findsComponentTag
of the component passedString
isComponentScrollBarAtBottom(MarkupContainer component)
js calls which calls methods that when fired returns true if component's navigation-bar is at the bottomString
isPageScrollBarAtBottom()
js 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 childString
prepend(String tag, String id, String parentId, String startId, String endId)
prepend js call ,creates a new dom tag element as the first element of parentString
prepend(MarkupContainer component, MarkupContainer parent, Component start, Component end)
prepend js call ,creates a new dom tag element as the first element of parentString
removeItem(String id, String parentId)
removes js call for item whose markupid is passedString
removeItem(Component component, Component parent)
removes js call for component which is providedvoid
reuseStategyNotSupportedForItemsNavigation(IQuickView repeater)
throws exception if reuse strategy is not supported for items navigationint
safeLongToInt(long l)
safely converts long to intString
scrollTo(String markupId, int height)
String
scrollTo(IQuickView quickView, int height)
js call to scroll to heightString
scrollToBottom(String markupId)
String
scrollToBottom(IQuickView quickView)
js call to scroll to bottomString
scrollToTop(String markupId)
String
scrollToTop(IQuickView quickView)
js call to scroll to topString
showPageScrollBar()
-
-
-
Method Detail
-
prepend
String prepend(String tag, String id, String parentId, String startId, String endId)
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
String prepend(MarkupContainer component, MarkupContainer parent, Component start, Component end)
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
String append(String tag, String id, String parentId, String startId, String endId)
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
String append(MarkupContainer c, MarkupContainer parent, Component start, Component end)
creates a new dom tag element as the last element of parent- Parameters:
c
- repeaterparent
- parent- Returns:
- append js call
-
getComponentTag
ComponentTag getComponentTag(Component c)
findsComponentTag
of the component passed- Parameters:
c
- component whose componenttag has to be found- Returns:
ComponentTag
-
removeItem
String removeItem(String id, String parentId)
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
String removeItem(Component component, Component parent)
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
void parentNotSuitable(IQuickView repeater)
throws exception if no suitable unary parent is found,unary parent is one which only has one child- Parameters:
repeater
-
-
reuseStategyNotSupportedForItemsNavigation
void reuseStategyNotSupportedForItemsNavigation(IQuickView repeater)
throws exception if reuse strategy is not supported for items navigation- Parameters:
repeater
-
-
outPutMarkupIdNotTrue
void outPutMarkupIdNotTrue(IQuickView repeater)
throws exception if outmarkupid of parent is not set true and outputMarkupPlaceholderTag is not set true- Parameters:
repeater
-
-
scrollToTop
String scrollToTop(IQuickView quickView)
js call to scroll to top- Parameters:
quickView
-- Returns:
- js call string
-
scrollToBottom
String scrollToBottom(IQuickView quickView)
js call to scroll to bottom- Parameters:
quickView
-- Returns:
- js call string
-
scrollTo
String scrollTo(IQuickView quickView, int height)
js call to scroll to height- Parameters:
quickView
-height
-- Returns:
- js call string
-
isComponentScrollBarAtBottom
String isComponentScrollBarAtBottom(MarkupContainer component)
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()
-
-