|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.core.Target
qx.ui.table.pane.Model
public class Model
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 |
---|
public Model()
public Model(Basic tableColumnModel)
Method Detail |
---|
public void _applyFirstColumnX(java.lang.Object value, java.lang.Object old)
public void _applyMaxColumnCount(java.lang.Object value, java.lang.Object old)
public void _onColVisibilityChanged(java.lang.Object evt)
Event handler. Called when the visibility of a column has changed.
public java.lang.Integer getColumnAtX(java.lang.Integer xPos)
Returns the model index of the column at the position xPos
.
public java.lang.Integer getColumnCount()
Returns the number of columns in this model.
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.
public java.lang.Integer getFirstColumnX()
Returns the (computed) value of the property firstColumnX
.
For further details take a look at the property definition: firstColumnX
.
public int getMaxColumnCount()
Returns the (computed) value of the property maxColumnCount
.
For further details take a look at the property definition: maxColumnCount
.
public java.lang.Integer getTotalWidth()
Returns the total width of all columns in the model.
public java.lang.Integer getX(java.lang.Integer col)
Returns the x position of the column col
.
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
.
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
.
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
.
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
.
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
.
public void setMaxColumnCount(int arg)
Sets the user value of the property maxColumnCount
.
For further details take a look at the property definition: maxColumnCount
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |