com.im.ijc.widgets/1 5.9.1

com.im.ijc.widgets.abstractwidget
Class FieldHelper

java.lang.Object
  extended by com.im.ijc.widgets.abstractwidget.FieldHelper

public final class FieldHelper
extends Object


Method Summary
static Object getCurrentValue(DFResultSet.VertexState vs, DFField f)
          Calls getCurrentValue(DFResultSet.VertexState, DFField, boolean) with false for useSubSelection parameter.
static Object getCurrentValue(DFResultSet.VertexState vs, DFField f, boolean useSubSelection)
          Gets a displayable value for a field matching to a vertex state.
static Map<String,Object> getCurrentValues(DFResultSet.VertexState vs, List<DFField> fields)
          Gets value of currently selected row in vertex state.
static boolean storeValue(DFField field, Object newValue, DFResultSet.VertexState vertexState, SelectionDescription selection, DFUndoConfig undoConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCurrentValue

public static Object getCurrentValue(DFResultSet.VertexState vs,
                                     DFField f)
Calls getCurrentValue(DFResultSet.VertexState, DFField, boolean) with false for useSubSelection parameter.


getCurrentValue

public static Object getCurrentValue(DFResultSet.VertexState vs,
                                     DFField f,
                                     boolean useSubSelection)
Gets a displayable value for a field matching to a vertex state.

Parameters:
vs - vertex state
f - queried field
useSubSelection - whether to use given selection or its subselection
Returns:
Field value or one of SpecialWidgetValue constants.

getCurrentValues

public static Map<String,Object> getCurrentValues(DFResultSet.VertexState vs,
                                                  List<DFField> fields)
Gets value of currently selected row in vertex state.

Parameters:
vs - vertex state
Returns:
Map of Fields' ids and values OR empty map (in the case of vs==null, or selection is empty) returns

storeValue

public static boolean storeValue(DFField field,
                                 Object newValue,
                                 DFResultSet.VertexState vertexState,
                                 SelectionDescription selection,
                                 DFUndoConfig undoConfig)

com.im.ijc.widgets/1 5.9.1