org.cruxframework.crux.widgets.client.grid
Class Row

java.lang.Object
  extended by org.cruxframework.crux.widgets.client.grid.Row
Direct Known Subclasses:
DataRow

public class Row
extends Object


Constructor Summary
protected Row(int index, com.google.gwt.dom.client.Element elem, AbstractGrid<?> grid, boolean hasSelectionCell)
           
protected Row(int index, com.google.gwt.dom.client.Element elem, AbstractGrid<?> grid, boolean hasSelectionCell, boolean hasRowDetails, boolean showRowDetailsIcon)
           
 
Method Summary
 void addStyleDependentName(String styleSuffix)
          Adds a style name to the row
protected  Cell getCell(String column)
           
 RowDetailsPanel getDetailsPanel()
           
 com.google.gwt.dom.client.Element getElem()
           
protected  AbstractGrid<?> getGrid()
           
 int getIndex()
           
 Button getRowDetailsIcon()
           
 com.google.gwt.user.client.ui.Widget getWidget(String column)
          Gets the cell internal widget
 boolean isDetailsShown()
           
 boolean isEnabled()
           
 boolean isHasRowDetails()
           
 boolean isHasSelectionCell()
           
protected  boolean isSelected()
           
 boolean isShowRowDetailsIcon()
           
 void removeStyleDependentName(String styleSuffix)
          Adds a style name to the row
protected  void setCell(Cell cell, String column)
           
 void setEnabled(boolean enabled)
           
 void setRowSelectorEnabled(boolean enabled)
           
 void setSelected(boolean selected)
           
 void setStyle(String styleName)
          Sets the style name of the row
 void setVisible(boolean visible)
           
 void showDetails(boolean show, boolean fireEvents)
          Shows the details of this row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Row

protected Row(int index,
              com.google.gwt.dom.client.Element elem,
              AbstractGrid<?> grid,
              boolean hasSelectionCell,
              boolean hasRowDetails,
              boolean showRowDetailsIcon)

Row

protected Row(int index,
              com.google.gwt.dom.client.Element elem,
              AbstractGrid<?> grid,
              boolean hasSelectionCell)
Method Detail

setCell

protected void setCell(Cell cell,
                       String column)

getCell

protected Cell getCell(String column)

addStyleDependentName

public void addStyleDependentName(String styleSuffix)
Adds a style name to the row

Parameters:
rowIndex -

getWidget

public com.google.gwt.user.client.ui.Widget getWidget(String column)
Gets the cell internal widget

Parameters:
column -
Returns:

removeStyleDependentName

public void removeStyleDependentName(String styleSuffix)
Adds a style name to the row

Parameters:
rowIndex -

setStyle

public void setStyle(String styleName)
Sets the style name of the row

Parameters:
rowIndex -

setSelected

public void setSelected(boolean selected)

isSelected

protected boolean isSelected()
Returns:
the selected

getGrid

protected AbstractGrid<?> getGrid()
Returns:
the grid

setVisible

public void setVisible(boolean visible)

isEnabled

public boolean isEnabled()
Returns:
the enabled

showDetails

public void showDetails(boolean show,
                        boolean fireEvents)
Shows the details of this row.

Parameters:
show -
fireEvents -

isDetailsShown

public boolean isDetailsShown()
Returns:
true if the details of the row are shown

setEnabled

public void setEnabled(boolean enabled)
Parameters:
enabled - the enabled to set

setRowSelectorEnabled

public void setRowSelectorEnabled(boolean enabled)

getDetailsPanel

public RowDetailsPanel getDetailsPanel()
Returns:
The panel on which the row's details are attached

getRowDetailsIcon

public Button getRowDetailsIcon()
Returns:
The icon which collapses or expands the row's details

getIndex

public int getIndex()

getElem

public com.google.gwt.dom.client.Element getElem()

isHasSelectionCell

public boolean isHasSelectionCell()

isHasRowDetails

public boolean isHasRowDetails()

isShowRowDetailsIcon

public boolean isShowRowDetailsIcon()


Copyright © 2015. All rights reserved.