Example usage for java.time.temporal ChronoField getDisplayName

List of usage examples for java.time.temporal ChronoField getDisplayName

Introduction

In this page you can find the example usage for java.time.temporal ChronoField getDisplayName.

Prototype

@Override
    public String getDisplayName(Locale locale) 

Source Link

Usage

From source file:org.sleuthkit.autopsy.timeline.ChronoFieldListCell.java

@Override
protected void updateItem(ChronoField item, boolean empty) {
    super.updateItem(item, empty);
    if (empty || item == null) {
        setText(null);/*from   www. ja v  a  2  s  .  c  o m*/
    } else {
        String displayName = item.getDisplayName(Locale.getDefault());
        setText(StringUtils.splitByCharacterTypeCamelCase(displayName)[0]);
    }
}