qx.ui.table.pane
Class Pane

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.ui.core.Widget
              extended by qx.ui.basic.Terminator
                  extended by qx.ui.table.pane.Pane

public class Pane
extends Terminator

The table pane that shows a certain section from a table. This class handles the display of the data part of a table and is therefore the base for virtual scrolling.


Field Summary
 
Fields inherited from class qx.ui.core.Widget
AUTO
 
Constructor Summary
Pane()
           
Pane(Scroller paneScroller)
           
 
Method Summary
 void _afterAppear()
           
 void _applyFirstVisibleRow(int value, int old)
          Applies changes of the property value of the property firstVisibleRow.
 void _applyMaxCacheLines(int value, int old)
          Applies changes of the property value of the property maxCacheLines.
 void _applyVisibleRowCount(int value, int old)
          Applies changes of the property value of the property visibleRowCount.
 java.lang.String _getRowsHtml(java.lang.Integer firstRow, java.lang.Integer rowCount)
          Get the HTML table fragment for the given row range.
 void _onColOrderChanged(java.lang.Object evt)
          Event handler.
 void _onColWidthChanged(java.lang.Object evt)
          Event handler.
 void _onFocusChanged(java.lang.Object evt)
          Event handler.
 void _onPaneModelChanged(java.lang.Object evt)
          Event handler.
 void _onSelectionChanged(java.lang.Object evt)
          Event handler.
 void _onTableModelDataChanged(java.lang.Object evt)
          Event handler.
 void _onTableModelMetaDataChanged(java.lang.Object evt)
          Event handler.
 void _scrollContent(java.lang.Integer rowOffset)
          Scrolls the pane’s contents by the given offset.
 void _updateAllRows()
          Updates the content of the pane (implemented using array joins).
 void _updateContent(boolean completeUpdate, java.lang.Integer scrollOffset, java.lang.Integer onlyRow, boolean onlySelectionOrFocusChanged)
          Updates the content of the pane.
 void _updateRowStyles(java.lang.Object onlyRow)
          If only focus or selection changes it is sufficient to only update the row styles.
 int getFirstVisibleRow()
          Returns the (computed) value of the property firstVisibleRow.
 int getMaxCacheLines()
          Returns the (computed) value of the property maxCacheLines.
 Scroller getPaneScroller()
          Returns the TablePaneScroller this pane belongs to.
 Table getTable()
          Returns the table this pane belongs to.
 int getVisibleRowCount()
          Returns the (computed) value of the property visibleRowCount.
 void initFirstVisibleRow(int arg)
          Calls the apply method and dispatches the change event of the property firstVisibleRow with the default value defined by the class developer.
 void initMaxCacheLines(int arg)
          Calls the apply method and dispatches the change event of the property maxCacheLines with the default value defined by the class developer.
 void initVisibleRowCount(int arg)
          Calls the apply method and dispatches the change event of the property visibleRowCount with the default value defined by the class developer.
 void resetFirstVisibleRow()
          Resets the user value of the property firstVisibleRow.
 void resetMaxCacheLines()
          Resets the user value of the property maxCacheLines.
 void resetVisibleRowCount()
          Resets the user value of the property visibleRowCount.
 void setFirstVisibleRow(int arg)
          Sets the user value of the property firstVisibleRow.
 void setFocusedCell(java.lang.Integer col, java.lang.Integer row, boolean massUpdate)
          Sets the currently focused cell.
 void setMaxCacheLines(int arg)
          Sets the user value of the property maxCacheLines.
 void setVisibleRowCount(int arg)
          Sets the user value of the property visibleRowCount.
 
Methods inherited from class qx.ui.basic.Terminator
_computeBoxHeightFallback, _computeBoxWidthFallback, _computePreferredInnerHeight, _computePreferredInnerWidth, _isHeightEssential, _isWidthEssential, _layoutPost, _postApply, _renderContent, renderPadding
 
