use of com.cubrid.common.ui.er.figures.TableFigure in project cubrid-manager by CUBRID.
the class TablePart method handleNameChange.
public void handleNameChange(String value) {
TableFigure tableFigure = (TableFigure) getFigure();
EditableLabel label = tableFigure.getNameLabel();
label.setVisible(false);
refreshVisuals();
}
use of com.cubrid.common.ui.er.figures.TableFigure in project cubrid-manager by CUBRID.
the class TablePart method revertNameChange.
public void revertNameChange() {
TableFigure tableFigure = (TableFigure) getFigure();
EditableLabel label = tableFigure.getNameLabel();
ERTable erTable = getTable();
label.setText(erTable.getShownName());
label.setVisible(true);
refreshVisuals();
}
use of com.cubrid.common.ui.er.figures.TableFigure in project cubrid-manager by CUBRID.
the class TablePart method directEditHitTest.
private boolean directEditHitTest(Point requestLoc) {
TableFigure figure = (TableFigure) getFigure();
EditableLabel nameLabel = figure.getNameLabel();
nameLabel.translateToRelative(requestLoc);
if (nameLabel.containsPoint(requestLoc)) {
return true;
}
return false;
}
use of com.cubrid.common.ui.er.figures.TableFigure in project cubrid-manager by CUBRID.
the class TablePart method performDirectEdit.
protected void performDirectEdit() {
if (manager == null) {
ValidationGraphicalViewer viewer = (ValidationGraphicalViewer) getViewer();
ValidationMessageHandler handler = viewer.getValidationHandler();
TableFigure figure = (TableFigure) getFigure();
EditableLabel nameLabel = figure.getNameLabel();
manager = new ERDirectEditManager(nameLabel, new TableNameCellEditorValidator(handler), this, TableNameCellEditor.class, new LabelCellEditorLocator(nameLabel));
}
manager.show();
}
use of com.cubrid.common.ui.er.figures.TableFigure in project cubrid-manager by CUBRID.
the class TablePart method handleBoundsChange.
protected void handleBoundsChange(PropertyChangeEvent evt) {
TableFigure tableFigure = (TableFigure) getFigure();
Rectangle constraint = (Rectangle) evt.getNewValue();
SchemaDiagramPart parent = (SchemaDiagramPart) getParent();
parent.setLayoutConstraint(this, tableFigure, constraint);
}
Aggregations