public enum RowSpanEditMode extends java.lang.Enum<RowSpanEditMode> implements ValueEnum
allowRowSpanning
is enabled, certain cells
may span multiple rows. In this case, the cell displays the value from the record in the first row. If the grid is
editable
(and the field is also editable
), these settings allow the user to
specify what happens to the data when the user edits this cell. Note that in this scenario, a user may begin an edit
on the row-spanning cell directly (via double-click for example), or on a cell in another column in any of the rows
spanned by the cell. The appropriate behavior with respect to user-experience and how the data is manipulated will
depend on the application in question. Developers may of course entirely disable editing for the field via canEdit
or canEditCell
.
See also: useRowSpanStyling
Enum Constant and Description |
---|
EACH
This setting assumes that each row's values are logically separate, so if a cell spans multiple rows, and a user
initializes an edit on some cell in the second spanned row, the spanning cell will show an editor containing the value
for the second spanned row.
|
FIRST
This setting assumes that only the field-value for the first record spanned by this cell is significant.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static RowSpanEditMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RowSpanEditMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RowSpanEditMode FIRST
public static final RowSpanEditMode EACH
ListGridField.formatCellValue
and applying custom logic
to handle editing on ListGridField.editorEnter
and ListGridField.editorExit
).public static RowSpanEditMode[] values()
for (RowSpanEditMode c : RowSpanEditMode.values()) System.out.println(c);
public static RowSpanEditMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null