|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<RowSpanEditMode>
com.smartgwt.client.types.RowSpanEditMode
public enum RowSpanEditMode
When 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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
String |
getValue()
|
static RowSpanEditMode |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
).
Method Detail |
---|
public static RowSpanEditMode[] values()
for (RowSpanEditMode c : RowSpanEditMode.values()) System.out.println(c);
public static RowSpanEditMode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getValue()
getValue
in interface ValueEnum
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |