public abstract class MeshElement extends XulElement implements Paginated
Modifier and Type | Class and Description |
---|---|
protected class |
MeshElement.InternalPaging |
HtmlBasedComponent.ExtraCtrl
AbstractComponent.Children
_zclass
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
Constructor and Description |
---|
MeshElement() |
Modifier and Type | Method and Description |
---|---|
int |
getActivePage()
Returns the active page (starting from 0).
|
int |
getPageCount()
Returns the number of pages.
|
int |
getPageSize()
Returns the page size, a.k.a., the number rows per page.
|
java.lang.String |
getPagingPosition()
Returns how to position the paging of mesh element at the client screen.
|
java.lang.String |
getSpan()
Return column span hint of this component.
|
protected abstract boolean |
isAutohidePaging() |
boolean |
isAutopaging()
Returns whether the auto-paging facility is turned on when mold is
"paging".
|
boolean |
isSizedByContent()
Returns whether sizing grid/listbox/tree column width by its content.
|
boolean |
isSpan()
Returns whether distributes remaining empty space of this component to ANY column.
|
protected abstract Paginal |
pgi()
Returns the instance of the @{link Paginal}
|
protected void |
renderProperties(ContentRenderer renderer)
Renders the content of this component, excluding the enclosing
tags and children.
|
void |
setActivePage(int pg)
Sets the active page (starting from 0).
|
void |
setAutopaging(boolean autopaging)
Sets whether the auto-paging facility is turned on when mold is
"paging".
|
void |
setPageSize(int pgsz)
Sets the page size, a.k.a., the number rows per page.
|
void |
setPagingPosition(java.lang.String pagingPosition)
Sets how to position the paging of mesh element at the client screen.
|
void |
setSizedByContent(boolean byContent)
Sets whether sizing grid/listbox/tree column width by its content; it equals set hflex="min" on each column.
|
void |
setSpan(boolean span)
Sets whether distributes remaining empty space of this component to ALL columns proportionally.
|
void |
setSpan(java.lang.String span)
Sets column span hint of this component.
|
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeightDirectly, setHflex, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setTopDirectly, setVflex, setWidth, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
addAnnotation, addAnnotation, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowRoots, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
public java.lang.String getSpan()
Default: null
setSpan(java.lang.String)
public void setSpan(java.lang.String span)
String number span indicates 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()
,
setSpan(boolean)
public void setSpan(boolean span)
Default: false. That is, NOT span any column.
Note span is meaningful only if there is remaining empty space for columns.
span
- whether to span the width of ALL columns to occupy the whole mesh element(grid/listbox/tree).public boolean isSpan()
Default: false.
getSpan()
,
setSpan(boolean)
,
setSpan(String)
public void setSizedByContent(boolean byContent)
Default: false.
byContent
- public boolean isSizedByContent()
setSizedByContent(boolean)
public void setAutopaging(boolean autopaging)
setPageSize(int)
is ignored;
rather, the page size is automatically determined by the height of the
Listbox dynamically. Note: Due to performance concern, Autopaging
functionality does not support Detail
components.autopaging
- true to turn on the auto-paging facility.public boolean isAutopaging()
setPageSize(int)
is ignored;
rather, the page size is automatically determined by the height of the
Listbox dynamically.public void setPagingPosition(java.lang.String pagingPosition)
pagingPosition
- how to position. It can only be "bottom" (the default), or
"top", or "both".protected abstract boolean isAutohidePaging()
public java.lang.String getPagingPosition()
getPagingPosition
in interface Paginated
protected abstract Paginal pgi()
public int getPageSize()
java.lang.IllegalStateException
- if pgi()
returns null,
i.e., mold is not "paging" and no external controller is specified.public void setPageSize(int pgsz) throws WrongValueException
java.lang.IllegalStateException
- if pgi()
returns null,
i.e., mold is not "paging" and no external controller is specified.WrongValueException
public int getPageCount()
public int getActivePage()
public void setActivePage(int pg) throws WrongValueException
WrongValueException
protected void renderProperties(ContentRenderer renderer) throws java.io.IOException
HtmlBasedComponent
renderProperties
in class XulElement
java.io.IOException
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.