|
Java DTV API 1.0 12-Dec-2008 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.lwuit.Component
com.sun.dtv.ui.MatteEnabledComponent
com.sun.dtv.ui.ViewOnlyComponent
com.sun.lwuit.Label
com.sun.lwuit.list.DefaultListCellRenderer
Default implementation of the renderer based on a label see the ListCellRenderer
for more information about the use and purpose of this class.
Field Summary |
Fields inherited from class com.sun.dtv.ui.ViewOnlyComponent |
HORIZONTAL_ALIGN_CENTER, HORIZONTAL_ALIGN_JUSTIFIED, HORIZONTAL_ALIGN_LEFT, HORIZONTAL_ALIGN_RIGHT, SCALE_ASPECT_PROOF, SCALE_NO, SCALE_NO_ASPECT_PROOF, VERTICAL_ALIGN_BOTTOM, VERTICAL_ALIGN_CENTER, VERTICAL_ALIGN_JUSTIFIED, VERTICAL_ALIGN_TOP |
Fields inherited from class com.sun.lwuit.Component |
BOTTOM, BRB_CENTER_OFFSET, BRB_CONSTANT_ASCENT, BRB_CONSTANT_DESCENT, BRB_OTHER, CENTER, LEFT, RIGHT, TOP |
Fields inherited from interface com.sun.dtv.ui.Animated |
ALTERNATING, LOOP, REPEATING |
Constructor Summary | |
DefaultListCellRenderer()
Creates a new instance of DefaultCellRenderer. |
|
DefaultListCellRenderer(boolean showNumbers)
Creates a new instance of DefaultCellRenderer. |
Method Summary | |
Component |
getListCellRendererComponent(List list,
Object value,
int index,
boolean isSelected)
Returns a component instance that is already set to render "value". |
Component |
getListFocusComponent(List list)
Returns a component instance that is painted under the currently focused renderer and is animated to provide smooth scrolling. |
int |
getSelectionTransparency()
The background transparency factor to apply to the selection focus. |
boolean |
isShowNumbers()
Indicate whether numbering should exist for the default cell renderer. |
void |
repaint()
Overriden to do nothing and remove a performance issue where renderer changes perform needless repaint calls. |
void |
setSelectionTransparency(int selectionTransparency)
The background transparency factor to apply to the selection focus. |
void |
setShowNumbers(boolean showNumbers)
Indicate whether numbering should exist for the default cell renderer. |
Methods inherited from class com.sun.lwuit.Label |
animate, calcPreferredSize, getAlignment, getBaselineResizeBehavior, getGap, getIcon, getShiftText, getText, getTextPosition, getUIID, getVerticalAlignment, isEndsWith3Points, isTickerEnabled, isTickerRunning, paint, paramString, setAlignment, setEndsWith3Points, setGap, setIcon, setShiftText, setText, setTextPosition, setTickerEnabled, setVerticalAlignment, startTicker, stopTicker |
Methods inherited from class com.sun.dtv.ui.ViewOnlyComponent |
getAnimateContent, getGraphicContent, getHorizontalAlignment, getInteractionState, getScalingMode, getTextContent, getTextLayoutManager, isOpaque, setAnimateContent, setGraphicContent, setHorizontalAlignment, setInteractionState, setScalingMode, setTextContent, setTextLayoutManager |
Methods inherited from class com.sun.dtv.ui.MatteEnabledComponent |
getMatte, isDoubleBuffered, processEvent, setMatte |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultListCellRenderer()
public DefaultListCellRenderer(boolean showNumbers)
showNumbers
- indicates whether numbers are shownMethod Detail |
public Component getListCellRendererComponent(List list, Object value, int index, boolean isSelected)
ListCellRenderer
getListCellRendererComponent
in interface ListCellRenderer
list
- the List objectvalue
- an Objectindex
- the indexisSelected
- indicating whether the Component is selected
public Component getListFocusComponent(List list)
ListCellRenderer
getListFocusComponent
in interface ListCellRenderer
list
- the list
Component.setSmoothScrolling(boolean)
public void repaint()
repaint
in class Component
public boolean isShowNumbers()
public void setShowNumbers(boolean showNumbers)
showNumbers
- indicates if numbering should exist for the default
cell rendererpublic int getSelectionTransparency()
setSelectionTransparency(int)
public void setSelectionTransparency(int selectionTransparency)
selectionTransparency
- the background transparency factorgetSelectionTransparency()
|
Java DTV API 1.0 12-Dec-2008 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |