zkmax.big
Class Biglistbox

java.lang.Object
  extended by zk.Object
      extended by zk.Widget
          extended by zul.Widget
              extended by zkmax.big.Biglistbox

public class Biglistbox
extends Widget

A component to handle a huge data sets and provides the same and as many as the functionalities of Listbox including selection, sorting, keystroke navigation, ROD(rendering-on-demand), and so on.

Default Widget.getZclass(): z-biglistbox.

To have a list box without stripping, you can specify a non-existent style class to setOddRowSclass(_global_.String).

Since:
6.0.1

Field Summary
 
Fields inherited from class zk.Widget
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName
 
Fields inherited from class zk.Object
$class, $oid
 
Method Summary
 int getCols()
          Returns the columns' size of the viewport.
 String getColWidth()
          Returns the width of the single column Default: 60px
 int getFrozenCols()
          Returns the size of the frozen columns.
 String getOddRowSclass()
          Returns the style class for the odd rows.
 String getRowHeight()
          Returns the height of the single row.
 int getRows()
          Returns the rows' size of the viewport.
 boolean isAutoCols()
          Returns whether enables the auto adjusting cols size.
 boolean isAutoRows()
          Returns whether enables the auto adjusting rows size.
 boolean isFixFrozenCols()
          Returns whether to fix the frozen columns.
 void setAutoCols(boolean autoCols)
          Sets whether enables the auto adjusting cols size.
 void setAutoRows(boolean autoRows)
          Sets whether enables the auto adjusting rows size.
 void setCols(int cols)
          Sets the columns' size of the viewport.
 void setColWidth(String colWidth)
          Sets the width of the single column.
 void setFixFrozenCols(boolean fixFrozenCols)
          Sets to fix the frozen columns, if true, meaning the user cannot change the size of the frozen columns dynamically.
 void setFrozenCols(int fcols)
          Sets the size of the frozen columns.
 Biglistbox setOddRowSclass(String oddRowSclass)
          Sets the style class for the odd rows.
 void setRowHeight(String rowHeight)
          Sets the height of the single row.
 void setRows(int rows)
          Sets the rows' size of the viewport.
 
Methods inherited from class zul.Widget
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
 
Methods inherited from class zk.Widget
$, $f, $f, $f, $init, $n, $n, $o, afterAnima_, afterParentChanged_, appendChild, appendChild, beforeParentChanged_, beforeSendAU_, bind_, bind, bindChildren_, bindDoubleTap_, bindSwipe_, canActivate, cleanDrag_, clear, clearCache, cloneDrag_, deferRedrawHTML_, detach, doBlur_, doClick_, doDoubleClick_, doFocus_, doKeyDown_, doKeyPress_, doKeyUp_, domAttrs_, domClass_, domListen_, doMouseDown_, doMouseMove_, doMouseOut_, doMouseOver_, doMouseUp_, domStyle_, domTextStyleAttr_, domTooltiptext_, domUnlisten_, doRightClick_, doSelect_, doSwipe_, doTooltipOut_, doTooltipOver_, dropEffect_, extraBind_, fire, fireX, focus_, focus, forcerender, fromPageCoord, get, getAction, getCaveNode, getChildAt, getChildIndex, getClass, getDraggable, getDragMessage_, getDragNode, getDragOptions_, getDrop_, getDroppable, getElementsById, getElementsByName, getFirstNode_, getFloatZIndex_, getHeight, getHflex, getId, getLeft, getMold, getOldWidget_, getPage, getRenderdefer, getSclass, getScrollLeft, getScrollTop, getStyle, getTextNode, getTooltiptext, getTop, getTopWidget, getVflex, getWidth, getZclass, getZIndex, hide, ignoreDescendantFloatUp_, ignoreDrag_, initDrag_, insertBefore, insertChildHTML_, isAutoId, isBinding, isFloating_, isListen, isRealVisible, isRealVisible, isVisible, isVisible, isWatchable_, listen, listenOnFitSize_, mimicMouseDown_, newInstance, nextUuid, onChildAdded_, onChildRemoved_, onChildReplaced_, onChildVisible_, onDrop_, redraw, redrawHTML_, register, removeChild, removeChild, removeChildHTML_, removeHTML_, replaceCavedChildren_, replaceChildHTML_, replaceHTML, replaceWidget, rerender, rerender, scrollIntoView, sendAU_, set, set, setAction, setChildren, setDomVisible_, setDraggable, setDroppable, setFloating_, setFloatZIndex_, setHeight, setHflex, setId, setLeft, setListener, setListener, setListeners, setMold, setRenderdefer, setSclass, setScrollLeft, setScrollTop, setStyle, setTooltiptext, setTop, setTopmost, setVflex, setVisible, setWidth, setZclass, setZIndex, shallChildROD_, shallIgnoreClick_, show, smartUpdate, unbind_, unbind, unbindChildren_, unbindDoubleTap_, unbindSwipe_, uncloneDrag_, unlisten, unlistenOnFitSize_, updateDomClass_, updateDomStyle_, uuid, zsync
 
