Class EditTextCell.ViewData

java.lang.Object
com.google.gwt.cell.client.EditTextCell.ViewData
Enclosing class:
EditTextCell

static class EditTextCell.ViewData extends Object
The view data object used by this cell. We need to store both the text and the state because this cell is rendered differently in edit mode. If we did not store the edit state, refreshing the cell with view data would always put us in to edit state, rendering a text box instead of the new text string.
  • Constructor Details

    • ViewData

      public ViewData(String text)
      Construct a new ViewData in editing mode.
      Parameters:
      text - the text to edit
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getOriginal

      public String getOriginal()
    • getText

      public String getText()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isEditing

      public boolean isEditing()
    • isEditingAgain

      public boolean isEditingAgain()
    • setEditing

      public void setEditing(boolean isEditing)
    • setText

      public void setText(String text)