Class PrometheusEditEntry<T extends PrometheusDataItem>
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCommit changes in an edit view that have been applied to the core data.Obtain the list for the entry.getName()Obtain the name of the entry.Obtain underlying list.booleanisDataType(MetisListKey pDataType) Is this entry related to this dataType.voidPrepare changes in an edit view back into the core data.voidRollBack changes in an edit view that have been applied to core data.voidsetDataList(PrometheusDataList<T> pDataList) Set the Data list.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.tonywasher.joceanus.metis.data.MetisDataItem.MetisDataList
add, add, clear, isEmpty, iterator, listIterator, remove, sizeMethods inherited from interface io.github.tonywasher.joceanus.metis.data.MetisDataItem.MetisDataObjectFormat
formatObject
-
Constructor Details
-
PrometheusEditEntry
PrometheusEditEntry(MetisListKey pDataType) Constructor.- Parameters:
pDataType- the dataType
-
-
Method Details
-
getUnderlyingList
Description copied from interface:MetisDataItem.MetisDataListObtain underlying list.- Specified by:
getUnderlyingListin interfaceMetisDataItem.MetisDataList<T extends PrometheusDataItem>- Returns:
- the list
-
getName
Obtain the name of the entry.- Returns:
- the name
-
toString
-
getDataList
Obtain the list for the entry.- Returns:
- the list
-
isDataType
Is this entry related to this dataType.- Parameters:
pDataType- the dataType to compare- Returns:
- true/false
-
setDataList
Set the Data list.- Parameters:
pDataList- the DataList
-
prepareChanges
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.
-