Class NoLeftInsetCategoryComboBoxRenderer
- java.lang.Object
-
- org.opends.guitools.controlpanel.ui.renderer.CustomListCellRenderer
-
- org.opends.guitools.controlpanel.ui.renderer.NoLeftInsetCategoryComboBoxRenderer
-
- All Implemented Interfaces:
ListCellRenderer
public class NoLeftInsetCategoryComboBoxRenderer extends CustomListCellRenderer
This class is used simply to avoid an inset on the left for the elements of the combo box. Since this item is a CategorizedComboBoxElement of type CategorizedComboBoxElement.Type.REGULAR, it has by default an inset on the left.
-
-
Field Summary
-
Fields inherited from class org.opends.guitools.controlpanel.ui.renderer.CustomListCellRenderer
defaultFont
-
-
Constructor Summary
Constructors Constructor Description NoLeftInsetCategoryComboBoxRenderer(JComboBox combo)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentgetListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)-
Methods inherited from class org.opends.guitools.controlpanel.ui.renderer.CustomListCellRenderer
getStringValue
-
-
-
-
Constructor Detail
-
NoLeftInsetCategoryComboBoxRenderer
public NoLeftInsetCategoryComboBoxRenderer(JComboBox combo)
The constructor.- Parameters:
combo- the combo box to be rendered.
-
-
Method Detail
-
getListCellRendererComponent
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
- Specified by:
getListCellRendererComponentin interfaceListCellRenderer- Overrides:
getListCellRendererComponentin classCustomListCellRenderer
-
-