Methods inherited from class qx.ui.core.Widget
_afterDisappear, _afterInsertDom, _afterRemoveDom, _applyAppearance, _applyBackgroundColor, _applyBackgroundImage, _applyBackgroundRepeat, _applyBorder, _applyBottom, _applyCapture, _applyClip, _applyCommand, _applyCursor, _applyDisplay, _applyElement, _applyElementData, _applyEnabled, _applyFocused, _applyFont, _applyHeight, _applyHideFocus, _applyHtmlAttributes, _applyHtmlProperties, _applyLeft, _applyMarginBottom, _applyMarginLeft, _applyMarginRight, _applyMarginTop, _applyMaxHeight, _applyMaxWidth, _applyMinHeight, _applyMinWidth, _applyOpacity, _applyOverflow, _applyPaddingBottom, _applyPaddingLeft, _applyPaddingRight, _applyPaddingTop, _applyParent, _applyRight, _applySelectable, _applyStateStyleFocus, _applyStyleProperties, _applyTabIndex, _applyTextColor, _applyTop, _applyVisibility, _applyWidth, _applyZIndex, _beforeAppear, _beforeDisappear, _beforeInsertDom, _beforeRemoveDom, _checkParent, _compileClipString, _computeBoxHeight, _computeBoxWidth, _computeDisplayable, _computeFrameHeight, _computeFrameWidth, _computeHasAutoX, _computeHasAutoY, _computeHasFlexX, _computeHasFlexY, _computeHasPercentX, _computeHasPercentY, _computeInnerHeight, _computeInnerWidth, _computeOuterHeight, _computeOuterWidth, _computePreferredBoxHeight, _computePreferredBoxWidth, _computeValuePercentX, _computeValuePercentXLimit, _computeValuePercentY, _computeValuePercentYLimit, _computeValuePixel, _computeValuePixelLimit, _createElementImpl, _evalUnitsPixelPercent, _evalUnitsPixelPercentAuto, _evalUnitsPixelPercentAutoFlex, _flushJobQueue, _generateHtmlId, _getTargetNode, _handleDisplayable, _invalidateFrameDimensions, _invalidatePreferredInnerDimensions, _queueBorder, _recomputeFlexX, _recomputeFlexY, _recomputePercentX, _recomputePercentY, _recomputeRangeX, _recomputeRangeY, _recomputeStretchingX, _recomputeStretchingY, _recursiveAppearanceThemeUpdate, _renderAppearance, _renderOverflow, _resetAppearanceThemeWrapper, _styleBackgroundColor, _styleBackgroundImage, _styleFromMap, _unitDetectionPixelPercent, _unitDetectionPixelPercentAuto, _unitDetectionPixelPercentAutoFlex, _unstyleFromArray, _visualizeBlur, _visualizeFocus, _visualPropertyCheck, addState, addToDocument, addToJobQueue, addToLayoutChanges, addToQueue, addToQueueRuntime, addToStateQueue, auto, blur, connect, contains, disconnect, execute, focus, getActiveChild, getAllowStretchX, getAllowStretchY, getAnonymous, getAppearance, getBackgroundColor, getBackgroundImage, getBackgroundRepeat, getBorder, getBottom, getBottomValue, getCapture, getChildren, getChildrenLength, getClientHeight, getClientWidth, getClipHeight, getClipLeft, getClipTop, getClipWidth, getCommand, getContextMenu, getCursor, getDisplay, getDropDataTypes, getElement, getEnabled, getEnableElementFocus, getFocused, getFocusRoot, getFont, getHeight, getHeightValue, getHideFocus, getHorizontalAlign, getHtmlAttribute, getHtmlProperty, getLeft, getLeftValue, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxHeightValue, getMaxWidth, getMaxWidthValue, getMinHeight, getMinHeightValue, getMinWidth, getMinWidthValue, getNeededHeight, getNeededWidth, getNextActiveSibling, getNextSibling, getNextVisibleSibling, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOpacity, getOverflow, getOverflowX, getOverflowY, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getPreviousActiveSibling, getPreviousSibling, getPreviousVisibleSibling, getRight, getRightValue, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSelectable, getStyleProperty, getSupportsDropMethod, getTabIndex, getTextColor, getToolTip, getTop, getTopLevelWidget, getTopValue, getVerticalAlign, getVisibility, getVisibleChildren, getVisibleChildrenLength, getWidth, getWidthValue, getZIndex, hasChildren, hasState, hasVisibleChildren, hide, indexOf, initAllowStretchX, initAllowStretchY, initAnonymous, initAppearance, initBackgroundColor, initBackgroundImage, initBackgroundRepeat, initBorder, initBottom, initCapture, initClipHeight, initClipLeft, initClipTop, initClipWidth, initCommand, initContextMenu, initCursor, initDisplay, initDropDataTypes, initElement, initEnabled, initEnableElementFocus, initFocused, initFont, initHeight, initHideFocus, initHorizontalAlign, initLeft, initMarginBottom, initMarginLeft, initMarginRight, initMarginTop, initMaxHeight, initMaxWidth, initMinHeight, initMinWidth, initOpacity, initOverflow, initPaddingBottom, initPaddingLeft, initPaddingRight, initPaddingTop, initParent, initRight, initSelectable, initSupportsDropMethod, initTabIndex, initTextColor, initToolTip, initTop, initVerticalAlign, initVisibility, initWidth, initZIndex, isAllowStretchX, isAllowStretchY, isAnonymous, isAppearRelevant, isCapture, isCreated, isDisplay, isDisplayable, isEmpty, isEnabled, isEnableElementFocus, isFirstChild, isFirstVisibleChild, isFocusable, isFocused, isFocusRoot, isHideFocus, isLastChild, isLastVisibleChild, isMaterialized, isSeeable, isSelectable, isVisibility, isVisibleEmpty, moveSelfAfter, moveSelfBefore, moveSelfToBegin, moveSelfToEnd, pack, recursiveAddToStateQueue, removeHtmlAttribute, removeHtmlProperty, removeState, removeStyleProperty, resetAlign, resetAllowStretchX, resetAllowStretchY, resetAnonymous, resetAppearance, resetBackgroundColor, resetBackgroundImage, resetBackgroundRepeat, resetBorder, resetBottom, resetCapture, resetClip, resetClipDimension, resetClipHeight, resetClipLeft, resetClipLocation, resetClipTop, resetClipWidth, resetCommand, resetContextMenu, resetCursor, resetDimension, resetDisplay, resetDropDataTypes, resetEdge, resetElement, resetEnabled, resetEnableElementFocus, resetFocused, resetFont, resetHeight, resetHeights, resetHideFocus, resetHorizontalAlign, resetLeft, resetLocation, resetMargin, resetMarginBottom, resetMarginLeft, resetMarginRight, resetMarginTop, resetMaxHeight, resetMaxWidth, resetMinHeight, resetMinWidth, resetOpacity, resetOverflow, resetPadding, resetPaddingBottom, resetPaddingLeft, resetPaddingRight, resetPaddingTop, resetParent, resetRight, resetSelectable, resetSpace, resetSupportsDropMethod, resetTabIndex, resetTextColor, resetToolTip, resetTop, resetVerticalAlign, resetVisibility, resetWidth, resetWidths, resetZIndex, scrollIntoView, scrollIntoViewX, scrollIntoViewY, setAlign, setAllowStretchX, setAllowStretchY, setAnonymous, setAppearance, setBackgroundColor, setBackgroundImage, setBackgroundRepeat, setBorder, setBottom, setCapture, setClip, setClipDimension, setClipHeight, setClipLeft, setClipLocation, setClipTop, setClipWidth, setCommand, setContextMenu, setCursor, setDimension, setDisplay, setDropDataTypes, setEdge, setElement, setEnabled, setEnableElementFocus, setFocused, setFont, setHeight, setHeights, setHideFocus, setHorizontalAlign, setHtmlAttribute, setHtmlProperty, setLeft, setLocation, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setParent, setRight, setScrollLeft, setScrollTop, setSelectable, setSpace, setStyleProperty, setSupportsDropMethod, setTabIndex, setTextColor, setToolTip, setTop, setVerticalAlign, setVisibility, setWidth, setWidths, setZIndex, show, supportsDrop, toggleAllowStretchX, toggleAllowStretchY, toggleAnonymous, toggleCapture, toggleDisplay, toggleEnabled, toggleEnableElementFocus, toggleFocused, toggleHideFocus, toggleSelectable, toggleVisibility
 
Methods inherited from class qx.core.Target
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener
 
Methods inherited from class qx.core.Object
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pane

public Pane()

Pane

public Pane(Scroller paneScroller)
Method Detail

_afterAppear

public void _afterAppear()
Overrides:
_afterAppear in class Widget

_applyFirstVisibleRow

public void _applyFirstVisibleRow(int value,
                                  int old)

Applies changes of the property value of the property firstVisibleRow.

For further details take a look at the property definition: _applyFirstVisibleRow(int, int).


_applyMaxCacheLines

public void _applyMaxCacheLines(int value,
                                int old)

Applies changes of the property value of the property maxCacheLines.

For further details take a look at the property definition: _applyMaxCacheLines(int, int).


_applyVisibleRowCount

public void _applyVisibleRowCount(int value,
                                  int old)

Applies changes of the property value of the property visibleRowCount.

For further details take a look at the property definition: _applyVisibleRowCount(int, int).


_getRowsHtml

public java.lang.String _getRowsHtml(java.lang.Integer firstRow,
                                     java.lang.Integer rowCount)

Get the HTML table fragment for the given row range.


_onColOrderChanged

public void _onColOrderChanged(java.lang.Object evt)

Event handler. Called the column order has changed.


_onColWidthChanged

public void _onColWidthChanged(java.lang.Object evt)

