public abstract class ListCellRendererWithRightAlignedComponent<T>
extends java.lang.Object
implements javax.swing.ListCellRenderer<T>
Constructor and Description |
---|
ListCellRendererWithRightAlignedComponent() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
customize(T value) |
java.awt.Component |
getListCellRendererComponent(javax.swing.JList<? extends T> list,
T value,
int index,
boolean isSelected,
boolean cellHasFocus) |
protected javax.swing.Icon |
getRightIcon() |
protected void |
setIcon(javax.swing.Icon icon) |
protected void |
setLeftForeground(java.awt.Color color) |
protected void |
setLeftText(java.lang.String text) |
protected void |
setRightForeground(java.awt.Color color) |
protected void |
setRightIcon(javax.swing.Icon rightIcon) |
protected void |
setRightText(java.lang.String text) |
public ListCellRendererWithRightAlignedComponent()
protected abstract void customize(T value)
public java.awt.Component getListCellRendererComponent(javax.swing.JList<? extends T> list, T value, int index, boolean isSelected, boolean cellHasFocus)
getListCellRendererComponent
in interface javax.swing.ListCellRenderer<T>
protected javax.swing.Icon getRightIcon()
protected void setRightIcon(javax.swing.Icon rightIcon)
protected final void setLeftText(java.lang.String text)
protected final void setIcon(javax.swing.Icon icon)
protected final void setRightText(java.lang.String text)
protected final void setLeftForeground(java.awt.Color color)
protected final void setRightForeground(java.awt.Color color)