public class TicketDurationColumn extends AbstractSimpleCustomColumnConfiguration<java.lang.String,ItemModel>
AbstractSimpleCustomColumnConfiguration.SimpleCustomColumnValueHandlereditable, editor, name, selectable, sortable, visible| Constructor and Description |
|---|
TicketDurationColumn() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Calendar |
createCalendar(java.util.Locale locale) |
protected java.lang.String |
getDuration(java.util.Locale locale,
java.util.Calendar start,
java.util.Calendar end)
Get the duration description
|
protected java.lang.String |
getDuration(java.util.Locale locale,
long durationInMillis)
Get the duration description
|
java.lang.String |
getItemValue(ItemModel item,
java.util.Locale locale)
Override this method to lookup the value for this column.
|
getCellEditor, getCellRenderer, getColumnDescriptor, getValueHandlergetAllLabels, getLabel, getLabel, getName, setAllLabels, setCellEditor, setLanguagesgetEditor, getLanguages, getParameter, getParameters, getPosition, getWidth, isEditable, isLocalized, isSelectable, isSortable, isVisible, setCellRenderer, setEditable, setEditor, setName, setParameter, setParameters, setPosition, setSelectable, setSortable, setVisible, setWidthpublic java.lang.String getItemValue(ItemModel item, java.util.Locale locale) throws ValueHandlerException
AbstractSimpleCustomColumnConfigurationgetItemValue in class AbstractSimpleCustomColumnConfiguration<java.lang.String,ItemModel>item - The item that this column is looked up onlocale - the display localValueHandlerException - thrown or errorprotected java.lang.String getDuration(java.util.Locale locale,
java.util.Calendar start,
java.util.Calendar end)
locale - the display localestart - the duration start timeend - the duration end timeprotected java.lang.String getDuration(java.util.Locale locale,
long durationInMillis)
locale - the display localedurationInMillis - the duration in millisecondsprotected java.util.Calendar createCalendar(java.util.Locale locale)
Copyright © 2018 SAP SE. All Rights Reserved.