2024-10-09 20:35:18 +03:00
|
|
|
package Common.Visual.Tables;
|
2023-09-17 22:13:42 +03:00
|
|
|
import javax.swing.*;
|
2024-10-15 15:13:57 +03:00
|
|
|
public class RendererMaskedNanInteger extends RendererCell<Long> {
|
2023-09-17 22:13:42 +03:00
|
|
|
@Override
|
|
|
|
|
public Long Init(JTable table, Object value, int row, int column) {
|
|
|
|
|
return (Long) value;
|
|
|
|
|
}
|
|
|
|
|
public long getMask() {
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
public String getMaskText() {
|
|
|
|
|
return " — ";
|
|
|
|
|
}
|
|
|
|
|
public void Display() {
|
|
|
|
|
if (value != null)
|
|
|
|
|
setText(value.equals((getMask())) ? getMaskText() : String.valueOf(value));
|
|
|
|
|
}
|
|
|
|
|
}
|