public abstract class AbstractPathHandler extends AbstractDataHandler<Path>
Path
-based DataHandler
s.Modifier and Type | Field and Description |
---|---|
static String |
PATH_PROPERTY_NAME
The name of the 'uniqueKey' property.
|
Constructor and Description |
---|
AbstractPathHandler()
Creates a new instance of this class with no path set.
|
AbstractPathHandler(Path path)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
Path |
getPath()
Gets the path this data handler should handle or null if it does not exist yet.
|
String |
getTitle()
Gets the file name of the path as title.
|
String |
getTooltipText()
Gets the path as tooltip text.
|
Path |
getUniqueKey()
Gets the (real) path as unique key.
|
protected void |
setPath(Path path)
Sets the path this data handler should handle.
|
protected void |
setUniqueKey(Path path)
Sets the (real) path as unique key.
|
addCloseEventListener, addPropertyChangeListener, close, doClose, fireCloseEvent, getContextContent, getLocalContext, getPropertyChangeSupport, isDirty, isInitialized, markClean, markDirty, removeCloseEventListener, removePropertyChangeListener, setInitialized, toString
public static final String PATH_PROPERTY_NAME
getUniqueKey()
,
Constant Field Valuespublic AbstractPathHandler()
public AbstractPathHandler(Path path)
path
- the path this data handler should handlepublic Path getPath()
protected final void setPath(Path path)
path
- the path to setpublic String getTitle()
DataHandler.TITLE_PROPERTY_NAME
public String getTooltipText()
DataHandler.TOOLTIP_TEXT_PROPERTY_NAME
public Path getUniqueKey()
DataHandler.UNIQUE_KEY_PROPERTY_NAME
,
Path.toRealPath(java.nio.file.LinkOption...)
protected void setUniqueKey(Path path)
path
- the path to use as unique keyDataHandler.UNIQUE_KEY_PROPERTY_NAME
,
Path.toRealPath(java.nio.file.LinkOption...)
Copyright © 2012–2019 Drombler. All rights reserved.