70 lines
1.1 KiB
Java
70 lines
1.1 KiB
Java
package org.hwo.ui.treetable;
|
|
|
|
import java.awt.Point;
|
|
import java.awt.event.MouseEvent;
|
|
|
|
public class TreeTableMouseArgs {
|
|
|
|
private MouseEvent mouseEvent;
|
|
private int row, column;
|
|
private TreeTable treeTable;
|
|
|
|
private Object rowObject;
|
|
|
|
|
|
public TreeTableMouseArgs(TreeTable treeTable,MouseEvent event)
|
|
{
|
|
this.treeTable = treeTable;
|
|
mouseEvent = event;
|
|
|
|
Point p = treeTable.mouseToCell(event.getX(), event.getY());
|
|
|
|
row = p.y;
|
|
column = p.x;
|
|
|
|
rowObject = treeTable.getRowObject(row);
|
|
|
|
}
|
|
|
|
public MouseEvent getMouseEvent() {
|
|
return mouseEvent;
|
|
}
|
|
|
|
public void setMouseEvent(MouseEvent mouseEvent) {
|
|
this.mouseEvent = mouseEvent;
|
|
}
|
|
|
|
public int getRow() {
|
|
return row;
|
|
}
|
|
|
|
public void setRow(int row) {
|
|
this.row = row;
|
|
}
|
|
|
|
public int getColumn() {
|
|
return column;
|
|
}
|
|
|
|
public void setColumn(int column) {
|
|
this.column = column;
|
|
}
|
|
|
|
public TreeTable getTreeTable() {
|
|
return treeTable;
|
|
}
|
|
|
|
public void setTreeTable(TreeTable treeTable) {
|
|
this.treeTable = treeTable;
|
|
}
|
|
|
|
public Object getRowObject() {
|
|
return rowObject;
|
|
}
|
|
|
|
public void setRowObject(Object rowObject) {
|
|
this.rowObject = rowObject;
|
|
}
|
|
|
|
}
|