*
* The MIT License (MIT)
*
- * Copyright (C) 2016 Kevin Lamonte
+ * Copyright (C) 2017 Kevin Lamonte
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
view.setTreeRoot(this, true);
}
- view.reflow();
+ view.reflowData();
}
/**
TTreeItem item = new TTreeItem(view, text, expanded);
item.level = this.level + 1;
getChildren().add(item);
- view.reflow();
+ view.reflowData();
return item;
}
*/
@Override
public void onMouseUp(final TMouseEvent mouse) {
- if ((mouse.getX() == (getExpanderX() - view.getHScroller().getValue()))
+ if ((mouse.getX() == (getExpanderX() - view.getHorizontalValue()))
&& (mouse.getY() == 0)
) {
if (selectable) {
}
// Update the screen after any thing has expanded/contracted
- view.reflow();
+ view.reflowData();
}
/**
return;
}
- int offset = -view.getHScroller().getValue();
+ int offset = -view.getHorizontalValue();
CellAttributes color = getTheme().getColor("ttreeview");
CellAttributes textColor = getTheme().getColor("ttreeview");