|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.field.table.style.PropertyValueTableStyle
public class PropertyValueTableStyle
Style that applies another style according to the value of a property of the row item.
| Constructor Summary | |
|---|---|
PropertyValueTableStyle()
|
|
| Method Summary | |
|---|---|
TableStyle |
getDefaultStyle()
Gets the default style. |
String |
getPropertyPath()
Gets the property path. |
Style |
getStyle(Object item,
JTable table,
int row,
int column)
Gets the style to apply on the table. |
Map<String,TableStyle> |
getStyleMap()
Gets the style map. |
void |
setDefaultStyle(TableStyle defaultStyle)
Sets the default style to apply if the property value is not found in the map. |
void |
setPropertyPath(String propertyPath)
Sets the property path. |
void |
setStyleMap(Map<String,TableStyle> styleMap)
Sets the styles indexed by property value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyValueTableStyle()
| Method Detail |
|---|
public Style getStyle(Object item,
JTable table,
int row,
int column)
TableStyle
getStyle in interface TableStyleitem - Item associated to the rowtable - Tablerow - Row indexcolumn - Column index
public Map<String,TableStyle> getStyleMap()
public void setStyleMap(Map<String,TableStyle> styleMap)
styleMap - the style mappublic String getPropertyPath()
public void setPropertyPath(String propertyPath)
propertyPath - the new property pathpublic TableStyle getDefaultStyle()
public void setDefaultStyle(TableStyle defaultStyle)
defaultStyle - the new default style
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||