cmu.survey.editor.gui.questions
Class QuestionPanelRenderer

java.lang.Object
  extended by cmu.survey.editor.gui.questions.QuestionPanelRenderer
All Implemented Interfaces:
ReorderableListModelRenderer<QuestionDataBitSet>

public class QuestionPanelRenderer
extends java.lang.Object
implements ReorderableListModelRenderer<QuestionDataBitSet>


Field Summary
static java.awt.Color DefaultClearColor
           
static java.awt.Color DefaultHeaderColor
           
static java.awt.Color Gray1
           
static java.awt.Color Gray2
           
 
Constructor Summary
QuestionPanelRenderer(QuestionListPanel questionListPanel, UndoHandler undoHandler, DataBitStorage objectStorage)
           
 
Method Summary
 javax.swing.ImageIcon getIconFor(QuestionDataBitSet listItem)
           
 javax.swing.JComponent getRendererFor(QuestionDataBitSet question)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DefaultHeaderColor

public static final java.awt.Color DefaultHeaderColor

DefaultClearColor

public static final java.awt.Color DefaultClearColor

Gray1

public static final java.awt.Color Gray1

Gray2

public static final java.awt.Color Gray2
Constructor Detail

QuestionPanelRenderer

public QuestionPanelRenderer(QuestionListPanel questionListPanel,
                             UndoHandler undoHandler,
                             DataBitStorage objectStorage)
Method Detail

getRendererFor

public javax.swing.JComponent getRendererFor(QuestionDataBitSet question)
Specified by:
getRendererFor in interface ReorderableListModelRenderer<QuestionDataBitSet>
Returns:
the panel to render -- may implement CompressiblePanel

getIconFor

public javax.swing.ImageIcon getIconFor(QuestionDataBitSet listItem)
Specified by:
getIconFor in interface ReorderableListModelRenderer<QuestionDataBitSet>