/* */ private void initUI() { /* 229 */ this.label = new TableColumnHeader(getTableView(), getTableColumn()); /* 230 */ this.label.setTableHeaderRow(getTableHeaderRow()); /* 231 */ this.label.setParentHeader(getParentHeader()); /* 232 */ this.label.setNestedColumnHeader(this); /* */ /* 234 */ if (getTableColumn() != null) { /* 235 */ getTableColumn().textProperty().addListener(this.weakColumnTextListener); /* */ } /* */ /* 238 */ getTableView() .columnResizePolicyProperty() .addListener(this.weakResizePolicyListener); /* */ /* 240 */ updateContent(); /* */ }
/* */ void updateTableColumnHeaders() /* */ { /* 149 */ if ((getTableColumn() == null) && (getTableView() != null)) /* 150 */ setColumns(getTableView().getColumns()); /* 151 */ else if (getTableColumn() != null) /* 152 */ setColumns(getTableColumn().getColumns()); /* */ TableColumnHeader localTableColumnHeader1; /* 158 */ for (int i = 0; i < getColumnHeaders().size(); i++) { /* 159 */ localTableColumnHeader1 = (TableColumnHeader) getColumnHeaders().get(i); /* 160 */ localTableColumnHeader1.dispose(); /* */ } /* */ Object localObject1; /* */ Object localObject2; /* 166 */ if (getColumns().isEmpty()) /* */ { /* 168 */ localObject1 = getParentHeader(); /* 169 */ if (localObject1 != null) { /* 170 */ localTableColumnHeader1 = createColumnHeader(getTableColumn()); /* 171 */ localObject2 = ((NestedTableColumnHeader) localObject1).getColumnHeaders(); /* 172 */ int k = ((List) localObject2).indexOf(this); /* 173 */ if ((k >= 0) && (k < ((List) localObject2).size())) /* 174 */ ((List) localObject2).set(k, localTableColumnHeader1); /* */ } /* */ } /* */ else { /* 178 */ localObject1 = new ArrayList(); /* */ /* 180 */ for (int j = 0; j < getColumns().size(); j++) { /* 181 */ localObject2 = (TableColumn) getColumns().get(j); /* */ /* 183 */ if (localObject2 != null) /* */ { /* 185 */ TableColumnHeader localTableColumnHeader2 = createColumnHeader((TableColumn) localObject2); /* 186 */ ((List) localObject1).add(localTableColumnHeader2); /* */ } /* */ } /* 189 */ getColumnHeaders().setAll((Collection) localObject1); /* */ } /* */ /* 193 */ updateContent(); /* */ }