/* */ private TableColumnHeader createColumnHeader(TableColumn paramTableColumn) { /* 480 */ NestedTableColumnHeader localNestedTableColumnHeader = paramTableColumn.getColumns().isEmpty() ? new TableColumnHeader(getTableView(), paramTableColumn) : new NestedTableColumnHeader(getTableView(), paramTableColumn); /* */ /* 484 */ localNestedTableColumnHeader.setTableHeaderRow(getTableHeaderRow()); /* 485 */ localNestedTableColumnHeader.setParentHeader(this); /* */ /* 487 */ return localNestedTableColumnHeader; /* */ }
/* */ public void handle(MouseEvent paramAnonymousMouseEvent) { /* 307 */ Rectangle localRectangle = (Rectangle) paramAnonymousMouseEvent.getSource(); /* 308 */ TableColumn localTableColumn = (TableColumn) localRectangle.getProperties().get("TableColumn"); /* 309 */ NestedTableColumnHeader localNestedTableColumnHeader = (NestedTableColumnHeader) localRectangle.getProperties().get("TableColumnHeader"); /* */ /* 311 */ if (!localNestedTableColumnHeader.isColumnResizingEnabled()) return; /* */ /* 313 */ localNestedTableColumnHeader.columnResizingComplete( localTableColumn, paramAnonymousMouseEvent); /* 314 */ paramAnonymousMouseEvent.consume(); /* */ }
/* */ public void handle(MouseEvent paramAnonymousMouseEvent) { /* 320 */ Rectangle localRectangle = (Rectangle) paramAnonymousMouseEvent.getSource(); /* 321 */ TableColumn localTableColumn = (TableColumn) localRectangle.getProperties().get("TableColumn"); /* 322 */ NestedTableColumnHeader localNestedTableColumnHeader = (NestedTableColumnHeader) localRectangle.getProperties().get("TableColumnHeader"); /* */ /* 324 */ localRectangle.setCursor( (localNestedTableColumnHeader.isColumnResizingEnabled()) && (localRectangle.isHover()) && (localTableColumn.isResizable()) ? Cursor.H_RESIZE : Cursor.DEFAULT); /* */ }
/* */ public void handle(MouseEvent paramAnonymousMouseEvent) { /* 270 */ Rectangle localRectangle1 = (Rectangle) paramAnonymousMouseEvent.getSource(); /* 271 */ TableColumn localTableColumn = (TableColumn) localRectangle1.getProperties().get("TableColumn"); /* 272 */ NestedTableColumnHeader localNestedTableColumnHeader = (NestedTableColumnHeader) localRectangle1.getProperties().get("TableColumnHeader"); /* */ /* 274 */ if (!localNestedTableColumnHeader.isColumnResizingEnabled()) return; /* */ /* 276 */ if ((paramAnonymousMouseEvent.getClickCount() == 2) && (paramAnonymousMouseEvent.isPrimaryButtonDown())) /* */ { /* 279 */ localNestedTableColumnHeader.resizeToFit(localTableColumn, -1); /* */ } /* */ else /* */ { /* 283 */ Rectangle localRectangle2 = (Rectangle) paramAnonymousMouseEvent.getSource(); /* 284 */ double d = localNestedTableColumnHeader .getTableHeaderRow() .sceneToLocal( localRectangle2.localToScene(localRectangle2.getBoundsInLocal())) .getMinX() + 2.0D; /* 285 */ localNestedTableColumnHeader.dragAnchorX = paramAnonymousMouseEvent.getSceneX(); /* 286 */ localNestedTableColumnHeader.columnResizingStarted(d); /* */ } /* 288 */ paramAnonymousMouseEvent.consume(); /* */ }