X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=compat%2FListCellRenderer6.java;h=bc76e8002910fabe0022d0ff50525abe142c1853;hb=HEAD;hp=d00484982599dd6cd4e074743b1b6a3693ee3685;hpb=a703610061c64e067a407c56c7d568ce72993bc2;p=fanfix.git diff --git a/compat/ListCellRenderer6.java b/compat/ListCellRenderer6.java deleted file mode 100644 index d004849..0000000 --- a/compat/ListCellRenderer6.java +++ /dev/null @@ -1,65 +0,0 @@ -package be.nikiroo.utils.compat; - -import java.awt.Component; - -import javax.swing.JList; -import javax.swing.ListCellRenderer; -import javax.swing.ListModel; -import javax.swing.ListSelectionModel; - -/** - * Compatibility layer so I can at least get rid of the warnings of using - * {@link JList} without a parameter (and still staying Java 1.6 compatible). - *
- * This class is merely a {@link ListCellRenderer} that you can parametrise also
- * in Java 1.6.
- *
- * @author niki
- *
- * @param paint
method is then called to
- * "render" the cell. If it is necessary to compute the dimensions of a list
- * because the list cells do not have a fixed size, this method is called to
- * generate a component on which getPreferredSize
can be
- * invoked.
- *
- * @param list
- * The JList we're painting.
- * @param value
- * The value returned by list.getModel().getElementAt(index).
- * @param index
- * The cells index.
- * @param isSelected
- * True if the specified cell was selected.
- * @param cellHasFocus
- * True if the specified cell has the focus.
- * @return A component whose paint() method will render the specified value.
- *
- * @see JList
- * @see ListSelectionModel
- * @see ListModel
- */
- public abstract Component getListCellRendererComponent(JList6