T
- the type of the unique key of this data handlerpublic abstract class AbstractDataHandler<T> extends Object implements org.drombler.commons.data.DataHandler<T>
DataHandler
. It observes registered DataCapabilityProvider
s and adds the found data capabilities to it's local context.
You can use this class as a base class for your own data handler implementations.AbstractDocumentHandler
Constructor and Description |
---|
AbstractDataHandler()
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
addCloseEventListener(org.softsmithy.lib.util.CloseEventListener listener) |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
close() |
protected void |
fireCloseEvent() |
protected org.drombler.commons.context.SimpleContextContent |
getContextContent() |
org.drombler.commons.context.Context |
getLocalContext() |
protected PropertyChangeSupport |
getPropertyChangeSupport() |
boolean |
isDirty() |
boolean |
isInitialized() |
protected void |
markClean() |
void |
markDirty() |
void |
removeCloseEventListener(org.softsmithy.lib.util.CloseEventListener listener) |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
protected void |
setInitialized(boolean initialized) |
String |
toString() |
public AbstractDataHandler()
public org.drombler.commons.context.Context getLocalContext()
getLocalContext
in interface org.drombler.commons.context.LocalContextProvider
protected org.drombler.commons.context.SimpleContextContent getContextContent()
public void markDirty()
markDirty
in interface org.drombler.commons.data.DataHandler<T>
protected void markClean()
public boolean isDirty()
isDirty
in interface org.drombler.commons.data.DataHandler<T>
public boolean isInitialized()
isInitialized
in interface org.drombler.commons.data.DataHandler<T>
protected void setInitialized(boolean initialized)
protected final PropertyChangeSupport getPropertyChangeSupport()
public final void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
addPropertyChangeListener
in interface org.softsmithy.lib.beans.Bean
public final void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
removePropertyChangeListener
in interface org.softsmithy.lib.beans.Bean
public void close()
close
in interface AutoCloseable
public void addCloseEventListener(org.softsmithy.lib.util.CloseEventListener listener)
addCloseEventListener
in interface org.drombler.commons.data.DataHandler<T>
public void removeCloseEventListener(org.softsmithy.lib.util.CloseEventListener listener)
removeCloseEventListener
in interface org.drombler.commons.data.DataHandler<T>
protected void fireCloseEvent()
Copyright © 2012–2018 Drombler. All rights reserved.