01: package org.osbl.demo.urlaub.gui;
02:
03: import org.osbl.client.wings.concern.ObjectFormViewModes;
04: import org.conform.modifier.InlineModifier;
05: import org.conform.validator.DateRangeValidator;
06:
07: public class CreateUrlaubsAntragForm extends UrlaubsAntragForm {
08: public CreateUrlaubsAntragForm() {
09: addViewModeVariation(ObjectFormViewModes.CREATE_VIEW,
10: new InlineModifier() {
11: protected void configure() {
12: property("anlass").setWritable(false);
13: property("vonDatum").setWritable(false);
14: property("bisDatum").setWritable(false);
15: property("vonZeit").setWritable(false);
16: property("bisZeit").setWritable(false);
17: property("genehmigung").setWritable(false);
18: property("gebucht").setWritable(false);
19: property("benachrichtigt").setWritable(false);
20: property("eingetragen").setWritable(false);
21: property("storniert").setWritable(false);
22:
23: property("typ").setWritable(true);
24: property("vonDatum").addValidator(
25: new DateRangeValidator(
26: DateRangeValidator.today(),
27: true, null, true));
28: }
29: });
30: setViewMode(ObjectFormViewModes.CREATE_VIEW);
31: }
32: }
|