K - the type of the unique key of this data handlerpublic interface DataHandler<K> extends org.drombler.commons.context.LocalContextProvider, UniqueKeyProvider<K>, Bean, AutoCloseable
DataCapabilityProviders and add the found data capabilities to it's local context.| Modifier and Type | Field and Description |
|---|---|
static String |
DIRTY_PROPERTY_NAME
The name of the 'dirty' property.
|
static String |
INITIALIZED_PROPERTY_NAME
The name of the 'initialized' property.
|
static String |
TITLE_PROPERTY_NAME
The name of the 'title' property.
|
static String |
TOOLTIP_TEXT_PROPERTY_NAME
The name of the 'tooltipText' property.
|
static String |
UNIQUE_KEY_PROPERTY_NAME
The name of the 'uniqueKey' property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCloseEventListener(CloseEventListener listener)
Registers a listener, which gets notified when this DataHandler gets closed.
|
String |
getTitle()
Gets the title of this data handler.
|
String |
getTooltipText()
Gets the tooltip text.
|
boolean |
isDirty()
A flag if the content of this data handler is dirty.
If the content is marked as dirty it should be reloaded from its source when it's accessed the next time. This is a bound property. |
boolean |
isInitialized()
A flag if this data handler is initialized.
This is a bound property. |
void |
markDirty()
Marks the content of this data handler as dirty.
If the content has been modified but the user discarded the changes, the data handler should be marked as dirty to indicate that the content needs to be reloaded from its source when it's accessed the next time. |
void |
removeCloseEventListener(CloseEventListener listener)
Unregisters a listener, which gets notified when this DataHandler gets closed.
|
getUniqueKeyaddPropertyChangeListener, removePropertyChangeListenerclosestatic final String UNIQUE_KEY_PROPERTY_NAME
static final String TITLE_PROPERTY_NAME
getTitle(),
Constant Field Valuesstatic final String TOOLTIP_TEXT_PROPERTY_NAME
getTooltipText(),
Constant Field Valuesstatic final String DIRTY_PROPERTY_NAME
isDirty(),
Constant Field Valuesstatic final String INITIALIZED_PROPERTY_NAME
isInitialized(),
Constant Field ValuesString getTitle()
TITLE_PROPERTY_NAMEString getTooltipText()
TOOLTIP_TEXT_PROPERTY_NAMEvoid markDirty()
isDirty()boolean isDirty()
DIRTY_PROPERTY_NAMEboolean isInitialized()
INITIALIZED_PROPERTY_NAMEvoid addCloseEventListener(CloseEventListener listener)
listener - the listener to addvoid removeCloseEventListener(CloseEventListener listener)
listener - the listener to removeCopyright © 2016–2019 Drombler. All rights reserved.