public class DefaultAttributeTableRuleSet extends Object implements AttributeTableRuleSet
| Constructor and Description |
|---|
DefaultAttributeTableRuleSet() |
| Modifier and Type | Method and Description |
|---|---|
Object |
afterEdit(FeatureServiceFeature feature,
String column,
int row,
Object oldValue,
Object newValue)
This method will be invoked, after a cell was edited.
|
void |
afterSave(TableModel model)
DOCUMENT ME!
|
void |
beforeSave(FeatureServiceFeature feature)
Will be invoked before a the given feature will be saved.
|
FeatureServiceFeature |
cloneFeature(FeatureServiceFeature feature)
Clones the given feature.
|
void |
copyProperties(FeatureServiceFeature sourceFeature,
FeatureServiceFeature targetFeature)
Copies the feature properties from the source feature to the target feature.
|
void |
exportFeatures()
start the feature export.
|
Class |
getAdditionalFieldClass(int index)
DOCUMENT ME!
|
String |
getAdditionalFieldFormula(String propertyName)
Determines the formula of the additional field with the given name.
|
String[] |
getAdditionalFieldNames()
The names of the additional fields.
|
Object |
getAdditionalFieldValue(String propertyName,
FeatureServiceFeature feature)
Determines the value of the additional field with the given index for the given feature.
|
TableCellEditor |
getCellEditor(String columnName)
DOCUMENT ME!
|
TableCellRenderer |
getCellRenderer(String columnName)
DOCUMENT ME!
|
Map<String,Object> |
getDefaultValues()
Get all attribute values, which should be set, when a new object is created.
|
Class<? extends FeatureServiceFeature> |
getFeatureClass()
This method can be used to use custom feature classes with a different styling.
|
FeatureCreator |
getFeatureCreator()
Provides a creator to create new objects of the represented service.
|
int |
getIndexOfAdditionalFieldName(String name)
The index of the attribute in the attribute list of the service.
|
FeatureAnnotationSymbol |
getPointAnnotationSymbol(FeatureServiceFeature feature)
Get the point annotation symbol, that should be used, when no style is defined.
|
boolean |
hasCustomExportFeaturesMethod()
True, if the service has its own export tool.
|
boolean |
hasCustomPrintFeaturesMethod()
DOCUMENT ME!
|
boolean |
isCatThree()
todo: change method name
|
boolean |
isColumnEditable(String columnName)
DOCUMENT ME!
|
void |
mouseClicked(FeatureServiceFeature feature,
String columnName,
Object value,
int clickCount)
DOCUMENT ME!
|
FeatureServiceFeature[] |
prepareFeaturesForExport(FeatureServiceFeature[] features)
DOCUMENT ME!
|
boolean |
prepareForSave(List<FeatureServiceFeature> features)
Will be invoked before the service will be saved.
|
void |
printFeatures()
DOCUMENT ME!
|
public boolean isColumnEditable(String columnName)
AttributeTableRuleSetisColumnEditable in interface AttributeTableRuleSetcolumnName - DOCUMENT ME!public Object afterEdit(FeatureServiceFeature feature, String column, int row, Object oldValue, Object newValue)
AttributeTableRuleSetafterEdit in interface AttributeTableRuleSetfeature - the modified featurecolumn - the modified attribute namerow - the row of the feature in the modeloldValue - the old attribute valuenewValue - the new atribute valuepublic TableCellRenderer getCellRenderer(String columnName)
AttributeTableRuleSetgetCellRenderer in interface AttributeTableRuleSetcolumnName - DOCUMENT ME!public TableCellEditor getCellEditor(String columnName)
AttributeTableRuleSetgetCellEditor in interface AttributeTableRuleSetcolumnName - DOCUMENT ME!public boolean prepareForSave(List<FeatureServiceFeature> features)
AttributeTableRuleSetprepareForSave in interface AttributeTableRuleSetfeatures - the modified featurespublic void beforeSave(FeatureServiceFeature feature)
AttributeTableRuleSetbeforeSave in interface AttributeTableRuleSetfeature - DOCUMENT ME!public void afterSave(TableModel model)
AttributeTableRuleSetafterSave in interface AttributeTableRuleSetmodel - DOCUMENT ME!public String[] getAdditionalFieldNames()
AttributeTableRuleSetgetAdditionalFieldNames in interface AttributeTableRuleSetpublic Object getAdditionalFieldValue(String propertyName, FeatureServiceFeature feature)
AttributeTableRuleSetgetAdditionalFieldValue in interface AttributeTableRuleSetpropertyName - the index of the additional fieldfeature - the feature, the value should be calculated forpublic String getAdditionalFieldFormula(String propertyName)
AttributeTableRuleSetgetAdditionalFieldFormula in interface AttributeTableRuleSetpropertyName - the name of the additional fieldpublic Class getAdditionalFieldClass(int index)
AttributeTableRuleSetgetAdditionalFieldClass in interface AttributeTableRuleSetindex - the index of the additional fieldpublic FeatureCreator getFeatureCreator()
AttributeTableRuleSetgetFeatureCreator in interface AttributeTableRuleSetpublic Map<String,Object> getDefaultValues()
AttributeTableRuleSetgetDefaultValues in interface AttributeTableRuleSetpublic void mouseClicked(FeatureServiceFeature feature, String columnName, Object value, int clickCount)
AttributeTableRuleSetmouseClicked in interface AttributeTableRuleSetfeature - DOCUMENT ME!columnName - DOCUMENT ME!value - DOCUMENT ME!clickCount - DOCUMENT ME!public int getIndexOfAdditionalFieldName(String name)
AttributeTableRuleSetgetIndexOfAdditionalFieldName in interface AttributeTableRuleSetname - The name of the attribute. See AttributeTableRuleSet.getAdditionalFieldNames()public boolean isCatThree()
AttributeTableRuleSetisCatThree in interface AttributeTableRuleSetpublic FeatureServiceFeature cloneFeature(FeatureServiceFeature feature)
AttributeTableRuleSetcloneFeature in interface AttributeTableRuleSetfeature - the feature to clonepublic FeatureAnnotationSymbol getPointAnnotationSymbol(FeatureServiceFeature feature)
AttributeTableRuleSetgetPointAnnotationSymbol in interface AttributeTableRuleSetfeature - the feature, that should use the point annotation symbolpublic boolean hasCustomExportFeaturesMethod()
AttributeTableRuleSethasCustomExportFeaturesMethod in interface AttributeTableRuleSetpublic void exportFeatures()
AttributeTableRuleSetexportFeatures in interface AttributeTableRuleSetpublic boolean hasCustomPrintFeaturesMethod()
hasCustomPrintFeaturesMethod in interface AttributeTableRuleSetpublic void printFeatures()
printFeatures in interface AttributeTableRuleSetpublic void copyProperties(FeatureServiceFeature sourceFeature, FeatureServiceFeature targetFeature)
AttributeTableRuleSetcopyProperties in interface AttributeTableRuleSetsourceFeature - the feature with the source valuestargetFeature - the values from the source feature will be copied in this featurepublic Class<? extends FeatureServiceFeature> getFeatureClass()
AttributeTableRuleSetgetFeatureClass in interface AttributeTableRuleSetpublic FeatureServiceFeature[] prepareFeaturesForExport(FeatureServiceFeature[] features)
AttributeTableRuleSetprepareFeaturesForExport in interface AttributeTableRuleSetfeatures - DOCUMENT ME!Copyright © 2012–2025 cismet GmbH. All rights reserved.