public boolean isInherited() { return objAttribute.isInherited(); }
public void setDbAttributePath(String dbAttributePath) { this.dbAttributePath = dbAttributePath; if (isInherited()) { ((ObjEntity) entity).addAttributeOverride(getName(), dbAttributePath); } }
@Override public void mouseReleased(MouseEvent e) { int row = table.rowAtPoint(e.getPoint()); int col = table.columnAtPoint(e.getPoint()); ObjAttribute objAttribute = ((ObjAttributeTableModel)table.getModel()).getAttribute(row).getValue(); int columnFromModel = table.getColumnModel().getColumn(col).getModelIndex(); if (row >= 0 && columnFromModel == ObjAttributeTableModel.OBJ_ATTRIBUTE) { if(objAttribute.isInherited()) { TableCellRenderer renderer = table.getCellRenderer(row, col); Rectangle rectangle = table.getCellRect(row, col, false); ((CellRenderer) renderer).mouseClicked(e, rectangle.x); } } } });
if (attribute.isInherited()) { Font font = getFont(); Font newFont = font.deriveFont(Font.ITALIC);
if ( attribute != null && attribute.getName() != null && !attribute.isInherited()) {