Methods inherited from class zk.Object
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRows

public int getRows()
Returns the rows' size of the viewport.

Default: 30

Returns:
int

setRows

public void setRows(int rows)
Sets the rows' size of the viewport.

Default: 30, and it will be adjusted by client engine according with the browser height.

Parameters:
rows -

getCols

public int getCols()
Returns the columns' size of the viewport.

Default: 30

Returns:
int

setCols

public void setCols(int cols)
Sets the columns' size of the viewport.

Default: 30, and it will be adjusted by client engine according with the browser width.

Parameters:
cols -

getRowHeight

public String getRowHeight()
Returns the height of the single row.

Default: 30px

Returns:
String

setRowHeight

public void setRowHeight(String rowHeight)
Sets the height of the single row.

Default: 30px

Parameters:
rowHeight -

getColWidth

public String getColWidth()
Returns the width of the single column

Default: 60px

Returns:
String

setColWidth

public void setColWidth(String colWidth)
Sets the width of the single column.

Default: 60px

Parameters:
colWidth -

isFixFrozenCols

public boolean isFixFrozenCols()
Returns whether to fix the frozen columns.

Default: false

Returns:
boolean

setFixFrozenCols

public void setFixFrozenCols(boolean fixFrozenCols)
Sets to fix the frozen columns, if true, meaning the user cannot change the size of the frozen columns dynamically.

Parameters:
fixFrozenCols -

getFrozenCols

public int getFrozenCols()
Returns the size of the frozen columns.

Default: 0

Returns:
int

setFrozenCols

public void setFrozenCols(int fcols)
Sets the size of the frozen columns.

Parameters:
fcols - the size of the frozen columns, it cannot be negative.

isAutoCols

public boolean isAutoCols()
Returns whether enables the auto adjusting cols size.

Default: true.

Returns:
boolean

setAutoCols

public void setAutoCols(boolean autoCols)
Sets whether enables the auto adjusting cols size.

Default: true.

Parameters:
autoCols -

isAutoRows

public boolean isAutoRows()
Returns whether enables the auto adjusting rows size.

Default: true.

Returns:
boolean

setAutoRows

public void setAutoRows(boolean autoRows)
Sets whether enables the auto adjusting rows size.

Default: true.

Parameters:
autoRows -

getOddRowSclass

public String getOddRowSclass()
Returns the style class for the odd rows.

Default: Widget.getZclass()-odd.

Returns:
String

setOddRowSclass

public Biglistbox setOddRowSclass(String oddRowSclass)
Sets the style class for the odd rows. If the style class doesn't exist, the striping effect disappears. You can provide different effects by providing the proper style classes.

Parameters:
oddRowSclass -
Returns:
Biglistbox


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo