qx.ui.table.pane
Class Model

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.ui.table.pane.Model

public class Model
extends Target

The model of a table pane. This model works as proxy to a Basic and manages the visual order of the columns shown in a TablePane.


Constructor Summary
Model()
           
Model(Basic tableColumnModel)
           
 
Method Summary
 void _applyFirstColumnX(java.lang.Object value, java.lang.Object old)
           
 void _applyMaxColumnCount(java.lang.Object value, java.lang.Object old)
           
 void _onColVisibilityChanged(java.lang.Object evt)
          Event handler.
 java.lang.Integer getColumnAtX(java.lang.Integer xPos)
          Returns the model index of the column at the position xPos.
 java.lang.Integer getColumnCount()
          Returns the number of columns in this model.
 java.lang.Object getColumnLeft(java.lang.Integer col)
          Gets the position of the left side of a column (in pixels, relative to the left side of the table pane).
 java.lang.Integer getFirstColumnX()
          Returns the (computed) value of the property firstColumnX.
 int getMaxColumnCount()
          Returns the (computed) value of the property maxColumnCount.
 java.lang.Integer getTotalWidth()
          Returns the total width of all columns in the model.
 java.lang.Integer getX(java.lang.Integer col)
          Returns the x position of the column col.
 void initFirstColumnX(java.lang.Integer arg)
          Calls the apply method and dispatches the change event of the property firstColumnX with the default value defined by the class developer.
 void initMaxColumnCount(int arg)
          Calls the apply method and dispatches the change event of the property maxColumnCount with the default value defined by the class developer.
 void resetFirstColumnX()
          Resets the user value of the property firstColumnX.
 void resetMaxColumnCount()
          Resets the user value of the property maxColumnCount.
 void setFirstColumnX(java.lang.Integer arg)
          Sets the user value of the property firstColumnX.
 void setMaxColumnCount(int arg)
          Sets the user value of the property maxColumnCount.
 
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

Model

public Model()

Model

public Model(Basic tableColumnModel)
Method Detail

_applyFirstColumnX

public void _applyFirstColumnX(java.lang.Object value,
                               java.lang.Object old)

_applyMaxColumnCount

public void _applyMaxColumnCount(java.lang.Object value,
                                 java.lang.Object old)

_onColVisibilityChanged

public void _onColVisibilityChanged(java.lang.Object evt)

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


getColumnAtX

public java.lang.Integer getColumnAtX(java.lang.Integer xPos)

Returns the model index of the column at the position xPos.


getColumnCount

public java.lang.Integer getColumnCount()

Returns the number of columns in this model.


getColumnLeft

public java.lang.Object getColumnLeft(java.lang.Integer col)

Gets the position of the left side of a column (in pixels, relative to the left side of the table pane).

This value corresponds to the sum of the widths of all columns left of the column.


getFirstColumnX

public java.lang.Integer getFirstColumnX()

Returns the (computed) value of the property firstColumnX.

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


getMaxColumnCount

public int getMaxColumnCount()

Returns the (computed) value of the property maxColumnCount.

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


getTotalWidth

public java.lang.Integer getTotalWidth()

Returns the total width of all columns in the model.


getX

public java.lang.Integer getX(java.lang.Integer col)

Returns the x position of the column col.


initFirstColumnX

public void initFirstColumnX(java.lang.Integer arg)

Calls the apply method and dispatches the change event of the property firstColumnX 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: firstColumnX.


initMaxColumnCount

public void initMaxColumnCount(int arg)

Calls the apply method and dispatches the change event of the property maxColumnCount 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: maxColumnCount.


resetFirstColumnX

public void resetFirstColumnX()

Resets the user value of the property firstColumnX.

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: firstColumnX.


resetMaxColumnCount

public void resetMaxColumnCount()

Resets the user value of the property maxColumnCount.

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: maxColumnCount.


setFirstColumnX

public void setFirstColumnX(java.lang.Integer arg)

Sets the user value of the property firstColumnX.

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


setMaxColumnCount

public void setMaxColumnCount(int arg)

Sets the user value of the property maxColumnCount.

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



Copyright © 2008 1&1. All Rights Reserved.