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
s.DataCapabilityProvider
s and adds the found data capabilities to it's local context.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 |
doClose()
Closes this data handler.
|
protected void |
fireCloseEvent()
Fires the
CloseEvent . |
protected org.drombler.commons.context.SimpleContextContent |
getContextContent()
Gets the context content.
|
org.drombler.commons.context.Context |
getLocalContext() |
protected PropertyChangeSupport |
getPropertyChangeSupport()
Gets the
PropertyChangeSupport . |
boolean |
isDirty() |
boolean |
isInitialized() |
protected void |
markClean()
Sets the dirty flag to false.
|
void |
markDirty() |
void |
removeCloseEventListener(org.softsmithy.lib.util.CloseEventListener listener) |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
protected void |
setInitialized(boolean initialized)
Sets the initialized flag.
|
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)
initialized
- protected final PropertyChangeSupport getPropertyChangeSupport()
PropertyChangeSupport
.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 final void close()
close
in interface AutoCloseable
doClose()
protected void doClose()
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()
CloseEvent
.Copyright © 2012–2019 Drombler. All rights reserved.