/**Overridden to do the assorted black magic by which one determines if
* a property is editable */
@Override
public boolean isCellEditable(int row, int column) {
if (column == 0) {
return null != getCustomEditor( row );
}
FeatureDescriptor fd = getPropertySetModel().getFeatureDescriptor(row);
boolean result;
if (fd instanceof PropertySet) {
result = false;
} else {
Property p = (Property) fd;
result = p.canWrite();
if (result) {
Object val = p.getValue("canEditAsText"); //NOI18N
if (val != null) {
result &= Boolean.TRUE.equals(val);
if( !result ) {
//#227661 - combo box editor should be allowed to show its popup
PropertyEditor ped = PropUtils.getPropertyEditor(p);
result |= ped.getTags() != null;
}
}
}
}
return result;
}
SheetTable.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:incubator-netbeans
作者:
评论列表
文章目录