Classes | |
enum | PortableAlignment |
enum | RenderingStatus |
Public Member Functions | |
void | onItemUpdated (MenuState<?> newValue) |
void | structuralChange (MenuItem item) |
void | onCorrelation (CorrelationId correlationId, AckStatus status) |
void | tick () |
T | createComponent () |
This interface represents an item that can be drawn onto a display, it does not say what the control should be directly, the control is created by a call to createComponent, which generates the required UI node.
<T> | the base node type for the UI |
enum com::thecoderscorner::embedcontrol::core::controlmgr::EditorComponent::PortableAlignment |
The possible alignments for the items within the control
Enumerator | CENTER | LEFT | RIGHT |
---|
enum com::thecoderscorner::embedcontrol::core::controlmgr::EditorComponent::RenderingStatus |
The rendering statuses that the control can be in, to indicate in progress, recent updates or even an error
Enumerator | CORRELATION_ERROR | EDIT_IN_PROGRESS | NORMAL | RECENT_UPDATE |
---|
T com.thecoderscorner.embedcontrol.core.controlmgr.EditorComponent< T >.createComponent | ( | ) |
Create the underlying UI component that represents this menu item. This should be called once per item grid population only
void com.thecoderscorner.embedcontrol.core.controlmgr.EditorComponent< T >.onCorrelation | ( | CorrelationId | correlationId, |
AckStatus | status | ||
) |
A correlation has been received from the remote and needs processing
correlationId | the correlation ID, possibly EMPTY_CORRELATION |
status | the acknowledgement status |
void com.thecoderscorner.embedcontrol.core.controlmgr.EditorComponent< T >.onItemUpdated | ( | MenuState<?> | newValue | ) |
The item has been updated to a new value and that value needs to be presented
newValue | the menu state containing the update |
void com.thecoderscorner.embedcontrol.core.controlmgr.EditorComponent< T >.structuralChange | ( | MenuItem | item | ) |
There has been a structural change that requires the item to be recalculated.
item | the replacement item after a structural update. |
void com.thecoderscorner.embedcontrol.core.controlmgr.EditorComponent< T >.tick | ( | ) |
Should be called frequently to allow the momentary rendering statuses to be cleared, usually called 1/10 sec by the TreeComponentManager in most systems. Do not do anything here that locks or takes time. It is not called on the UI thread.