$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName
Modifier and Type | Method and Description |
---|---|
void |
calcSize()
Calculates the size.
|
int |
getActivePage()
Returns the active page (starting from 0).
|
int |
getFocusCell(DOMElement el)
Returns the index of the cell including the child got focus.
|
HeadWidget |
getHeadWidget()
Returns the self's head widget.
|
String |
getInnerWidth()
Returns the inner width of this component.
|
int |
getPageCount()
Returns the number of pages.
|
int |
getPageSize()
Returns the page size, aka., the number rows per page.
|
Paging |
getPaginal()
Returns the external Paging widget, if any.
|
String |
getPagingPosition()
Returns how to position the paging of the widget at the client screen.
|
int |
getRows()
Returns the rows.
|
String |
getSpan()
Return column span hint of this widget.
|
boolean |
inPagingMold()
Returns whether the widget is in paging mold.
|
boolean |
isAutopaging()
Returns whether turn on auto-paging facility when mold is
"paging".
|
boolean |
isModel()
Returns whether the widget is in model mode or not.
|
boolean |
isSizedByContent()
Returns whether sizing the widget column width by its content.
|
void |
scrollToIndex(int index,
double scrollRatio)
Scroll to the specified item by the given index, used by Grid and Listbox,
this function could be invoked by server-side or client-side,
when invoked by client-side, scrollRatio will be undefined.
|
void |
setActivePage(int activePage)
Sets the active page (starting from 0).
|
void |
setAutopaging(boolean autopaging)
Sets whether turn on auto-paging facility when mold is
"paging".
|
void |
setInnerWidth(String innerWidth)
Sets the inner width of this component.
|
void |
setModel(boolean inModel)
Sets whether the widget is in model mode.
|
void |
setPageSize(int pageSize)
Sets the page size, aka., the number rows per page.
|
void |
setPaginal(Paging paging)
Sets the external Paging widget.
|
void |
setPagingPosition(String pagingPosition)
Sets how to position the paging of the widget at the client screen.
|
void |
setRows(int rows)
Sets the rows.
|
void |
setSizedByContent(boolean byContent)
Sets whether sizing the widget column width by its content.
|
void |
setSpan(String span)
Sets column span hint of this mesh widget.
|
void |
syncSize()
Synchronizes the size immediately.
|
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
$, $f, $f, $f, $init, $n, $n, $o, $s, $service, afterAnima_, afterParentChanged_, appendChild, appendChild, beforeParentChanged_, beforeSendAU_, bind_, bind, bindChildren_, bindDoubleTap_, bindMissingAncestors, bindSwipe_, bindTapHold_, canActivate, cleanDrag_, clear, clearCache, cloneDrag_, deferRedraw_, deferRedrawHTML_, detach, doBlur_, doClick_, doDoubleClick_, doFocus_, doKeyDown_, doKeyPress_, doKeyUp_, domAttrs_, domClass_, domListen_, doMouseDown_, doMouseMove_, doMouseOut_, doMouseOver_, doMouseUp_, domStyle_, domTextStyleAttr_, domTooltiptext_, domUnlisten_, doPaste_, doResizeScroll_, doRightClick_, doSelect_, doSwipe_, doTooltipOut_, doTooltipOver_, dropEffect_, extraBind_, fire, fireX, focus_, focus, forcerender, fromPageCoord, get, getAction, getCaveNode, getChildAt, getChildIndex, getClass, getCssflex, getDraggable, getDragMessage_, getDragNode, getDragOptions_, getDrop_, getDroppable, getElementsById, getElementsByName, getFirstNode_, getFloatZIndex_, getHeight, getHflex, getId, getLeft, getMold, getOldWidget_, getPage, getRenderdefer, getSclass, getScrollLeft, getScrollTop, getStyle, getTabindex, getTextNode, getTooltiptext, getTop, getTopWidget, getVflex, getWidth, getZclass, getZIndex, hide, ignoreDescendantFloatUp_, ignoreDrag_, initDrag_, insertBefore, insertChildHTML_, isAutoId, isBinding, isFloating_, isListen, isRealElement, isRealVisible, isRealVisible, isVisible, isVisible, isWatchable_, listen, listenOnFitSize_, mimicMouseDown_, newInstance, nextUuid, onAfterSize, onChildAdded_, onChildRemoved_, onChildRenderDefer_, onChildReplaced_, onChildVisible_, onDrop_, redraw, redrawHTML_, register, removeChild, removeChild, removeChildHTML_, removeHTML_, replaceCavedChildren_, replaceChildHTML_, replaceHTML, replaceWidget, rerender, rerender, rerenderLater_, rerenderNow_, scrollIntoView, sendAU_, set, set, setAction, setChildren, setCssflex, setDomVisible_, setDraggable, setDroppable, setFloating_, setFloatZIndex_, setHeight, setHflex, setId, setLeft, setListener, setListener, setListeners, setMold, setRenderdefer, setSclass, setScrollLeft, setScrollTop, setStyle, setTabindex, setTooltiptext, setTop, setTopmost, setVflex, setVisible, setWidth, setZclass, setZIndex, shallChildROD_, shallFireSizedLaterWhenAddChd_, shallIgnoreClick_, show, smartUpdate, unbind_, unbind, unbindChildren_, unbindDoubleTap_, unbindSwipe_, unbindTapHold_, uncloneDrag_, unlisten, unlistenOnFitSize_, updateDomClass_, updateDomStyle_, uuid, zsync
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy
public void setRows(int rows)
Note: if both Widget.setHeight(_global_.String)
is specified with non-empty,
setRows(int)
is ignored
rows
- public int getRows()
Default: 0.
public void setPagingPosition(String pagingPosition)
pagingPosition
- how to position. It can only be "bottom" (the default), or
"top", or "both".public String getPagingPosition()
public void setSizedByContent(boolean byContent)
You can also specify the "sized-by-content" attribute of component in lang-addon.xml directly, it will then take higher priority.
byContent
- public boolean isSizedByContent()
Note: if the "sized-by-content" attribute of component is specified, it's prior to the original value.
setSizedByContent(boolean)
public void setSpan(String span)
The parameter span is a number in String type indicating how this component distributes remaining empty space to the specified column(0-based). "0" means distribute remaining empty space to the 1st column; "1" means distribute remaining empty space to the 2nd column, etc.. The spanning column will grow to fit the extra remaining space.
Special span hint with "true" means span ALL columns proportionally per their original widths while null or "false" means NOT spanning any column.
Default: null. That is, NOT span any column.
Note span is meaningful only if there is remaining empty space for columns.
span
- the column span hint.getSpan()
public String getSpan()
Default: null
setSpan(_global_.String)
public void setAutopaging(boolean autopaging)
setPageSize(int)
is ignored;
rather, the page size(number of item count) is automatically determined by the
height of this widget dynamically.autopaging
- public boolean isAutopaging()
setPageSize(int)
is ignored;
rather, the page size(number of item count) is automatically determined by the
height of this widget dynamically.setAutopaging(boolean)
public void setPaginal(Paging paging)
paging
- public Paging getPaginal()
public void setModel(boolean inModel)
inModel
- public boolean isModel()
public void setInnerWidth(String innerWidth)
Application developers rarely call this method, unless
they want to preserve the widths of sizable columns
changed by the user.
To preserve the widths, the developer have to store the widths of
all columns and the inner width (getInnerWidth()
),
and then restore them when re-creating this component.
innerWidth
- the inner width. If null, "100%" is assumed.public String getInnerWidth()
Default: "100%"
setInnerWidth(_global_.String)
public int getPageSize()
Paging.getPageSize()
public void setPageSize(int pageSize)
pageSize
- Paging.setPageSize(int)
public int getPageCount()
Paging.getPageCount()
public int getActivePage()
Paging.getActivePage()
public void setActivePage(int activePage)
activePage
- Paging.setActivePage(int)
public boolean inPagingMold()
public HeadWidget getHeadWidget()
public int getFocusCell(DOMElement el)
el
- the element got focus.public void syncSize()
Widget.inServer
is true).
You have to invoke this method only if you create this widget
at client and add or remove children from this widget.public void calcSize()
public void scrollToIndex(int index, double scrollRatio)
index
- the index of itemscrollRatio
- the scroll ratioCopyright © 2005-2023 Potix Corporation. All Rights Reserved.