java.lang.Object
io.github.tonywasher.joceanus.prometheus.ui.fieldset.PrometheusFieldSetEvent

public class PrometheusFieldSetEvent extends Object
FieldSetEvent.
  • Constructor Details

    • PrometheusFieldSetEvent

      public PrometheusFieldSetEvent(MetisDataItem.MetisDataFieldId pFieldId, Object pNewValue)
      Constructor.
      Parameters:
      pFieldId - the source fieldId
      pNewValue - the new Value
  • Method Details

    • getFieldId

      public MetisDataItem.MetisDataFieldId getFieldId()
      Obtain the source field.
      Returns:
      the field
    • getValue

      public Object getValue()
      Obtain the value.
      Returns:
      the value
    • getValue

      public <T> T getValue(Class<T> pClass) throws OceanusException
      Obtain the value as specific type.
      Type Parameters:
      T - the value class
      Parameters:
      pClass - the required class
      Returns:
      the value
      Throws:
      OceanusException - on error