Package com.inmethod.grid.common
Class ColumnsState.Entry
java.lang.Object
com.inmethod.grid.common.ColumnsState.Entry
- All Implemented Interfaces:
Serializable,IClusterable
- Enclosing class:
- ColumnsState
State entry for single column.
- Author:
- Matej Knopp
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns column identifier.intReturns the current width, or -1 if the width is not set.booleanReturn whether the column is visible.voidsetCurrentWidth(int currentWidth) Sets the current column width.voidsetVisible(boolean visible) Sets the visibility of the column.
-
Constructor Details
-
Entry
Creates new entry instance- Parameters:
columnId-
-
-
Method Details
-
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. IfcurrentWidthis -1, the initial column width will be used.- Parameters:
currentWidth-
-
isVisible
public boolean isVisible()Return whether the column is visible.- Returns:
trueif the column is visible,falseotherwise.
-
setVisible
public void setVisible(boolean visible) Sets the visibility of the column.- Parameters:
visible-
-
getColumnId
Returns column identifier.- Returns:
- column id
-