All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.esotericsoftware.tablelayout.PrefHeightValue Maven / Gradle / Ivy

Go to download

TableLayout is a lightweight Java library for setting the position and size of UI widgets using a logical table, similar to HTML tables.

There is a newer version: 0.13
Show newest version
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