qx.ui.table.columnmodel
Class Resize

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.ui.table.columnmodel.Basic
              extended by qx.ui.table.columnmodel.Resize

public class Resize
extends Basic

A table column model that automagically resizes columns based on a selected behavior.


Constructor Summary
Resize()
           
 
Method Summary
 void _addResetColumnWidthButton(DataEvent event)
          Reset the column widths to their “onappear” defaults.
 void _applyBehavior(java.lang.Object value, java.lang.Object old)
           
 void _onappear(Event event)
          Event handler for the “appear” event.
 void _oncolumnwidthchanged(DataEvent event)
          Event handler for the “widthChanged” event.
 void _ontablewidthchanged(Event event)
          Event handler for the “tableWidthChanged” event.
 void _onverticalscrollbarchanged(DataEvent event)
          Event handler for the “verticalScrollBarChanged” event.
 void _onvisibilitychanged(DataEvent event)
          Event handler for the “visibilityChanged” event.
 Abstract getBehavior()
          Returns the (computed) value of the property behavior.
 void init(java.lang.Object numColumns, Table table)
          Initializes the column model.
 void initBehavior(Abstract arg)
          Calls the apply method and dispatches the change event of the property behavior with the default value defined by the class developer.
 void resetBehavior()
          Resets the user value of the property behavior.
 void setBehavior(Abstract arg)
          Sets the user value of the property behavior.
 
Methods inherited from class qx.ui.table.columnmodel.Basic
_getColToXPosMap, getCellEditorFactory, getColumnWidth, getDataCellRenderer, getHeaderCellRenderer, getOverallColumnAtX, getOverallColumnCount, getOverallX, getVisibleColumnAtX, getVisibleColumnCount, getVisibleX, init, isColumnVisible, moveColumn, setCellEditorFactory, setColumnVisible, setColumnWidth, setDataCellRenderer, setHeaderCellRenderer
 
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

Resize

public Resize()
Method Detail

_addResetColumnWidthButton

public void _addResetColumnWidthButton(DataEvent event)

Reset the column widths to their “onappear” defaults.


_applyBehavior

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

_onappear

public void _onappear(Event event)

Event handler for the “appear” event.


_oncolumnwidthchanged

public void _oncolumnwidthchanged(DataEvent event)

Event handler for the “widthChanged” event.


_ontablewidthchanged

public void _ontablewidthchanged(Event event)

Event handler for the “tableWidthChanged” event.


_onverticalscrollbarchanged

public void _onverticalscrollbarchanged(DataEvent event)

Event handler for the “verticalScrollBarChanged” event.


_onvisibilitychanged

public void _onvisibilitychanged(DataEvent event)

Event handler for the “visibilityChanged” event.


getBehavior

public Abstract getBehavior()

Returns the (computed) value of the property behavior.

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


init

public void init(java.lang.Object numColumns,
                 Table table)

Initializes the column model.


initBehavior

public void initBehavior(Abstract arg)

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


resetBehavior

public void resetBehavior()

Resets the user value of the property behavior.

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


setBehavior

public void setBehavior(Abstract arg)

Sets the user value of the property behavior.

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



Copyright © 2008 1&1. All Rights Reserved.