Package com.solibri.smc.api.ui.views
Interface CustomColumn<T>
- Type Parameters:
- T- the type of the row this column interacts with
- All Known Subinterfaces:
- CheckingResultsColumn
public interface CustomColumn<T>
CustomColumn allows defining extra columns for existing internal Solibri tables.
 This interface is not intended to be implemented directly. The developer should implemented one of the child
 interfaces instead.
- Since:
- 9.12.0
- 
Method SummaryModifier and TypeMethodDescriptionReturns the comparator for this column.default StringReturns the description of this column.Return the icon for the header of this column.Return the text for the header of this column.default StringReturn the tool-tip text for the header of this column.Return the icon for the given row of this column.default MouseListenergetMouseListener(T row) Returns the mouse listener defined for the cells of this column.default ListSelectionListenergetSelectionListener(Collection<T> oldRows, Collection<T> newRows) Returns the list selection listener defined for the table.Return the text for the given row of this column.default StringgetToolTip(T row) Return the tool-tip text for the given row of this column.Returns the unique identifier of this column.
- 
Method Details- 
getUniqueIdString getUniqueId()Returns the unique identifier of this column. Must be globally unique.- Returns:
- the unique identifier
- Since:
- 9.12.0
 
- 
getDescriptionReturns the description of this column. The default implementation returns value based on properties files value with key "DESCRIPTION". Returns the ID of the column if no property is found.- Returns:
- the description
- Since:
- 9.12.0
 
- 
getHeaderIconIcon getHeaderIcon()Return the icon for the header of this column.- Returns:
- the icon
- Since:
- 9.12.0
 
- 
getHeaderTextString getHeaderText()Return the text for the header of this column. Only needed if no icon is returned.- Returns:
- the header text
- Since:
- 9.12.0
 
- 
getHeaderToolTipReturn the tool-tip text for the header of this column. The default implementation returns null. Null means there will be no tool-tip.- Returns:
- the header tool-tip text
- Since:
- 9.13.0
 
- 
getIconReturn the icon for the given row of this column.- Parameters:
- row- the row
- isSelected- true if the row is in selection
- hasFocus- true if the row has focus
- Returns:
- the icon
- Since:
- 9.12.0
 
- 
getTextReturn the text for the given row of this column. Only needed if no icon is returned.- Parameters:
- row- the row
- isSelected- true if the row is in selection
- hasFocus- true if the row has focus
- Returns:
- the text
- Since:
- 9.12.0
 
- 
getToolTipReturn the tool-tip text for the given row of this column. The default implementation returns null.- Parameters:
- row- the row
- Returns:
- the tool-tip text
- Since:
- 9.13.0
 
- 
getComparatorComparator<T> getComparator()Returns the comparator for this column. The comparator is used when the table is being ordered based on this column.- Returns:
- the comparator
- Since:
- 9.12.0
 
- 
getMouseListenerReturns the mouse listener defined for the cells of this column. The default implementation does nothing.- Parameters:
- row- the row
- Returns:
- the mouse listener for given row
- Since:
- 9.12.0
 
- 
getSelectionListenerReturns the list selection listener defined for the table. This listener will be added in addition to the existing internal listener and possible other custom listeners.- Parameters:
- oldRows- the previous selection of rows
- newRows- the new selection of rows
- Returns:
- the listener
- Since:
- 9.12.0
 
 
-