
com.esotericsoftware.tablelayout.PrefHeightValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tablelayout Show documentation
Show all versions of tablelayout Show documentation
TableLayout is a lightweight Java library for setting the position and size of UI widgets using a logical table, similar to HTML tables.
package com.esotericsoftware.tablelayout;
public class PrefHeightValue extends CellValue {
PrefHeightValue(Toolkit toolkit) {
super(toolkit);
}
@Override
public float get (Cell cell) {
if (cell == null) throw new RuntimeException("prefHeight can only be set on a cell property.");
C widget = cell.widget;
if (widget == null) return 0;
return toolkit.getPrefHeight(widget);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy