/** Returns the width which the same as {@link #getTreecol}'s width. */ public String getWidth() { final Treecol col = getTreecol(); return col != null ? col.getWidth() : null; }
/** Returns the maximal length for this cell, which is decided by * the corresponding {@link #getTreecol}'s {@link Treecol#getMaxlength}. */ public int getMaxlength() { final Tree tree = getTree(); if (tree == null) return 0; final Treecol lc = getTreecol(); return lc != null ? lc.getMaxlength() : 0; }