|
@@ -105,7 +105,8 @@ |
105 |
105 |
|
super( pDefButtonFactory.getName(), // |
106 |
106 |
|
createTableWrapper( pPreImageWidth, pInnerElement, pPostImageWidth, pMinimumCellSize, // |
107 |
107 |
|
pDefButtonFactory.getType(), // pTbodyClass |
108 |
|
- |
pDefButtonFactory.getCustomStyle() ), // pTbodyClass2 |
|
108 |
+ |
pDefButtonFactory.getName(), // pTbodyClass |
|
109 |
+ |
pDefButtonFactory.getCustomStyle() ), // pTbodyClass |
109 |
110 |
|
pDefButtonFactory.getEnabledToolTip(), pDefButtonFactory.getDisabledToolTip() ); |
110 |
111 |
|
mMinimumCellSize = pMinimumCellSize; |
111 |
112 |
|
String zType = mTbodyClass = pDefButtonFactory.getType(); |
|
@@ -141,14 +142,21 @@ |
141 |
142 |
|
return CommonElementHelper.createTable(); |
142 |
143 |
|
} |
143 |
144 |
|
|
144 |
|
- |
private static Element createTBody( String pTbodyClass, String pTbodyClass2 ) |
|
145 |
+ |
private static Element createTBody( String... pTbodyClasses ) |
145 |
146 |
|
{ |
146 |
147 |
|
Element zTBody = DOM.createTBody(); |
147 |
|
- |
if ( UtilsCommon.isNotNullOrEmpty( pTbodyClass2 ) ) |
|
148 |
+ |
if ( UtilsCommon.isNotNullOrEmpty( pTbodyClasses ) ) |
148 |
149 |
|
{ |
149 |
|
- |
pTbodyClass += " " + pTbodyClass2; |
|
150 |
+ |
String zClasses = ""; |
|
151 |
+ |
for ( String zClass : pTbodyClasses ) |
|
152 |
+ |
{ |
|
153 |
+ |
zClasses = (zClasses + " " + UtilsCommon.deNull( zClass )).trim(); |
|
154 |
+ |
} |
|
155 |
+ |
if ( zClasses.length() != 0 ) |
|
156 |
+ |
{ |
|
157 |
+ |
zTBody.setClassName( zClasses ); |
|
158 |
+ |
} |
150 |
159 |
|
} |
151 |
|
- |
zTBody.setClassName( pTbodyClass ); |
152 |
160 |
|
return zTBody; |
153 |
161 |
|
} |
154 |
162 |
|
|
|
@@ -164,7 +172,7 @@ |
164 |
172 |
|
return zTD; |
165 |
173 |
|
} |
166 |
174 |
|
|
167 |
|
- |
private static CtrlElements createTableWrapper( int pPreImageWidth, Element pInnerElement, int pPostImageWidth, int pMinimumCellSize, String pTbodyClass, String pTbodyClass2 ) |
|
175 |
+ |
private static CtrlElements createTableWrapper( int pPreImageWidth, Element pInnerElement, int pPostImageWidth, int pMinimumCellSize, String... pTbodyClasses ) |
168 |
176 |
|
{ |
169 |
177 |
|
Element zWidthImg = null; |
170 |
178 |
|
Element zHeightImg = null; |
|
@@ -193,7 +201,7 @@ |
193 |
201 |
|
} |
194 |
202 |
|
zTDs[zRow][zCol] = appendChild( createTD( zPoint ), zInnerElement ); |
195 |
203 |
|
} |
196 |
|
- |
Element zTBody = createTBody( pTbodyClass, pTbodyClass2 ); |
|
204 |
+ |
Element zTBody = createTBody( pTbodyClasses ); |
197 |
205 |
|
appendChild( zTBody, createRow0( createTR(), zTDs ) ); |
198 |
206 |
|
appendChild( zTBody, createRow1( createTR(), zTDs, pPreImageWidth, pPostImageWidth ) ); |
199 |
207 |
|
appendChild( zTBody, createRow2( createTR(), zTDs ) ); |