java.lang.Object
io.github.tonywasher.joceanus.prometheus.views.PrometheusEditEntry<T>
Type Parameters:
T - the data type
All Implemented Interfaces:
MetisDataItem.MetisDataList<T>, MetisDataItem.MetisDataObjectFormat

public final class PrometheusEditEntry<T extends PrometheusDataItem> extends Object implements MetisDataItem.MetisDataList<T>
Update entry items.
  • Constructor Details

    • PrometheusEditEntry

      PrometheusEditEntry(MetisListKey pDataType)
      Constructor.
      Parameters:
      pDataType - the dataType
  • Method Details

    • getUnderlyingList

      public List<T> getUnderlyingList()
      Description copied from interface: MetisDataItem.MetisDataList
      Obtain underlying list.
      Specified by:
      getUnderlyingList in interface MetisDataItem.MetisDataList<T extends PrometheusDataItem>
      Returns:
      the list
    • getName

      public String getName()
      Obtain the name of the entry.
      Returns:
      the name
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDataList

      public PrometheusDataList<T> getDataList()
      Obtain the list for the entry.
      Returns:
      the list
    • isDataType

      public boolean isDataType(MetisListKey pDataType)
      Is this entry related to this dataType.
      Parameters:
      pDataType - the dataType to compare
      Returns:
      true/false
    • setDataList

      public void setDataList(PrometheusDataList<T> pDataList)
      Set the Data list.
      Parameters:
      pDataList - the DataList
    • prepareChanges

      public void prepareChanges() throws OceanusException
      Prepare changes in an edit view back into the core data.
      Throws:
      OceanusException - on error
    • rollBackChanges

      public void rollBackChanges()
      RollBack changes in an edit view that have been applied to core data.
    • commitChanges

      public void commitChanges()
      Commit changes in an edit view that have been applied to the core data.