public class DefaultCellComparator extends Object implements Comparator<Object>
Constructor and Description |
---|
DefaultCellComparator(EditableGrid grid)
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
Object o2)
Compares cell values.
|
protected String |
getComboBoxText(ComboBox comboBox)
Gets a text value of the combo box.
|
protected String |
getComboBoxText(ListDataModel model)
This method converts the model into its string representation.
|
protected EditableGrid |
getGrid()
Getter for property 'grid'.
|
protected String |
getLabelText(com.google.gwt.user.client.ui.ListBox listBox)
This method returns a text for the inactive label.
|
protected Comparable |
prepareValue(Object value)
This method prepares the specified value and replace it with the default one
if it's
null . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public DefaultCellComparator(EditableGrid grid)
grid
- is a grid.public int compare(Object o1, Object o2)
compare
in interface Comparator<Object>
o1
- is a cell value.o2
- is a cell value.protected Comparable prepareValue(Object value)
null
.value
- is a value to be prepared.protected String getComboBoxText(ListDataModel model)
model
- is a model to be converted.protected String getLabelText(com.google.gwt.user.client.ui.ListBox listBox)
listBox
- is a list box.protected String getComboBoxText(ComboBox comboBox)
comboBox
- is a combo box.protected EditableGrid getGrid()
Copyright © 2008–2013. All rights reserved.