public abstract class AbstractRecordLayer extends AbstractLayer implements RecordFactory, AddGeometryCompleteAction
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL |
static String |
FORM_FACTORY_EXPRESSION |
ICON_LAYER, sync| Constructor and Description |
|---|
AbstractRecordLayer() |
AbstractRecordLayer(Map<String,? extends Object> properties) |
AbstractRecordLayer(RecordDefinition recordDefinition) |
AbstractRecordLayer(String name) |
AbstractRecordLayer(String name,
GeometryFactory geometryFactory) |
addParent, addRenderer, canSaveSettings, checkShowProperties, compareTo, createPanelComponent, createPropertiesTabCoordinateSystem, createPropertiesTabGeneralPanelGeneral, createPropertiesTabGeneralPanelSource, deleteWithConfirm, doInitialize, doRefreshAll, doSaveSettings, fireIndexedPropertyChange, firePropertyChange, getBeanPropertyListener, getBoundingBox, getDirectory, getGeometryFactory, getIcon, getId, getLayerGroup, getMaximumScale, getMinimumScale, getName, getParent, getPath, getPathList, getPluginConfig, getProject, getPropertyChangeSupport, getRenderer, getSettingsFileName, getSync, getType, initialize, isEditable, isEditable, isEventsEnabled, isExists, isInitialized, isQueryable, isQuerySupported, isSelectable, isSelectable, isSelectSupported, isVisible, isVisible, isZoomToLayerEnabled, refresh, refreshAll, saveSettings, saveSettings, setEventsEnabled, setExists, setIcon, setInitialized, setLayerGroup, setMaximumScale, setMinimumScale, setName, setPluginConfig, setPluginConfig, setPluginConfig, setProperties, setQueryable, setQuerySupported, setReadOnly, setRenderer, setSelectable, setSelectSupported, setType, setVisible, showProperties, showProperties, showRendererProperties, showTableView, toggleEditable, toString, zoomToLayerclearProperties, close, getProperties, getProperty, getProperty, removeProperty, setPropertySoft, setPropertyWeakequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearProperties, getProperties, getProperty, getProperty, removeProperty, setPropertySoft, setPropertyWeakpublic static final String ALL
public static final String FORM_FACTORY_EXPRESSION
public AbstractRecordLayer()
public AbstractRecordLayer(RecordDefinition recordDefinition)
public AbstractRecordLayer(String name)
public AbstractRecordLayer(String name, GeometryFactory geometryFactory)
public static void addVisibleLayers(List<AbstractRecordLayer> layers, LayerGroup group)
public static LayerRecord getAndRemoveSame(Collection<? extends LayerRecord> records, LayerRecord record)
public static List<AbstractRecordLayer> getVisibleLayers(LayerGroup group)
public void addComplete(AbstractOverlay overlay, Geometry geometry)
addComplete in interface AddGeometryCompleteActionprotected void addHighlightedRecord(LayerRecord record)
public void addHighlightedRecords(Collection<? extends LayerRecord> records)
public void addHighlightedRecords(LayerRecord... records)
protected void addModifiedRecord(LayerRecord record)
public void addNewRecord()
protected void addProxyRecord(AbstractProxyLayerRecord record)
public <V extends LayerRecord> List<V> addRecordsToCache(Label cacheId, Collection<? extends LayerRecord> records)
public LayerRecord addRecordToCache(Label cacheId, LayerRecord record)
public int addRenderer(LayerRenderer<?> child, int index)
addRenderer in class AbstractLayerprotected void addSelectedRecord(LayerRecord record)
public void addSelectedRecords(BoundingBox boundingBox)
public void addSelectedRecords(Collection<? extends LayerRecord> records)
public void addSelectedRecords(LayerRecord... records)
public void addToIndex(Collection<? extends LayerRecord> records)
public void addToIndex(LayerRecord record)
public void addUserReadOnlyFieldNames(Collection<String> userReadOnlyFieldNames)
public void cancelChanges()
public boolean canPasteRecordGeometry(LayerRecord record)
protected void cleanCachedRecords()
public void clearCachedRecords(Label cacheId)
public void clearSelectedRecords()
protected void clearSelectedRecordsIndex()
public AbstractRecordLayer clone()
clone in class AbstractLayerpublic <V extends LayerRecord> V copyRecord(V record)
public void copyRecordGeometry(LayerRecord record)
public void copyRecordsToClipboard(List<LayerRecord> records)
public void copySelectedRecords()
protected LayerRecordForm createDefaultForm(LayerRecord record)
public LayerRecordForm createForm(LayerRecord record)
public TabbedValuePanel createPropertiesPanel()
createPropertiesPanel in interface LayercreatePropertiesPanel in class AbstractLayerprotected void createPropertiesPanelFieldNamesSet(TabbedValuePanel propertiesPanel)
protected void createPropertiesPanelFields(TabbedValuePanel propertiesPanel)
protected void createPropertiesPanelSnapping(TabbedValuePanel propertiesPanel)
protected void createPropertiesPanelStyle(TabbedValuePanel propertiesPanel)
protected BasePanel createPropertiesTabGeneral(TabbedValuePanel tabPanel)
createPropertiesTabGeneral in class AbstractLayerprotected ValueField createPropertiesTabGeneralPanelFilter(BasePanel parent)
public UndoableEdit createPropertyEdit(LayerRecord record, String propertyName, Object oldValue, Object newValue)
public LayerRecord createRecord()
public LayerRecord createRecord(Map<String,Object> values)
public LayerRecord createRecord(RecordDefinition recordDefinition)
RecordFactorycreateRecord in interface RecordFactoryrecordDefinition - The record definition used to create the instance.public RecordLayerTablePanel createTablePanel()
protected Component createTableViewComponent()
createTableViewComponent in class AbstractLayerpublic void delete()
delete in interface Layerdelete in class AbstractLayerpublic void deleteRecord(LayerRecord record)
public void deleteRecords(Collection<? extends LayerRecord> records)
public void deleteRecords(LayerRecord... records)
public void deleteSelectedRecords()
protected void doDeleteRecord(LayerRecord record)
protected List<LayerRecord> doQuery(BoundingBox boundingBox)
public List<LayerRecord> doQuery(Geometry geometry, double distance)
protected abstract List<LayerRecord> doQuery(Query query)
protected List<LayerRecord> doQueryBackground(BoundingBox boundingBox)
protected void doRefresh()
doRefresh in class AbstractLayerprotected boolean doSaveChanges()
doSaveChanges in class AbstractLayerprotected boolean doSaveChanges(LayerRecord record)
protected boolean doSaveChanges(RecordSaveErrorTableModel errors)
public void exportRecords()
protected <V extends LayerRecord> List<V> filterQueryResults(List<V> results, Filter<Map<String,Object>> filter)
protected <V extends LayerRecord> List<V> filterQueryResults(List<V> results, Query query)
protected void fireHighlighted()
public void fireRecordDeleted(LayerRecord record)
protected void fireRecordInserted(LayerRecord record)
protected void fireRecordsChanged()
protected void fireRecordUpdated(LayerRecord record)
protected void fireSelected()
public BoundingBox getBoundingBox()
getBoundingBox in interface LayergetBoundingBox in class AbstractLayerpublic <V extends LayerRecord> V getCachedRecord(Identifier identifier)
public int getCachedRecordCount(Label cacheId)
public List<LayerRecord> getCachedRecords(Label cacheId)
protected final Label getCacheIdDeleted()
protected final Label getCacheIdHighlighted()
public Label getCacheIdIndex()
protected final Label getCacheIdModified()
protected final Label getCacheIdNew()
protected final Label getCacheIdSelected()
public int getChangeCount()
public List<LayerRecord> getChanges()
public Collection<Class<?>> getChildClasses()
getChildClasses in interface LayergetChildClasses in class AbstractLayerpublic CoordinateSystem getCoordinateSystem()
public int getDeletedRecordCount()
public Collection<LayerRecord> getDeletedRecords()
public Object getEditSync()
public String getFieldNamesSetName()
public String getGeometryFieldName()
public DataType getGeometryType()
public BoundingBox getHighlightedBoundingBox()
public int getHighlightedCount()
public Collection<LayerRecord> getHighlightedRecords()
public String getIdFieldName()
protected Collection<String> getIgnorePasteFields()
public RecordQuadTree getIndex()
public List<LayerRecord> getMergeableSelectedRecords()
public Record getMergedRecord(Point point, Record record1, Record record2)
point - record1 - record2 - public int getModifiedRecordCount()
public Collection<LayerRecord> getModifiedRecords()
public int getNewRecordCount()
public List<LayerRecord> getNewRecords()
protected Geometry getPasteRecordGeometry(LayerRecord record, boolean alert)
public List<AbstractProxyLayerRecord> getProxyRecords()
public Query getQuery()
public LayerRecord getRecord(int row)
public LayerRecord getRecordById(Identifier id)
public RecordDefinition getRecordDefinition()
public List<LayerRecord> getRecords()
public RecordStore getRecordStore()
public int getRowCount()
public int getRowCount(Query query)
public BoundingBox getSelectedBoundingBox()
getSelectedBoundingBox in interface LayergetSelectedBoundingBox in class AbstractLayerpublic List<LayerRecord> getSelectedRecords()
public List<LayerRecord> getSelectedRecords(BoundingBox boundingBox)
protected RecordQuadTree getSelectedRecordsIndex()
public int getSelectionCount()
public Collection<String> getSnapLayerPaths()
public String getTypePath()
public Collection<String> getUserReadOnlyFieldNames()
public String getWhere()
public Condition getWhereCondition()
public boolean hasFieldNamesSet(String fieldNamesSetName)
public boolean hasGeometryAttribute()
protected boolean hasPermission(String permission)
protected void internalCancelChanges(LayerRecord record)
record - protected boolean internalIsDeleted(LayerRecord record)
protected LayerRecord internalPostSaveChanges(LayerRecord record)
record - protected boolean internalSaveChanges(RecordSaveErrorTableModel errors, LayerRecord record)
public boolean isCanAddRecords()
public boolean isCanDeleteRecords()
public boolean isCanEditRecords()
public boolean isCanMergeRecords()
public boolean isCanPaste()
public boolean isClonable()
isClonable in interface LayerisClonable in class AbstractLayerpublic boolean isDeleted(LayerRecord record)
public boolean isEmpty()
public boolean isFieldUserReadOnly(String fieldName)
public boolean isHasCachedRecords(Label cacheId)
public boolean isHasChanges()
isHasChanges in interface LayerisHasChanges in class AbstractLayerpublic boolean isHasGeometry()
isHasGeometry in interface LayerisHasGeometry in class AbstractLayerpublic boolean isHasSelectedRecords()
isHasSelectedRecords in interface LayerisHasSelectedRecords in class AbstractLayerpublic boolean isHidden(LayerRecord record)
public boolean isHighlighted(LayerRecord record)
public boolean isLayerRecord(Record record)
public boolean isModified(LayerRecord record)
public boolean isNew(LayerRecord record)
protected boolean isPostSaveRemoveCacheId(Label cacheId)
public boolean isReadOnly()
isReadOnly in interface LayerisReadOnly in class AbstractLayerpublic boolean isRecordCached(Label cacheId, LayerRecord record)
public boolean isSelected(LayerRecord record)
public boolean isSnapToAllLayers()
public boolean isUseFieldTitles()
public boolean isVisible(LayerRecord record)
public void mergeSelectedRecords()
public void pasteRecordGeometry(LayerRecord record)
public List<LayerRecord> pasteRecords()
protected void postSaveChanges(RecordState originalState, LayerRecord record)
protected boolean postSaveDeletedRecord(LayerRecord record)
protected boolean postSaveModifiedRecord(LayerRecord record)
protected boolean postSaveNewRecord(LayerRecord record)
public void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerpropertyChange in class AbstractLayerpublic final List<LayerRecord> query(BoundingBox boundingBox)
public List<LayerRecord> query(Geometry geometry, double maxDistance)
public List<LayerRecord> query(Query query)
public final List<LayerRecord> queryBackground(BoundingBox boundingBox)
protected void recordPasted(LayerRecord newRecord)
protected void removeForm(LayerRecord record)
public void removeForms(Collection<LayerRecord> records)
public boolean removeFromIndex(BoundingBox boundingBox, LayerRecord record)
public void removeFromIndex(Collection<? extends LayerRecord> records)
public void removeFromIndex(LayerRecord record)
protected void removeHighlightedRecord(LayerRecord record)
public void removeProxyRecord(AbstractProxyLayerRecord proxyRecord)
public boolean removeRecordFromCache(Label cacheId, LayerRecord record)
public boolean removeRecordFromCache(LayerRecord record)
public int removeRecordsFromCache(Label cacheId, Collection<? extends LayerRecord> records)
protected void removeSelectedRecord(LayerRecord record)
public void replaceValues(LayerRecord record, Map<String,Object> values)
public void revertChanges(LayerRecord record)
public boolean saveChanges()
saveChanges in interface LayersaveChanges in class AbstractLayerpublic final boolean saveChanges(Collection<? extends LayerRecord> records)
public final boolean saveChanges(LayerRecord... records)
public final boolean saveChanges(LayerRecord record)
public void setBoundingBox(BoundingBox boundingBox)
public void setCanAddRecords(boolean canAddRecords)
public void setCanDeleteRecords(boolean canDeleteRecords)
public void setCanEditRecords(boolean canEditRecords)
public void setEditable(boolean editable)
setEditable in interface LayersetEditable in class AbstractLayerpublic void setFieldNamesSetName(String fieldNamesSetName)
protected void setGeometryFactory(GeometryFactory geometryFactory)
setGeometryFactory in class AbstractLayerpublic void setHighlightedRecords(Collection<LayerRecord> highlightedRecords)
protected void setIndexRecords(List<LayerRecord> records)
public void setProperty(String name, Object value)
setProperty in interface ObjectWithPropertiessetProperty in class AbstractLayerpublic void setQuery(Query query)
protected void setRecordDefinition(RecordDefinition recordDefinition)
protected void setSelectedHighlighted(LayerRecord record, boolean selected, boolean highlighted)
public void setSelectedRecords(BoundingBox boundingBox)
public void setSelectedRecords(Collection<LayerRecord> selectedRecords)
public void setSelectedRecords(LayerRecord... selectedRecords)
public void setSelectedRecordsById(Object id)
public void setSnapLayerPaths(Collection<String> snapLayerPaths)
public void setSnapToAllLayers(boolean snapToAllLayers)
public void setUseFieldTitles(boolean useFieldTitles)
public void setUserReadOnlyFieldNames(Collection<String> userReadOnlyFieldNames)
public void setWhere(String where)
public void setWhereCondition(Condition whereCondition)
public LayerRecord showAddForm(Map<String,Object> parameters)
public <V extends JComponent> V showForm(LayerRecord record)
public void showRecordsTable()
public void showRecordsTable(String fieldFilterMode)
public List<LayerRecord> splitRecord(LayerRecord record, CloseLocation mouseLocation)
protected List<LayerRecord> splitRecord(LayerRecord record, LineString line, Point point, LineString line1, LineString line2)
public List<LayerRecord> splitRecord(LayerRecord record, Point point)
public Map<String,Object> toMap()
MapSerializerConvert the object to a Map of property name, value pairs. The values can be one of the following supported types. Other values should be converted to one of these values.
toMap in interface MapSerializertoMap in class AbstractLayerpublic void unHighlightRecords(Collection<? extends LayerRecord> records)
public void unHighlightRecords(LayerRecord... records)
public void unSelectRecords(BoundingBox boundingBox)
public void unSelectRecords(Collection<? extends LayerRecord> records)
public void unSelectRecords(LayerRecord... records)
protected void updateRecordState(LayerRecord record)
protected void updateSpatialIndex(LayerRecord record, Geometry oldGeometry)
public void zoomToBoundingBox(BoundingBox boundingBox)
public void zoomToGeometry(Geometry geometry)
public void zoomToHighlighted()
public void zoomToRecord(Record record)
public void zoomToRecords(List<? extends LayerRecord> records)
public void zoomToSelected()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.