com.extjs.gxt.ui.client.event
Class ColumnModelEvent

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseEvent
      extended by com.extjs.gxt.ui.client.event.ColumnModelEvent

public class ColumnModelEvent
extends BaseEvent

ColumnModel event.

See Also:
ColumnModel

Constructor Summary
ColumnModelEvent(ColumnModel cm)
          Creates a new column model event.
ColumnModelEvent(ColumnModel cm, int colIndex)
          Creates a new column model event.
 
Method Summary
 int getColIndex()
          Returns the column's index.
 ColumnModel getColumnModel()
          Returns the source column model.
 java.lang.String getHeader()
          Returns the column's header text.
 int getWidth()
          Returns the column width.
 boolean isHidden()
          Returns true if the column is hidden.
 void setColIndex(int colIndex)
          Sets the column's index.
 void setHeader(java.lang.String header)
          Sets the column header text.
 void setHidden(boolean hidden)
          Sets the column's hidden state.
 void setWidth(int width)
           
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseEvent
getSource, getType, isCancelled, setCancelled, setSource, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnModelEvent

public ColumnModelEvent(ColumnModel cm)
Creates a new column model event.

Parameters:
cm - the column model event

ColumnModelEvent

public ColumnModelEvent(ColumnModel cm,
                        int colIndex)
Creates a new column model event.

Parameters:
cm - the source column model
colIndex - the column index
Method Detail

getColIndex

public int getColIndex()
Returns the column's index.

Returns:
the column index

getColumnModel

public ColumnModel getColumnModel()
Returns the source column model.

Returns:
the column model

getHeader

public java.lang.String getHeader()
Returns the column's header text.

Returns:
the header text

getWidth

public int getWidth()
Returns the column width.

Returns:
the column width

isHidden

public boolean isHidden()
Returns true if the column is hidden.

Returns:
true if hidden

setColIndex

public void setColIndex(int colIndex)
Sets the column's index.

Parameters:
colIndex - the column index

setHeader

public void setHeader(java.lang.String header)
Sets the column header text.

Parameters:
header - the header text

setHidden

public void setHidden(boolean hidden)
Sets the column's hidden state.

Parameters:
hidden - true if hidden

setWidth

public void setWidth(int width)