Event handler. Called when the width of a column has changed.


_onFocusChanged

public void _onFocusChanged(java.lang.Object evt)

Event handler. Called when the table gets or looses the focus.


_onPaneModelChanged

public void _onPaneModelChanged(java.lang.Object evt)

Event handler. Called when the pane model has changed.


_onSelectionChanged

public void _onSelectionChanged(java.lang.Object evt)

Event handler. Called when the selection has changed.


_onTableModelDataChanged

public void _onTableModelDataChanged(java.lang.Object evt)

Event handler. Called when the table model data has changed.


_onTableModelMetaDataChanged

public void _onTableModelMetaDataChanged(java.lang.Object evt)

Event handler. Called when the table model meta data has changed.


_scrollContent

public void _scrollContent(java.lang.Integer rowOffset)

Scrolls the pane’s contents by the given offset.


_updateAllRows

public void _updateAllRows()

Updates the content of the pane (implemented using array joins).


_updateContent

public void _updateContent(boolean completeUpdate,
                           java.lang.Integer scrollOffset,
                           java.lang.Integer onlyRow,
                           boolean onlySelectionOrFocusChanged)

Updates the content of the pane.


_updateRowStyles

public void _updateRowStyles(java.lang.Object onlyRow)

If only focus or selection changes it is sufficient to only update the row styles. This method updates the row styles of all visible rows or of just one row.


getFirstVisibleRow

public int getFirstVisibleRow()

Returns the (computed) value of the property firstVisibleRow.

For further details take a look at the property definition: firstVisibleRow.


getMaxCacheLines

public int getMaxCacheLines()

Returns the (computed) value of the property maxCacheLines.

For further details take a look at the property definition: maxCacheLines.


getPaneScroller

public Scroller getPaneScroller()

Returns the TablePaneScroller this pane belongs to.


getTable

public Table getTable()

Returns the table this pane belongs to.


getVisibleRowCount

public int getVisibleRowCount()

Returns the (computed) value of the property visibleRowCount.

For further details take a look at the property definition: visibleRowCount.


initFirstVisibleRow

public void initFirstVisibleRow(int arg)

Calls the apply method and dispatches the change event of the property firstVisibleRow with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: firstVisibleRow.


initMaxCacheLines

public void initMaxCacheLines(int arg)

Calls the apply method and dispatches the change event of the property maxCacheLines with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: maxCacheLines.


initVisibleRowCount

public void initVisibleRowCount(int arg)

Calls the apply method and dispatches the change event of the property visibleRowCount with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: visibleRowCount.


resetFirstVisibleRow

public void resetFirstVisibleRow()

Resets the user value of the property firstVisibleRow.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: firstVisibleRow.


resetMaxCacheLines

public void resetMaxCacheLines()

Resets the user value of the property maxCacheLines.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: maxCacheLines.


resetVisibleRowCount

public void resetVisibleRowCount()

Resets the user value of the property visibleRowCount.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: visibleRowCount.


setFirstVisibleRow

public void setFirstVisibleRow(int arg)

Sets the user value of the property firstVisibleRow.

For further details take a look at the property definition: firstVisibleRow.


setFocusedCell

public void setFocusedCell(java.lang.Integer col,
                           java.lang.Integer row,
                           boolean massUpdate)

Sets the currently focused cell.


setMaxCacheLines

public void setMaxCacheLines(int arg)

Sets the user value of the property maxCacheLines.

For further details take a look at the property definition: maxCacheLines.


setVisibleRowCount

public void setVisibleRowCount(int arg)

Sets the user value of the property visibleRowCount.

For further details take a look at the property definition: visibleRowCount.



Copyright © 2008 1&1. All Rights Reserved.