Class RowStateUtil
- java.lang.Object
-
- com.hybris.cockpitng.editor.extendedmultireferenceeditor.state.RowStateUtil
-
public final class RowStateUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEXTENDED_MULTI_REFERENCE_EDITORS_STATESstatic java.lang.StringMODIFIED_CELL_CLASS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> intconvertModelIndexToView(org.zkoss.zul.ListModel<T> listModel, EditorState<T> editorState, int modelIndex)Converts a index inEditorStateinto referring index in current view model.static <T> intconvertViewIndexToModel(org.zkoss.zul.ListModel<T> listModel, EditorState<T> editorState, int viewIndex)Converts a index in current view model into referring index inEditorState.static EditorStategetExtendedMultiReferenceEditorState(WidgetInstanceManager widgetInstanceManager, java.lang.String property)static RowStategetRowState(CellContext cellContext)Returns row state from cell context.static booleanisModelChanged(WidgetInstanceManager widgetInstanceManager)Returns if model for specific identifier changed.static booleanisModelChanged(WidgetInstanceManager widgetInstanceManager, java.lang.String inlineProperty)Returns if model for specific identifier changed.static voidresetEditorState(WidgetInstanceManager wim, java.lang.String property)
-
-
-
Field Detail
-
EXTENDED_MULTI_REFERENCE_EDITORS_STATES
public static final java.lang.String EXTENDED_MULTI_REFERENCE_EDITORS_STATES
- See Also:
- Constant Field Values
-
MODIFIED_CELL_CLASS
public static final java.lang.String MODIFIED_CELL_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getExtendedMultiReferenceEditorState
public static EditorState getExtendedMultiReferenceEditorState(WidgetInstanceManager widgetInstanceManager, java.lang.String property)
-
resetEditorState
public static void resetEditorState(WidgetInstanceManager wim, java.lang.String property)
-
convertViewIndexToModel
public static <T> int convertViewIndexToModel(org.zkoss.zul.ListModel<T> listModel, EditorState<T> editorState, int viewIndex)Converts a index in current view model into referring index inEditorState.- Parameters:
listModel- current view modeleditorState- editor stateviewIndex- index in current view model- Returns:
- index in editor state
-
convertModelIndexToView
public static <T> int convertModelIndexToView(org.zkoss.zul.ListModel<T> listModel, EditorState<T> editorState, int modelIndex)Converts a index inEditorStateinto referring index in current view model.- Parameters:
listModel- current view modeleditorState- editor statemodelIndex- index in editor state- Returns:
- index in current view model
-
isModelChanged
public static boolean isModelChanged(WidgetInstanceManager widgetInstanceManager, java.lang.String inlineProperty)
Returns if model for specific identifier changed.
-
isModelChanged
public static boolean isModelChanged(WidgetInstanceManager widgetInstanceManager)
Returns if model for specific identifier changed.
-
getRowState
public static RowState getRowState(CellContext cellContext)
Returns row state from cell context.
-
-