|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.swing.visuals.CheckBoxListCellRenderer
public class CheckBoxListCellRenderer
Renders an item in a CheckBoxList. Instead of the cells being labels as in regular lists, CheckBoxList cells have a checkbox to change the state of the cell.
CheckBoxList,
Serialized Form| Field Summary | |
|---|---|
protected javax.swing.JCheckBox |
checkBox
checkBox to appear in the cell |
| Constructor Summary | |
|---|---|
CheckBoxListCellRenderer()
create the default components of the cell |
|
| Method Summary | |
|---|---|
protected void |
createCheckBox()
create the checkBox and add it to the cell |
java.awt.Component |
getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
Return a component that has been configured to display the specified value. |
boolean |
isBorderPaintedFlat()
Returns whether the border is painted flat. |
void |
setBorderPaintedFlat(boolean b)
Sets whether the border should be painted flat. |
| Field Detail |
|---|
protected javax.swing.JCheckBox checkBox
| Constructor Detail |
|---|
public CheckBoxListCellRenderer()
| Method Detail |
|---|
protected void createCheckBox()
public java.awt.Component getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
getListCellRendererComponent in interface javax.swing.ListCellRendererlist - The JList to paintvalue - The value returned by list.getModel().getElementAt(index)index - The cell's indexisSelected - True if the specified cell was selectedcellHasFocus - True if the specified cell has the focus
public void setBorderPaintedFlat(boolean b)
b - if true, the border is painted flat.public boolean isBorderPaintedFlat()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||