com.inmethod.grid.common
Class ColumnsState.Entry

java.lang.Object
  extended by com.inmethod.grid.common.ColumnsState.Entry
All Implemented Interfaces:
Serializable, IClusterable
Enclosing class:
ColumnsState

public static class ColumnsState.Entry
extends Object
implements IClusterable

State entry for single column.

Author:
Matej Knopp
See Also:
Serialized Form

Constructor Summary
ColumnsState.Entry(String columnId)
          Creates new entry instance
 
Method Summary
 String getColumnId()
          Returns column identifier.
 int getCurrentWidth()
          Returns the current width, or -1 if the width is not set.
 boolean isVisible()
          Return whether the column is visible.
 void setCurrentWidth(int currentWidth)
          Sets the current column width.
 void setVisible(boolean visible)
          Sets the visibility of the column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnsState.Entry

public ColumnsState.Entry(String columnId)
Creates new entry instance

Parameters:
columnId -
Method Detail

getCurrentWidth

public int getCurrentWidth()
Returns the current width, or -1 if the width is not set. In that case the initial column width will be used.

Returns:
current column width

setCurrentWidth

public void setCurrentWidth(int currentWidth)
Sets the current column width. If currentWidth is -1, the initial column width will be used.

Parameters:
currentWidth -

isVisible

public boolean isVisible()
Return whether the column is visible.

Returns:
true if the column is visible, false otherwise.

setVisible

public void setVisible(boolean visible)
Sets the visibility of the column.

Parameters:
visible -

getColumnId

public String getColumnId()
Returns column identifier.

Returns:
column id


Copyright © 2007–2014 inMethod s.r.o.. All rights reserved.