|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.workbench.model.Task
public class Task
Whatever the user needs to do a particular task. Currently a thin wrapper around a LayerManager.
| Nested Class Summary | |
|---|---|
static interface |
Task.NameListener
Interface: NameListener must respond to task name changing. |
| Constructor Summary | |
|---|---|
Task()
|
|
| Method Summary | ||
|---|---|---|
void |
add(Task.NameListener nameListener)
|
|
void |
addCategory(Category category)
Called by Java2XML |
|
java.util.Collection<Category> |
getCategories()
|
|
LayerManager |
getLayerManager()
|
|
java.lang.String |
getName()
|
|
java.io.File |
getProjectFile()
|
|
java.util.Map<javax.xml.namespace.QName,java.lang.Object> |
getProperties()
Get all the task properties. |
|
|
getProperty(javax.xml.namespace.QName name)
Get the value for the named property casting it to the return value. |
|
void |
setName(java.lang.String name)
|
|
void |
setProjectFile(java.io.File projectFile)
|
|
void |
setProperties(java.util.Map<javax.xml.namespace.QName,java.lang.Object> properties)
Set all the task properties. |
|
void |
setProperty(javax.xml.namespace.QName name,
java.lang.Object value)
Set the value for the named property. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Task()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
public void add(Task.NameListener nameListener)
public java.io.File getProjectFile()
public void setProjectFile(java.io.File projectFile)
public LayerManager getLayerManager()
getLayerManager in interface LayerManagerProxypublic java.util.Collection<Category> getCategories()
public void addCategory(Category category)
public void setProperty(javax.xml.namespace.QName name,
java.lang.Object value)
name - The name of the property.value - The value for the property.public <T> T getProperty(javax.xml.namespace.QName name)
Get the value for the named property casting it to the return value.
Instead of:
Integer i = (Integer)task.getProperty(...)
You can use the following:
Integer i = task.getProperty(...)
name - The name of the property.
public java.util.Map<javax.xml.namespace.QName,java.lang.Object> getProperties()
public void setProperties(java.util.Map<javax.xml.namespace.QName,java.lang.Object> properties)
properties - The task properties.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||