View Javadoc

1   /*
2    * This file is part of Domingo
3    * an Open Source Java-API to Lotus Notes/Domino
4    * hosted at http://domingo.sourceforge.net
5    *
6    * Copyright (c) 2003-2007 Beck et al. projects GmbH Munich, Germany (http://www.bea.de)
7    *
8    * This library is free software; you can redistribute it and/or
9    * modify it under the terms of the GNU Lesser General Public
10   * License as published by the Free Software Foundation; either
11   * version 2.1 of the License, or (at your option) any later version.
12   *
13   * This library is distributed in the hope that it will be useful,
14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16   * Lesser General Public License for more details.
17   *
18   * You should have received a copy of the GNU Lesser General Public
19   * License along with this library; if not, write to the Free Software
20   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21   */
22  
23  package de.bea.domingo.proxy;
24  
25  import lotus.domino.NotesException;
26  import lotus.domino.ViewColumn;
27  import de.bea.domingo.DNotesMonitor;
28  import de.bea.domingo.DView;
29  import de.bea.domingo.DViewColumn;
30  
31  /***
32   * Represents the Domino-Class <code>View</code>.
33   *
34   * @author <a href=mailto:kriede@users.sourceforge.net>Kurt Riede</a>
35   */
36  public final class ViewColumnProxy extends BaseProxy implements DViewColumn {
37  
38      /*** serial version ID for serialization. */
39      private static final long serialVersionUID = 3832616283597780788L;
40  
41      /***
42       * Constructor for DViewImpl.
43       *
44       * @param theFactory the controlling factory
45       * @param database Notes database
46       * @param viewColumn the Notes View
47       * @param monitor the monitor
48       */
49      private ViewColumnProxy(final NotesProxyFactory theFactory, final DView view, final ViewColumn viewColumn,
50              final DNotesMonitor monitor) {
51          super(theFactory, view, viewColumn, monitor);
52      }
53  
54      /***
55       * Returns a view object.
56       *
57       * @param theFactory the controlling factory
58       * @param view the parent view
59       * @param viewColumn the notes view object
60       * @param monitor the monitor
61       * @return a view object
62       */
63      static ViewColumnProxy getInstance(final NotesProxyFactory theFactory, final DView view, final ViewColumn viewColumn,
64              final DNotesMonitor monitor) {
65          if (viewColumn == null) {
66              return null;
67          }
68          ViewColumnProxy viewColumnProxy = (ViewColumnProxy) theFactory.getBaseCache().get(viewColumn);
69          if (viewColumnProxy == null) {
70              viewColumnProxy = new ViewColumnProxy(theFactory, view, viewColumn, monitor);
71              viewColumnProxy.setMonitor(monitor);
72              theFactory.getBaseCache().put(viewColumn, viewColumnProxy);
73          }
74          return viewColumnProxy;
75      }
76  
77      /***
78       * Returns the associated Notes view.
79       *
80       * @return associated Notes view
81       */
82      private ViewColumn getViewColumn() {
83          return (ViewColumn) getNotesObject();
84      }
85  
86      /***
87       * {@inheritDoc}
88       * @see de.bea.domingo.DViewColumn#getAlignment()
89       */
90      public int getAlignment() {
91          getFactory().preprocessMethod();
92          try {
93              return getViewColumn().getAlignment();
94          } catch (NotesException e) {
95              throw newRuntimeException("Cannot invoke getAlignment", e);
96          }
97      }
98  
99      /***
100      * {@inheritDoc}
101      * @see de.bea.domingo.DViewColumn#getDateFmt()
102      */
103     public int getDateFmt() {
104         getFactory().preprocessMethod();
105         try {
106             return getViewColumn().getDateFmt();
107         } catch (NotesException e) {
108             throw newRuntimeException("Cannot invoke getDateFmt", e);
109         }
110     }
111 
112     /***
113      * {@inheritDoc}
114      * @see de.bea.domingo.DViewColumn#getFontColor()
115      */
116     public int getFontColor() {
117         getFactory().preprocessMethod();
118         try {
119             return getViewColumn().getFontColor();
120         } catch (NotesException e) {
121             throw newRuntimeException("Cannot invoke getFontColor", e);
122         }
123     }
124 
125     /***
126      * {@inheritDoc}
127      * @see de.bea.domingo.DViewColumn#getFontFace()
128      */
129     public String getFontFace() {
130         getFactory().preprocessMethod();
131         try {
132             return getViewColumn().getFontFace();
133         } catch (NotesException e) {
134             throw newRuntimeException("Cannot invoke getFontFace", e);
135         }
136     }
137 
138     /***
139      * {@inheritDoc}
140      * @see de.bea.domingo.DViewColumn#getFontPointSize()
141      */
142     public int getFontPointSize() {
143         getFactory().preprocessMethod();
144         try {
145             return getViewColumn().getFontPointSize();
146         } catch (NotesException e) {
147             throw newRuntimeException("Cannot invoke getFontPointSize", e);
148         }
149     }
150 
151     /***
152      * {@inheritDoc}
153      * @see de.bea.domingo.DViewColumn#getFontStyle()
154      */
155     public int getFontStyle() {
156         getFactory().preprocessMethod();
157         try {
158             return getViewColumn().getFontStyle();
159         } catch (NotesException e) {
160             throw newRuntimeException("Cannot invoke getFontStyle", e);
161         }
162     }
163 
164     /***
165      * {@inheritDoc}
166      * @see de.bea.domingo.DViewColumn#getFormula()
167      */
168     public String getFormula() {
169         getFactory().preprocessMethod();
170         try {
171             return getViewColumn().getFormula();
172         } catch (NotesException e) {
173             throw newRuntimeException("Cannot invoke getFormula", e);
174         }
175     }
176 
177     /***
178      * {@inheritDoc}
179      * @see de.bea.domingo.DViewColumn#getHeaderAlignment()
180      */
181     public int getHeaderAlignment() {
182         getFactory().preprocessMethod();
183         try {
184             return getViewColumn().getHeaderAlignment();
185         } catch (NotesException e) {
186             throw newRuntimeException("Cannot invoke getHeaderAlignment", e);
187         }
188     }
189 
190     /***
191      * {@inheritDoc}
192      * @see de.bea.domingo.DViewColumn#getHeaderFontColor()
193      */
194     public int getHeaderFontColor() {
195         getFactory().preprocessMethod();
196         try {
197             return getViewColumn().getHeaderFontColor();
198         } catch (NotesException e) {
199             throw newRuntimeException("Cannot invoke getHeaderFontColor", e);
200         }
201     }
202 
203     /***
204      * {@inheritDoc}
205      * @see de.bea.domingo.DViewColumn#getHeaderFontFace()
206      */
207     public String getHeaderFontFace() {
208         getFactory().preprocessMethod();
209         try {
210             return getViewColumn().getHeaderFontFace();
211         } catch (NotesException e) {
212             throw newRuntimeException("Cannot invoke getHeaderFontFace", e);
213         }
214     }
215 
216     /***
217      * {@inheritDoc}
218      * @see de.bea.domingo.DViewColumn#getHeaderFontPointSize()
219      */
220     public int getHeaderFontPointSize() {
221         getFactory().preprocessMethod();
222         try {
223             return getViewColumn().getHeaderFontPointSize();
224         } catch (NotesException e) {
225             throw newRuntimeException("Cannot invoke getHeaderFontPointSize", e);
226         }
227     }
228 
229     /***
230      * {@inheritDoc}
231      * @see de.bea.domingo.DViewColumn#getHeaderFontStyle()
232      */
233     public int getHeaderFontStyle() {
234         getFactory().preprocessMethod();
235         try {
236             return getViewColumn().getHeaderFontStyle();
237         } catch (NotesException e) {
238             throw newRuntimeException("Cannot invoke getHeaderFontStyle", e);
239         }
240     }
241 
242     /***
243      * {@inheritDoc}
244      * @see de.bea.domingo.DViewColumn#getItemName()
245      */
246     public String getItemName() {
247         getFactory().preprocessMethod();
248         try {
249             return getViewColumn().getItemName();
250         } catch (NotesException e) {
251             throw newRuntimeException("Cannot invoke getItemName", e);
252         }
253     }
254 
255     /***
256      * {@inheritDoc}
257      * @see de.bea.domingo.DViewColumn#getListSep()
258      */
259     public int getListSep() {
260         getFactory().preprocessMethod();
261         try {
262             return getViewColumn().getListSep();
263         } catch (NotesException e) {
264             throw newRuntimeException("Cannot invoke getListSep", e);
265         }
266     }
267 
268     /***
269      * {@inheritDoc}
270      * @see de.bea.domingo.DViewColumn#getNumberAttrib()
271      */
272     public int getNumberAttrib() {
273         getFactory().preprocessMethod();
274         try {
275             return getViewColumn().getNumberAttrib();
276         } catch (NotesException e) {
277             throw newRuntimeException("Cannot invoke getNumberAttrib", e);
278         }
279     }
280 
281     /***
282      * {@inheritDoc}
283      * @see de.bea.domingo.DViewColumn#getNumberDigits()
284      */
285     public int getNumberDigits() {
286         getFactory().preprocessMethod();
287         try {
288             return getViewColumn().getNumberDigits();
289         } catch (NotesException e) {
290             throw newRuntimeException("Cannot invoke getNumberDigits", e);
291         }
292     }
293 
294     /***
295      * {@inheritDoc}
296      * @see de.bea.domingo.DViewColumn#getNumberFormat()
297      */
298     public int getNumberFormat() {
299         getFactory().preprocessMethod();
300         try {
301             return getViewColumn().getNumberFormat();
302         } catch (NotesException e) {
303             throw newRuntimeException("Cannot invoke getNumberFormat", e);
304         }
305     }
306 
307     /***
308      * {@inheritDoc}
309      * @see de.bea.domingo.DViewColumn#getPosition()
310      */
311     public int getPosition() {
312         getFactory().preprocessMethod();
313         try {
314             return getViewColumn().getPosition();
315         } catch (NotesException e) {
316             throw newRuntimeException("Cannot invoke getPosition", e);
317         }
318     }
319 
320     /***
321      * {@inheritDoc}
322      * @see de.bea.domingo.DViewColumn#getResortToViewName()
323      */
324     public String getResortToViewName() {
325         getFactory().preprocessMethod();
326         try {
327             return getViewColumn().getResortToViewName();
328         } catch (NotesException e) {
329             throw newRuntimeException("Cannot invoke getResortToViewName", e);
330         }
331     }
332 
333     /***
334      * {@inheritDoc}
335      * @see de.bea.domingo.DViewColumn#getSecondaryResortColumnIndex()
336      */
337     public int getSecondaryResortColumnIndex() {
338         getFactory().preprocessMethod();
339         try {
340             return getViewColumn().getSecondaryResortColumnIndex();
341         } catch (NotesException e) {
342             throw newRuntimeException("Cannot invoke getSecondaryResortColumnIndex", e);
343         }
344     }
345 
346     /***
347      * {@inheritDoc}
348      * @see de.bea.domingo.DViewColumn#getTimeDateFmt()
349      */
350     public int getTimeDateFmt() {
351         getFactory().preprocessMethod();
352         try {
353             return getViewColumn().getTimeDateFmt();
354         } catch (NotesException e) {
355             throw newRuntimeException("Cannot invoke getTimeDateFmt", e);
356         }
357     }
358 
359     /***
360      * {@inheritDoc}
361      * @see de.bea.domingo.DViewColumn#getTimeFmt()
362      */
363     public int getTimeFmt() {
364         getFactory().preprocessMethod();
365         try {
366             return getViewColumn().getTimeFmt();
367         } catch (NotesException e) {
368             throw newRuntimeException("Cannot invoke getTimeFmt", e);
369         }
370     }
371 
372     /***
373      * {@inheritDoc}
374      * @see de.bea.domingo.DViewColumn#getTimeZoneFmt()
375      */
376     public int getTimeZoneFmt() {
377         getFactory().preprocessMethod();
378         try {
379             return getViewColumn().getTimeZoneFmt();
380         } catch (NotesException e) {
381             throw newRuntimeException("Cannot invoke getTimeZoneFmt", e);
382         }
383     }
384 
385     /***
386      * {@inheritDoc}
387      * @see de.bea.domingo.DViewColumn#getTitle()
388      */
389     public String getTitle() {
390         getFactory().preprocessMethod();
391         try {
392             return getViewColumn().getTitle();
393         } catch (NotesException e) {
394             throw newRuntimeException("Cannot invoke getTitle", e);
395         }
396     }
397 
398     /***
399      * {@inheritDoc}
400      * @see de.bea.domingo.DViewColumn#getWidth()
401      */
402     public int getWidth() {
403         getFactory().preprocessMethod();
404         try {
405             return getViewColumn().getWidth();
406         } catch (NotesException e) {
407             throw newRuntimeException("Cannot invoke getWidth", e);
408         }
409     }
410 
411     /***
412      * {@inheritDoc}
413      * @see de.bea.domingo.DViewColumn#isAccentSensitiveSort()
414      */
415     public boolean isAccentSensitiveSort() {
416         getFactory().preprocessMethod();
417         try {
418             return getViewColumn().isAccentSensitiveSort();
419         } catch (NotesException e) {
420             throw newRuntimeException("Cannot invoke isAccentSensitiveSort", e);
421         }
422     }
423 
424     /***
425      * {@inheritDoc}
426      * @see de.bea.domingo.DViewColumn#isCaseSensitiveSort()
427      */
428     public boolean isCaseSensitiveSort() {
429         getFactory().preprocessMethod();
430         try {
431             return getViewColumn().isCaseSensitiveSort();
432         } catch (NotesException e) {
433             throw newRuntimeException("Cannot invoke isCaseSensitiveSort", e);
434         }
435     }
436 
437     /***
438      * {@inheritDoc}
439      * @see de.bea.domingo.DViewColumn#isCategory()
440      */
441     public boolean isCategory() {
442         getFactory().preprocessMethod();
443         try {
444             return getViewColumn().isCategory();
445         } catch (NotesException e) {
446             throw newRuntimeException("Cannot invoke isCategory", e);
447         }
448     }
449 
450     /***
451      * {@inheritDoc}
452      * @see de.bea.domingo.DViewColumn#isField()
453      */
454     public boolean isField() {
455         getFactory().preprocessMethod();
456         try {
457             return getViewColumn().isField();
458         } catch (NotesException e) {
459             throw newRuntimeException("Cannot invoke isField", e);
460         }
461     }
462 
463     /***
464      * {@inheritDoc}
465      * @see de.bea.domingo.DViewColumn#isFontBold()
466      */
467     public boolean isFontBold() {
468         getFactory().preprocessMethod();
469         try {
470             return getViewColumn().isFontBold();
471         } catch (NotesException e) {
472             throw newRuntimeException("Cannot invoke isFontBold", e);
473         }
474     }
475 
476     /***
477      * {@inheritDoc}
478      * @see de.bea.domingo.DViewColumn#isFontItalic()
479      */
480     public boolean isFontItalic() {
481         getFactory().preprocessMethod();
482         try {
483             return getViewColumn().isFontItalic();
484         } catch (NotesException e) {
485             throw newRuntimeException("Cannot invoke isFontItalic", e);
486         }
487     }
488 
489     /***
490      * {@inheritDoc}
491      * @see de.bea.domingo.DViewColumn#isFontStrikethrough()
492      */
493     public boolean isFontStrikethrough() {
494         getFactory().preprocessMethod();
495         try {
496             return getViewColumn().isFontStrikethrough();
497         } catch (NotesException e) {
498             throw newRuntimeException("Cannot invoke isFontStrikethrough", e);
499         }
500     }
501 
502     /***
503      * {@inheritDoc}
504      * @see de.bea.domingo.DViewColumn#isFontUnderline()
505      */
506     public boolean isFontUnderline() {
507         getFactory().preprocessMethod();
508         try {
509             return getViewColumn().isFontUnderline();
510         } catch (NotesException e) {
511             throw newRuntimeException("Cannot invoke isFontUnderline", e);
512         }
513     }
514 
515     /***
516      * {@inheritDoc}
517      * @see de.bea.domingo.DViewColumn#isFormula()
518      */
519     public boolean isFormula() {
520         getFactory().preprocessMethod();
521         try {
522             return getViewColumn().isFormula();
523         } catch (NotesException e) {
524             throw newRuntimeException("Cannot invoke isFormula", e);
525         }
526     }
527 
528     /***
529      * {@inheritDoc}
530      * @see de.bea.domingo.DViewColumn#isHeaderFontBold()
531      */
532     public boolean isHeaderFontBold() {
533         getFactory().preprocessMethod();
534         try {
535             return getViewColumn().isHeaderFontBold();
536         } catch (NotesException e) {
537             throw newRuntimeException("Cannot invoke isHeaderFontBold", e);
538         }
539     }
540 
541     /***
542      * {@inheritDoc}
543      * @see de.bea.domingo.DViewColumn#isHeaderFontItalic()
544      */
545     public boolean isHeaderFontItalic() {
546         getFactory().preprocessMethod();
547         try {
548             return getViewColumn().isHeaderFontItalic();
549         } catch (NotesException e) {
550             throw newRuntimeException("Cannot invoke isHeaderFontItalic", e);
551         }
552     }
553 
554     /***
555      * {@inheritDoc}
556      * @see de.bea.domingo.DViewColumn#isHeaderFontStrikethrough()
557      */
558     public boolean isHeaderFontStrikethrough() {
559         getFactory().preprocessMethod();
560         try {
561             return getViewColumn().isHeaderFontStrikethrough();
562         } catch (NotesException e) {
563             throw newRuntimeException("Cannot invoke isHeaderFontStrikethrough", e);
564         }
565     }
566 
567     /***
568      * {@inheritDoc}
569      * @see de.bea.domingo.DViewColumn#isHeaderFontUnderline()
570      */
571     public boolean isHeaderFontUnderline() {
572         getFactory().preprocessMethod();
573         try {
574             return getViewColumn().isHeaderFontUnderline();
575         } catch (NotesException e) {
576             throw newRuntimeException("Cannot invoke isHeaderFontUnderline", e);
577         }
578     }
579 
580     /***
581      * {@inheritDoc}
582      * @see de.bea.domingo.DViewColumn#isHidden()
583      */
584     public boolean isHidden() {
585         getFactory().preprocessMethod();
586         try {
587             return getViewColumn().isHidden();
588         } catch (NotesException e) {
589             throw newRuntimeException("Cannot invoke isHidden", e);
590         }
591     }
592 
593     /***
594      * {@inheritDoc}
595      * @see de.bea.domingo.DViewColumn#isHideDetail()
596      */
597     public boolean isHideDetail() {
598         getFactory().preprocessMethod();
599         try {
600             return getViewColumn().isHideDetail();
601         } catch (NotesException e) {
602             throw newRuntimeException("Cannot invoke isHideDetail", e);
603         }
604     }
605 
606     /***
607      * {@inheritDoc}
608      * @see de.bea.domingo.DViewColumn#isIcon()
609      */
610     public boolean isIcon() {
611         getFactory().preprocessMethod();
612         try {
613             return getViewColumn().isIcon();
614         } catch (NotesException e) {
615             throw newRuntimeException("Cannot invoke isIcon", e);
616         }
617     }
618 
619     /***
620      * {@inheritDoc}
621      * @see de.bea.domingo.DViewColumn#isNumberAttribParens()
622      */
623     public boolean isNumberAttribParens() {
624         getFactory().preprocessMethod();
625         try {
626             return getViewColumn().isNumberAttribParens();
627         } catch (NotesException e) {
628             throw newRuntimeException("Cannot invoke isNumberAttribParens", e);
629         }
630     }
631 
632     /***
633      * {@inheritDoc}
634      * @see de.bea.domingo.DViewColumn#isNumberAttribPercent()
635      */
636     public boolean isNumberAttribPercent() {
637         getFactory().preprocessMethod();
638         try {
639             return getViewColumn().isNumberAttribPercent();
640         } catch (NotesException e) {
641             throw newRuntimeException("Cannot invoke isNumberAttribPercent", e);
642         }
643     }
644 
645     /***
646      * {@inheritDoc}
647      * @see de.bea.domingo.DViewColumn#isNumberAttribPunctuated()
648      */
649     public boolean isNumberAttribPunctuated() {
650         getFactory().preprocessMethod();
651         try {
652             return getViewColumn().isNumberAttribPunctuated();
653         } catch (NotesException e) {
654             throw newRuntimeException("Cannot invoke isNumberAttribPunctuated", e);
655         }
656     }
657 
658     /***
659      * {@inheritDoc}
660      * @see de.bea.domingo.DViewColumn#isResize()
661      */
662     public boolean isResize() {
663         getFactory().preprocessMethod();
664         try {
665             return getViewColumn().isResize();
666         } catch (NotesException e) {
667             throw newRuntimeException("Cannot invoke isResize", e);
668         }
669     }
670 
671     /***
672      * {@inheritDoc}
673      * @see de.bea.domingo.DViewColumn#isResortAscending()
674      */
675     public boolean isResortAscending() {
676         getFactory().preprocessMethod();
677         try {
678             return getViewColumn().isResortAscending();
679         } catch (NotesException e) {
680             throw newRuntimeException("Cannot invoke isResortAscending", e);
681         }
682     }
683 
684     /***
685      * {@inheritDoc}
686      * @see de.bea.domingo.DViewColumn#isResortDescending()
687      */
688     public boolean isResortDescending() {
689         getFactory().preprocessMethod();
690         try {
691             return getViewColumn().isResortDescending();
692         } catch (NotesException e) {
693             throw newRuntimeException("Cannot invoke isResortDescending", e);
694         }
695     }
696 
697     /***
698      * {@inheritDoc}
699      * @see de.bea.domingo.DViewColumn#isResortToView()
700      */
701     public boolean isResortToView() {
702         getFactory().preprocessMethod();
703         try {
704             return getViewColumn().isResortToView();
705         } catch (NotesException e) {
706             throw newRuntimeException("Cannot invoke isResortToView", e);
707         }
708     }
709 
710     /***
711      * {@inheritDoc}
712      * @see de.bea.domingo.DViewColumn#isResponse()
713      */
714     public boolean isResponse() {
715         getFactory().preprocessMethod();
716         try {
717             return getViewColumn().isResponse();
718         } catch (NotesException e) {
719             throw newRuntimeException("Cannot invoke isResponse", e);
720         }
721     }
722 
723     /***
724      * {@inheritDoc}
725      * @see de.bea.domingo.DViewColumn#isSecondaryResort()
726      */
727     public boolean isSecondaryResort() {
728         getFactory().preprocessMethod();
729         try {
730             return getViewColumn().isSecondaryResort();
731         } catch (NotesException e) {
732             throw newRuntimeException("Cannot invoke isSecondaryResort", e);
733         }
734     }
735 
736     /***
737      * {@inheritDoc}
738      * @see de.bea.domingo.DViewColumn#isSecondaryResortDescending()
739      */
740     public boolean isSecondaryResortDescending() {
741         getFactory().preprocessMethod();
742         try {
743             return getViewColumn().isSecondaryResortDescending();
744         } catch (NotesException e) {
745             throw newRuntimeException("Cannot invoke isSecondaryResortDescending", e);
746         }
747     }
748 
749     /***
750      * {@inheritDoc}
751      * @see de.bea.domingo.DViewColumn#isShowTwistie()
752      */
753     public boolean isShowTwistie() {
754         getFactory().preprocessMethod();
755         try {
756             return getViewColumn().isShowTwistie();
757         } catch (NotesException e) {
758             throw newRuntimeException("Cannot invoke isShowTwistie", e);
759         }
760     }
761 
762     /***
763      * {@inheritDoc}
764      * @see de.bea.domingo.DViewColumn#isSortDescending()
765      */
766     public boolean isSortDescending() {
767         getFactory().preprocessMethod();
768         try {
769             return getViewColumn().isSortDescending();
770         } catch (NotesException e) {
771             throw newRuntimeException("Cannot invoke isSortDescending", e);
772         }
773     }
774 
775     /***
776      * {@inheritDoc}
777      * @see de.bea.domingo.DViewColumn#isSorted()
778      */
779     public boolean isSorted() {
780         getFactory().preprocessMethod();
781         try {
782             return getViewColumn().isSorted();
783         } catch (NotesException e) {
784             throw newRuntimeException("Cannot invoke isSorted", e);
785         }
786     }
787 
788     /***
789      * {@inheritDoc}
790      * @see de.bea.domingo.DViewColumn#setAccentSensitiveSort(boolean)
791      */
792     public void setAccentSensitiveSort(final boolean arg1) {
793         getFactory().preprocessMethod();
794         try {
795             getViewColumn().setAccentSensitiveSort(arg1);
796         } catch (NotesException e) {
797             throw newRuntimeException("Cannot invoke setAccentSensitiveSort", e);
798         }
799     }
800 
801     /***
802      * {@inheritDoc}
803      * @see de.bea.domingo.DViewColumn#setAlignment(int)
804      */
805     public void setAlignment(final int alignment) {
806         getFactory().preprocessMethod();
807         try {
808             getViewColumn().setAlignment(alignment);
809         } catch (NotesException e) {
810             throw newRuntimeException("Cannot invoke setAlignment", e);
811         }
812     }
813 
814     /***
815      * {@inheritDoc}
816      * @see de.bea.domingo.DViewColumn#setCaseSensitiveSort(boolean)
817      */
818     public void setCaseSensitiveSort(final boolean arg1) {
819         getFactory().preprocessMethod();
820         try {
821             getViewColumn().setCaseSensitiveSort(arg1);
822         } catch (NotesException e) {
823             throw newRuntimeException("Cannot invoke setCaseSensitiveSort", e);
824         }
825     }
826 
827     /***
828      * {@inheritDoc}
829      * @see de.bea.domingo.DViewColumn#setDateFmt(int)
830      */
831     public void setDateFmt(final int arg1) {
832         getFactory().preprocessMethod();
833         try {
834             getViewColumn().setDateFmt(arg1);
835         } catch (NotesException e) {
836             throw newRuntimeException("Cannot invoke setDateFmt", e);
837         }
838     }
839 
840     /***
841      * {@inheritDoc}
842      * @see de.bea.domingo.DViewColumn#setFontBold(boolean)
843      */
844     public void setFontBold(final boolean arg1) {
845         getFactory().preprocessMethod();
846         try {
847             getViewColumn().setFontBold(arg1);
848         } catch (NotesException e) {
849             throw newRuntimeException("Cannot invoke setFontBold", e);
850         }
851     }
852 
853     /***
854      * {@inheritDoc}
855      * @see de.bea.domingo.DViewColumn#setFontColor(int)
856      */
857     public void setFontColor(final int arg1) {
858         getFactory().preprocessMethod();
859         try {
860             getViewColumn().setFontColor(arg1);
861         } catch (NotesException e) {
862             throw newRuntimeException("Cannot invoke setFontColor", e);
863         }
864     }
865 
866     /***
867      * {@inheritDoc}
868      * @see de.bea.domingo.DViewColumn#setFontFace(java.lang.String)
869      */
870     public void setFontFace(final String arg1) {
871         getFactory().preprocessMethod();
872         try {
873             getViewColumn().setFontFace(arg1);
874         } catch (NotesException e) {
875             throw newRuntimeException("Cannot invoke setFontFace", e);
876         }
877     }
878 
879     /***
880      * {@inheritDoc}
881      * @see de.bea.domingo.DViewColumn#setFontItalic(boolean)
882      */
883     public void setFontItalic(final boolean arg1) {
884         getFactory().preprocessMethod();
885         try {
886             getViewColumn().setFontItalic(arg1);
887         } catch (NotesException e) {
888             throw newRuntimeException("Cannot invoke setFontItalic", e);
889         }
890     }
891 
892     /***
893      * {@inheritDoc}
894      * @see de.bea.domingo.DViewColumn#setFontPointSize(int)
895      */
896     public void setFontPointSize(final int arg1) {
897         getFactory().preprocessMethod();
898         try {
899             getViewColumn().setFontPointSize(arg1);
900         } catch (NotesException e) {
901             throw newRuntimeException("Cannot invoke setFontPointSize", e);
902         }
903     }
904 
905     /***
906      * {@inheritDoc}
907      * @see de.bea.domingo.DViewColumn#setFontStrikethrough(boolean)
908      */
909     public void setFontStrikethrough(final boolean arg1) {
910         getFactory().preprocessMethod();
911         try {
912             getViewColumn().setFontStrikethrough(arg1);
913         } catch (NotesException e) {
914             throw newRuntimeException("Cannot invoke setFontStrikethrough", e);
915         }
916     }
917 
918     /***
919      * {@inheritDoc}
920      * @see de.bea.domingo.DViewColumn#setFontStyle(int)
921      */
922     public void setFontStyle(final int arg1) {
923         getFactory().preprocessMethod();
924         try {
925             getViewColumn().setFontStyle(arg1);
926         } catch (NotesException e) {
927             throw newRuntimeException("Cannot invoke setFontStyle", e);
928         }
929     }
930 
931     /***
932      * {@inheritDoc}
933      * @see de.bea.domingo.DViewColumn#setFontUnderline(boolean)
934      */
935     public void setFontUnderline(final boolean arg1) {
936         getFactory().preprocessMethod();
937         try {
938             getViewColumn().setFontUnderline(arg1);
939         } catch (NotesException e) {
940             throw newRuntimeException("Cannot invoke setFontUnderline", e);
941         }
942     }
943 
944     /***
945      * {@inheritDoc}
946      * @see de.bea.domingo.DViewColumn#setFormula(java.lang.String)
947      */
948     public void setFormula(final String arg1) {
949         getFactory().preprocessMethod();
950         try {
951             getViewColumn().setFormula(arg1);
952         } catch (NotesException e) {
953             throw newRuntimeException("Cannot invoke setFormula", e);
954         }
955     }
956 
957     /***
958      * {@inheritDoc}
959      * @see de.bea.domingo.DViewColumn#setHeaderAlignment(int)
960      */
961     public void setHeaderAlignment(final int arg1) {
962         getFactory().preprocessMethod();
963         try {
964             getViewColumn().setHeaderAlignment(arg1);
965         } catch (NotesException e) {
966             throw newRuntimeException("Cannot invoke setHeaderAlignment", e);
967         }
968     }
969 
970     /***
971      * {@inheritDoc}
972      * @see de.bea.domingo.DViewColumn#setHeaderFontBold(boolean)
973      */
974     public void setHeaderFontBold(final boolean arg1) {
975         getFactory().preprocessMethod();
976         try {
977             getViewColumn().setHeaderFontBold(arg1);
978         } catch (NotesException e) {
979             throw newRuntimeException("Cannot invoke setHeaderFontBold", e);
980         }
981     }
982 
983     /***
984      * {@inheritDoc}
985      * @see de.bea.domingo.DViewColumn#setHeaderFontColor(int)
986      */
987     public void setHeaderFontColor(final int arg1) {
988         getFactory().preprocessMethod();
989         try {
990             getViewColumn().setHeaderFontColor(arg1);
991         } catch (NotesException e) {
992             throw newRuntimeException("Cannot invoke setHeaderFontColor", e);
993         }
994     }
995 
996     /***
997      * {@inheritDoc}
998      * @see de.bea.domingo.DViewColumn#setHeaderFontFace(java.lang.String)
999      */
1000     public void setHeaderFontFace(final String arg1) {
1001         getFactory().preprocessMethod();
1002         try {
1003             getViewColumn().setHeaderFontFace(arg1);
1004         } catch (NotesException e) {
1005             throw newRuntimeException("Cannot invoke setHeaderFontFace", e);
1006         }
1007     }
1008 
1009     /***
1010      * {@inheritDoc}
1011      * @see de.bea.domingo.DViewColumn#setHeaderFontItalic(boolean)
1012      */
1013     public void setHeaderFontItalic(final boolean arg1) {
1014         getFactory().preprocessMethod();
1015         try {
1016             getViewColumn().setHeaderFontItalic(arg1);
1017         } catch (NotesException e) {
1018             throw newRuntimeException("Cannot invoke setHeaderFontItalic", e);
1019         }
1020     }
1021 
1022     /***
1023      * {@inheritDoc}
1024      * @see de.bea.domingo.DViewColumn#setHeaderFontPointSize(int)
1025      */
1026     public void setHeaderFontPointSize(final int arg1) {
1027         getFactory().preprocessMethod();
1028         try {
1029             getViewColumn().setHeaderFontPointSize(arg1);
1030         } catch (NotesException e) {
1031             throw newRuntimeException("Cannot invoke setHeaderFontPointSize", e);
1032         }
1033     }
1034 
1035     /***
1036      * {@inheritDoc}
1037      * @see de.bea.domingo.DViewColumn#setHeaderFontStrikethrough(boolean)
1038      */
1039     public void setHeaderFontStrikethrough(final boolean arg1) {
1040         getFactory().preprocessMethod();
1041         try {
1042             getViewColumn().setHeaderFontStrikethrough(arg1);
1043         } catch (NotesException e) {
1044             throw newRuntimeException("Cannot invoke setHeaderFontStrikethrough", e);
1045         }
1046     }
1047 
1048     /***
1049      * {@inheritDoc}
1050      * @see de.bea.domingo.DViewColumn#setHeaderFontStyle(int)
1051      */
1052     public void setHeaderFontStyle(final int arg1) {
1053         getFactory().preprocessMethod();
1054         try {
1055             getViewColumn().setHeaderFontStyle(arg1);
1056         } catch (NotesException e) {
1057             throw newRuntimeException("Cannot invoke setHeaderFontStyle", e);
1058         }
1059     }
1060 
1061     /***
1062      * {@inheritDoc}
1063      * @see de.bea.domingo.DViewColumn#setHeaderFontUnderline(boolean)
1064      */
1065     public void setHeaderFontUnderline(final boolean arg1) {
1066         getFactory().preprocessMethod();
1067         try {
1068             getViewColumn().setHeaderFontUnderline(arg1);
1069         } catch (NotesException e) {
1070             throw newRuntimeException("Cannot invoke setHeaderFontUnderline", e);
1071         }
1072     }
1073 
1074     /***
1075      * {@inheritDoc}
1076      * @see de.bea.domingo.DViewColumn#setHidden(boolean)
1077      */
1078     public void setHidden(final boolean flag) {
1079         getFactory().preprocessMethod();
1080         try {
1081             getViewColumn().setHidden(flag);
1082         } catch (NotesException e) {
1083             throw newRuntimeException("Cannot invoke setHidden", e);
1084         }
1085     }
1086 
1087     /***
1088      * {@inheritDoc}
1089      * @see de.bea.domingo.DViewColumn#setHideDetail(boolean)
1090      */
1091     public void setHideDetail(final boolean arg1) {
1092         getFactory().preprocessMethod();
1093         try {
1094             getViewColumn().setHideDetail(arg1);
1095         } catch (NotesException e) {
1096             throw newRuntimeException("Cannot invoke setHideDetail", e);
1097         }
1098     }
1099 
1100     /***
1101      * {@inheritDoc}
1102      * @see de.bea.domingo.DViewColumn#setListSep(int)
1103      */
1104     public void setListSep(final int arg1) {
1105         getFactory().preprocessMethod();
1106         try {
1107             getViewColumn().setListSep(arg1);
1108         } catch (NotesException e) {
1109             throw newRuntimeException("Cannot invoke setListSep", e);
1110         }
1111     }
1112 
1113     /***
1114      * {@inheritDoc}
1115      * @see de.bea.domingo.DViewColumn#setNumberAttrib(int)
1116      */
1117     public void setNumberAttrib(final int arg1) {
1118         getFactory().preprocessMethod();
1119         try {
1120             getViewColumn().setNumberAttrib(arg1);
1121         } catch (NotesException e) {
1122             throw newRuntimeException("Cannot invoke setNumberAttrib", e);
1123         }
1124     }
1125 
1126     /***
1127      * {@inheritDoc}
1128      * @see de.bea.domingo.DViewColumn#setNumberAttribParens(boolean)
1129      */
1130     public void setNumberAttribParens(final boolean arg1) {
1131         getFactory().preprocessMethod();
1132         try {
1133             getViewColumn().setNumberAttribParens(arg1);
1134         } catch (NotesException e) {
1135             throw newRuntimeException("Cannot invoke setNumberAttribParens", e);
1136         }
1137     }
1138 
1139     /***
1140      * {@inheritDoc}
1141      * @see de.bea.domingo.DViewColumn#setNumberAttribPercent(boolean)
1142      */
1143     public void setNumberAttribPercent(final boolean arg1) {
1144         getFactory().preprocessMethod();
1145         try {
1146             getViewColumn().setNumberAttribPercent(arg1);
1147         } catch (NotesException e) {
1148             throw newRuntimeException("Cannot invoke setNumberAttribPercent", e);
1149         }
1150     }
1151 
1152     /***
1153      * {@inheritDoc}
1154      * @see de.bea.domingo.DViewColumn#setNumberAttribPunctuated(boolean)
1155      */
1156     public void setNumberAttribPunctuated(final boolean arg1) {
1157         getFactory().preprocessMethod();
1158         try {
1159             getViewColumn().setNumberAttribPunctuated(arg1);
1160         } catch (NotesException e) {
1161             throw newRuntimeException("Cannot invoke setNumberAttribPunctuated", e);
1162         }
1163     }
1164 
1165     /***
1166      * {@inheritDoc}
1167      * @see de.bea.domingo.DViewColumn#setNumberDigits(int)
1168      */
1169     public void setNumberDigits(final int arg1) {
1170         getFactory().preprocessMethod();
1171         try {
1172             getViewColumn().setNumberDigits(arg1);
1173         } catch (NotesException e) {
1174             throw newRuntimeException("Cannot invoke setNumberDigits", e);
1175         }
1176     }
1177 
1178     /***
1179      * {@inheritDoc}
1180      * @see de.bea.domingo.DViewColumn#setNumberFormat(int)
1181      */
1182     public void setNumberFormat(final int arg1) {
1183         getFactory().preprocessMethod();
1184         try {
1185             getViewColumn().setNumberFormat(arg1);
1186         } catch (NotesException e) {
1187             throw newRuntimeException("Cannot invoke setNumberFormat", e);
1188         }
1189     }
1190 
1191     /***
1192      * {@inheritDoc}
1193      * @see de.bea.domingo.DViewColumn#setResize(boolean)
1194      */
1195     public void setResize(final boolean arg1) {
1196         getFactory().preprocessMethod();
1197         try {
1198             getViewColumn().setResize(arg1);
1199         } catch (NotesException e) {
1200             throw newRuntimeException("Cannot invoke setResize", e);
1201         }
1202     }
1203 
1204     /***
1205      * {@inheritDoc}
1206      * @see de.bea.domingo.DViewColumn#setResortAscending(boolean)
1207      */
1208     public void setResortAscending(final boolean arg1) {
1209         getFactory().preprocessMethod();
1210         try {
1211             getViewColumn().setResortAscending(arg1);
1212         } catch (NotesException e) {
1213             throw newRuntimeException("Cannot invoke setResortAscending", e);
1214         }
1215     }
1216 
1217     /***
1218      * {@inheritDoc}
1219      * @see de.bea.domingo.DViewColumn#setResortDescending(boolean)
1220      */
1221     public void setResortDescending(final boolean arg1) {
1222         getFactory().preprocessMethod();
1223         try {
1224             getViewColumn().setResortDescending(arg1);
1225         } catch (NotesException e) {
1226             throw newRuntimeException("Cannot invoke setResortDescending", e);
1227         }
1228     }
1229 
1230     /***
1231      * {@inheritDoc}
1232      * @see de.bea.domingo.DViewColumn#setResortToView(boolean)
1233      */
1234     public void setResortToView(final boolean arg1) {
1235         getFactory().preprocessMethod();
1236         try {
1237             getViewColumn().setResortToView(arg1);
1238         } catch (NotesException e) {
1239             throw newRuntimeException("Cannot invoke setResortToView", e);
1240         }
1241     }
1242 
1243     /***
1244      * {@inheritDoc}
1245      * @see de.bea.domingo.DViewColumn#setResortToViewName(java.lang.String)
1246      */
1247     public void setResortToViewName(final String arg1) {
1248         getFactory().preprocessMethod();
1249         try {
1250             getViewColumn().setResortToViewName(arg1);
1251         } catch (NotesException e) {
1252             throw newRuntimeException("Cannot invoke setResortToViewName", e);
1253         }
1254     }
1255 
1256     /***
1257      * {@inheritDoc}
1258      * @see de.bea.domingo.DViewColumn#setSecondaryResort(boolean)
1259      */
1260     public void setSecondaryResort(final boolean arg1) {
1261         getFactory().preprocessMethod();
1262         try {
1263             getViewColumn().setSecondaryResort(arg1);
1264         } catch (NotesException e) {
1265             throw newRuntimeException("Cannot invoke setSecondaryResort", e);
1266         }
1267     }
1268 
1269     /***
1270      * {@inheritDoc}
1271      * @see de.bea.domingo.DViewColumn#setSecondaryResortColumnIndex(int)
1272      */
1273     public void setSecondaryResortColumnIndex(final int arg1) {
1274         getFactory().preprocessMethod();
1275         try {
1276             getViewColumn().setSecondaryResortColumnIndex(arg1);
1277         } catch (NotesException e) {
1278             throw newRuntimeException("Cannot invoke setSecondaryResortColumnIndex", e);
1279         }
1280     }
1281 
1282     /***
1283      * {@inheritDoc}
1284      * @see de.bea.domingo.DViewColumn#setSecondaryResortDescending(boolean)
1285      */
1286     public void setSecondaryResortDescending(final boolean arg1) {
1287         getFactory().preprocessMethod();
1288         try {
1289             getViewColumn().setSecondaryResortDescending(arg1);
1290         } catch (NotesException e) {
1291             throw newRuntimeException("Cannot invoke setSecondaryResortDescending", e);
1292         }
1293     }
1294 
1295     /***
1296      * {@inheritDoc}
1297      * @see de.bea.domingo.DViewColumn#setShowTwistie(boolean)
1298      */
1299     public void setShowTwistie(final boolean arg1) {
1300         getFactory().preprocessMethod();
1301         try {
1302             getViewColumn().setShowTwistie(arg1);
1303         } catch (NotesException e) {
1304             throw newRuntimeException("Cannot invoke setShowTwistie", e);
1305         }
1306     }
1307 
1308     /***
1309      * {@inheritDoc}
1310      * @see de.bea.domingo.DViewColumn#setSortDescending(boolean)
1311      */
1312     public void setSortDescending(final boolean arg1) {
1313         getFactory().preprocessMethod();
1314         try {
1315             getViewColumn().setSortDescending(arg1);
1316         } catch (NotesException e) {
1317             throw newRuntimeException("Cannot invoke setSortDescending", e);
1318         }
1319     }
1320 
1321     /***
1322      * {@inheritDoc}
1323      * @see de.bea.domingo.DViewColumn#setSorted(boolean)
1324      */
1325     public void setSorted(final boolean arg1) {
1326         getFactory().preprocessMethod();
1327         try {
1328             getViewColumn().setSorted(arg1);
1329         } catch (NotesException e) {
1330             throw newRuntimeException("Cannot invoke setSorted", e);
1331         }
1332     }
1333 
1334     /***
1335      * {@inheritDoc}
1336      * @see de.bea.domingo.DViewColumn#setTimeDateFmt(int)
1337      */
1338     public void setTimeDateFmt(final int arg1) {
1339         getFactory().preprocessMethod();
1340         try {
1341             getViewColumn().setTimeDateFmt(arg1);
1342         } catch (NotesException e) {
1343             throw newRuntimeException("Cannot invoke setTimeDateFmt", e);
1344         }
1345     }
1346 
1347     /***
1348      * {@inheritDoc}
1349      * @see de.bea.domingo.DViewColumn#setTimeFmt(int)
1350      */
1351     public void setTimeFmt(final int arg1) {
1352         getFactory().preprocessMethod();
1353         try {
1354             getViewColumn().setTimeFmt(arg1);
1355         } catch (NotesException e) {
1356             throw newRuntimeException("Cannot invoke setTimeFmt", e);
1357         }
1358     }
1359 
1360     /***
1361      * {@inheritDoc}
1362      * @see de.bea.domingo.DViewColumn#setTimeZoneFmt(int)
1363      */
1364     public void setTimeZoneFmt(final int arg1) {
1365         getFactory().preprocessMethod();
1366         try {
1367             getViewColumn().setTimeZoneFmt(arg1);
1368         } catch (NotesException e) {
1369             throw newRuntimeException("Cannot invoke setTimeZoneFmt", e);
1370         }
1371     }
1372 
1373     /***
1374      * {@inheritDoc}
1375      * @see de.bea.domingo.DViewColumn#setTitle(java.lang.String)
1376      */
1377     public void setTitle(final String title) {
1378         getFactory().preprocessMethod();
1379         try {
1380             getViewColumn().setTitle(title);
1381         } catch (NotesException e) {
1382             throw newRuntimeException("Cannot invoke setTitle", e);
1383         }
1384     }
1385 
1386     /***
1387      * {@inheritDoc}
1388      * @see de.bea.domingo.DViewColumn#setWidth(int)
1389      */
1390     public void setWidth(final int arg1) {
1391         getFactory().preprocessMethod();
1392         try {
1393             getViewColumn().setWidth(arg1);
1394         } catch (NotesException e) {
1395             throw newRuntimeException("Cannot invoke setWidth", e);
1396         }
1397     }
1398 
1399     /***
1400      * {@inheritDoc}
1401      * @see de.bea.domingo.proxy.BaseProxy#toString()
1402      */
1403     public String toString() {
1404         getFactory().preprocessMethod();
1405         try {
1406             String title = getViewColumn().getTitle();
1407             if (title != null && title.length() > 0) {
1408                 return title;
1409             }
1410             return getViewColumn().getFormula();
1411         } catch (NotesException e) {
1412             throw newRuntimeException("Cannot invoke toString", e);
1413         }
1414     }
1415 }