/** * Overridden to always set the size to the height of the TreeTable * and the width of column 0. The paint() method will translate the * coordinates to the correct position. * Fire width property change so that we can revalidate horizontal scrollbar in TreeTableView. */ @Override public void setBounds(int x, int y, int w, int h) { transY = -y; int oldW = getWidth(); super.setBounds(0, 0, TreeTable.this.getColumnModel().getColumn(0).getWidth(), TreeTable.this.getHeight()); if (oldW != w) { firePropertyChange("width", oldW, w); } }
public void reshape(int x, int y, int w, int h) { int oldWidth = getWidth(); super.reshape(x, y, w, h); if (oldWidth != w) { firePropertyChange("width", oldWidth, w); } }
public void reshape(int x, int y, int w, int h) { int oldWidth = getWidth(); super.reshape(x, y, w, h); if (oldWidth != w) { firePropertyChange("width", oldWidth, w); } }
@Override public void fireTreeExpanded(TreePath path) { super.fireTreeExpanded(path); firePropertyChange("width", -1, getWidth()); }
@Override public void fireTreeCollapsed(TreePath path) { super.fireTreeCollapsed(path); firePropertyChange("width", -1, getWidth()); }