Java Code Examples for com.kotcrab.vis.ui.widget.VisTable#getUserObject()

The following examples show how to use com.kotcrab.vis.ui.widget.VisTable#getUserObject() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PackListAdapter.java    From gdx-texture-packer-gui with Apache License 2.0 4 votes vote down vote up
@Override
protected void selectView(VisTable view) {
    ViewHolder viewHolder = (ViewHolder) view.getUserObject();
    viewHolder.setSelected(true);
}
 
Example 2
Source File: PackListAdapter.java    From gdx-texture-packer-gui with Apache License 2.0 4 votes vote down vote up
@Override
protected void deselectView(VisTable view) {
    ViewHolder viewHolder = (ViewHolder) view.getUserObject();
    viewHolder.setSelected(false);
}