|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.lwuit.Component com.sun.lwuit.Label com.sun.lwuit.list.DefaultListCellRenderer
public class 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.lwuit.Component |
---|
BOTTOM, BRB_CENTER_OFFSET, BRB_CONSTANT_ASCENT, BRB_CONSTANT_DESCENT, BRB_OTHER, CENTER, LEFT, RIGHT, TOP |
Constructor Summary | |
---|---|
DefaultListCellRenderer()
Creates a new instance of DefaultCellRenderer |
|
DefaultListCellRenderer(boolean showNumbers)
Creates a new instance of DefaultCellRenderer |
Method Summary | |
---|---|
Component |
getCellRendererComponent(Component list,
java.lang.Object model,
java.lang.Object value,
int index,
boolean isSelected)
Returns a component instance that is already set to render "value". |
Component |
getFocusComponent(Component list)
Returns a component instance that is painted under the currently focused renderer and is animated to provide smooth scrolling. |
Component |
getListCellRendererComponent(List list,
java.lang.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 |
static boolean |
isShowNumbersDefault()
Inidicates whether the default list cell renderer will show numbers by default when constructed |
void |
refreshTheme()
Makes sure the component is up to date with the current style object |
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 |
static void |
setShowNumbersDefault(boolean def)
Inidicates whether the default list cell renderer will show numbers by default when constructed |
Methods inherited from class com.sun.lwuit.Label |
---|
animate, calcPreferredSize, getAlignment, getBaselineResizeBehavior, getGap, getIcon, getShiftText, getText, getTextPosition, getVerticalAlignment, isDefaultTickerEnabled, isEndsWith3Points, isTickerEnabled, isTickerRunning, paint, paramString, setAlignment, setDefaultTickerEnabled, setEndsWith3Points, setGap, setIcon, setShiftText, setText, setTextPosition, setTickerEnabled, setVerticalAlignment, shouldTickerStart, startTicker, startTicker, stopTicker |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultListCellRenderer()
public DefaultListCellRenderer(boolean showNumbers)
showNumbers
- indicates numbers should be shownMethod Detail |
---|
public void refreshTheme()
Component
refreshTheme
in class Component
public Component getCellRendererComponent(Component list, java.lang.Object model, java.lang.Object value, int index, boolean isSelected)
CellRenderer
getCellRendererComponent
in interface CellRenderer
list
- the list componentmodel
- the model behind the rendervalue
- the value to renderindex
- the index in the listisSelected
- whether the entry is selected
public Component getListCellRendererComponent(List list, java.lang.Object value, int index, boolean isSelected)
ListCellRenderer
getListCellRendererComponent
in interface ListCellRenderer
list
- the list componentvalue
- the value to renderindex
- the index in the listisSelected
- whether the entry is selected
public Component getListFocusComponent(List list)
ListCellRenderer
getListFocusComponent
in interface ListCellRenderer
list
- the parent list
Component.setSmoothScrolling(boolean)
public void repaint()
repaint
in class Component
Display
public boolean isShowNumbers()
public void setShowNumbers(boolean showNumbers)
showNumbers
- indicate whether numbering should exist for the default cell rendererpublic int getSelectionTransparency()
public void setSelectionTransparency(int selectionTransparency)
selectionTransparency
- the selection transperancy valuepublic static void setShowNumbersDefault(boolean def)
def
- true to show numbers for all renderers created in the futurepublic static boolean isShowNumbersDefault()
public Component getFocusComponent(Component list)
CellRenderer
getFocusComponent
in interface CellRenderer
list
- the parent list
Component.setSmoothScrolling(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |