public class TableManager extends AbstractDocumentManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PERSISTENCE_TABLE_DOCUMENT_DEFINITION_NAME |
static java.lang.String |
PERSISTENCE_TABLELINK_DEFINITION_NAME |
static java.lang.String |
TYPENAME |
NOTIFY_AFTER_CREATEDOCUMENT, NOTIFY_AFTER_CREATEMAINWINDOW, NOTIFY_AFTER_CREATEPROPERTIESWINDOW, NOTIFY_AFTER_GETMAINWINDOW, NOTIFY_AFTER_GETPROPERTIESWINDOW
Constructor and Description |
---|
TableManager() |
Modifier and Type | Method and Description |
---|---|
AbstractDocument |
createDocument()
Create a new table document.
|
AbstractDocument |
createDocumentByUser()
Uses a gui to be able from the characteristics that we want a
ProjectDocument
|
java.util.Iterator<? extends Document> |
createDocumentsByUser()
Uses a gui to be able from the characteristics that we want a
ProjectDocument
|
java.util.Iterator<? extends Document> |
createDocumentsByUser(Invocable whenDocumentsLoaded) |
DynStruct |
getDefinition(java.lang.String className)
Returns the associated definition to the java class name
|
protected java.lang.Class<? extends Document> |
getDocumentClass()
Return the class or interface for the documents managed by this factory.
|
javax.swing.ImageIcon |
getIcon()
Returns the icon for the type of document.
|
javax.swing.ImageIcon |
getIconSelected()
Returns the icon for the type of document when is selected
|
IWindow |
getMainWindow(Document doc,
WindowLayout layout)
Return the main window asociated to the document.
|
java.lang.Class<? extends IDocumentWindow> |
getMainWindowClass()
Return the class that implement the main window for this type of
documents.
|
int |
getPriority()
Returns the type of document priority.
|
IWindow |
getPropertiesWindow(Document doc)
Return the windows properties asociated to the document.
|
TableDocument |
getTableDocument(FeatureStore store) |
TableDocument |
getTableDocument(VectorLayer layer) |
java.lang.String |
getTitle()
Returns the title of type of document.
|
java.lang.String |
getTypeName()
Returns the type name of the document factory.
|
boolean |
manages(java.lang.Object object)
Informs if
object is managed by this factory. |
static void |
register()
Registers in the points of extension the Factory with alias.
|
void |
removeTableDocument(VectorLayer layer) |
addObserver, create, create, create, createDocumentWindow, createFromState, deleteObserver, deleteObservers, existName, getClassOfDocument, getDefinitions, getDomainName, getDomainURL, getExtendedProperties, getMainComponent, getMainComponent, getMainWindow, getManagedClass, getManagedClass, getManagedClass, getManagedClasses, getManagedClassName, getProperty, hasMainWindow, loadFromState, manages, manages, notifyObservers, notifyObservers, registerMainComponent, saveToState, setProperty, unregisterMainComponent, update
public static final java.lang.String PERSISTENCE_TABLE_DOCUMENT_DEFINITION_NAME
public static final java.lang.String PERSISTENCE_TABLELINK_DEFINITION_NAME
public static java.lang.String TYPENAME
public javax.swing.ImageIcon getIcon()
AbstractDocumentManager
getIcon
in interface DocumentManager
getIcon
in class AbstractDocumentManager
public javax.swing.ImageIcon getIconSelected()
AbstractDocumentManager
getIconSelected
in interface DocumentManager
getIconSelected
in class AbstractDocumentManager
public java.lang.String getTitle()
AbstractDocumentManager
getTitle
in interface DocumentManager
getTitle
in class AbstractDocumentManager
public java.lang.String getTypeName()
DocumentManager
public int getPriority()
AbstractDocumentManager
getPriority
in interface DocumentManager
getPriority
in class AbstractDocumentManager
public java.util.Iterator<? extends Document> createDocumentsByUser()
DocumentManager
createDocumentsByUser
in interface DocumentManager
createDocumentsByUser
in class AbstractDocumentManager
public java.util.Iterator<? extends Document> createDocumentsByUser(Invocable whenDocumentsLoaded)
createDocumentsByUser
in interface DocumentManager
createDocumentsByUser
in class AbstractDocumentManager
public AbstractDocument createDocumentByUser()
DocumentManager
createDocumentByUser
in interface DocumentManager
createDocumentByUser
in class AbstractDocumentManager
public static void register()
public AbstractDocument createDocument()
public java.lang.Class<? extends IDocumentWindow> getMainWindowClass()
DocumentManager
public IWindow getMainWindow(Document doc, WindowLayout layout)
DocumentManager
getMainWindow
in interface DocumentManager
getMainWindow
in class AbstractDocumentManager
public IWindow getPropertiesWindow(Document doc)
DocumentManager
getPropertiesWindow
in interface DocumentManager
getPropertiesWindow
in class AbstractDocumentManager
protected java.lang.Class<? extends Document> getDocumentClass()
AbstractDocumentManager
getDocumentClass
in class AbstractDocumentManager
public DynStruct getDefinition(java.lang.String className)
PersistenceFactory
className
- of a java Classpublic boolean manages(java.lang.Object object)
PersistenceFactory
object
is managed by this factory.public TableDocument getTableDocument(VectorLayer layer)
public TableDocument getTableDocument(FeatureStore store)
public void removeTableDocument(VectorLayer layer)