|
From: <mai...@ce...> - 2009-03-14 20:53:21
|
From: Johannes Schneider <js...@ce...>
---
.../richclient/form/builder/TableFormBuilder.java | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/spring-richclient-core/src/main/java/org/springframework/richclient/form/builder/TableFormBuilder.java b/spring-richclient-core/src/main/java/org/springframework/richclient/form/builder/TableFormBuilder.java
index 7a4238c..b1e20f5 100644
--- a/spring-richclient-core/src/main/java/org/springframework/richclient/form/builder/TableFormBuilder.java
+++ b/spring-richclient-core/src/main/java/org/springframework/richclient/form/builder/TableFormBuilder.java
@@ -127,7 +127,11 @@ public class TableFormBuilder extends AbstractFormBuilder {
* @return an array containing the label and the component which where added to the form
*/
public JComponent[] add(String fieldName, String attributes) {
- return addBinding(createDefaultBinding(fieldName), attributes, getLabelAttributes());
+ return add( fieldName, attributes, getLabelAttributes() );
+ }
+
+ public JComponent[] add(String fieldName, String attributes, String customLabelAttributes) {
+ return addBinding(createDefaultBinding(fieldName), attributes, customLabelAttributes);
}
public JComponent addDescription(String fieldName) {
@@ -181,7 +185,11 @@ public class TableFormBuilder extends AbstractFormBuilder {
* @return an array containing the label and the component which where added to the form
*/
public JComponent[] add(String fieldName, JComponent component, String attributes) {
- return addBinding(createBinding(fieldName, component), attributes, getLabelAttributes());
+ return add( fieldName, component, attributes, getLabelAttributes() );
+ }
+
+ public JComponent[] add(String fieldName, JComponent component, String attributes, String customLabelAttributes) {
+ return addBinding(createBinding(fieldName, component), attributes, customLabelAttributes);
}
/**
--
1.6.2
|