| | 39 | <subheading>Date/time Format</subheading> |
| | 40 | |
| | 41 | <para>The format for all date/time values can be set, replacing the default |
| | 42 | format derived from the system, using the following property to specify one |
| | 43 | of <ital>long</ital>, <ital>medium</ital>, <ital>short</ital>, |
| | 44 | <ital>isolong</ital>, <ital>isoshort</ital> or a mask:</para> |
| | 45 | |
| | 46 | <property-listing>nakedobjects.value.format.datetime=dd/MM/yy</property-listing> |
| | 47 | |
| | 48 | <para>When a mask is specified it is used to set up a |
| | 49 | <class>java.text.SimpleDateFormat</class> formatting object so details of |
| | 50 | the mask format can be found in the Java documentation.</para> |
| | 51 | |
| | 52 | <para>This setting can be overriden for a specific field using the <see |
| | 53 | label="@mask"><code>@Mask</code> annotation</see>.</para> |
| | 54 | |
| | 55 | <subheading>Decimal format</subheading> |
| | 56 | |
| | 57 | <para>The format for <class>Bigdecimal</class> values can be set, replacing |
| | 58 | the default format derived from the system, using the following property to |
| | 59 | specify a mask:</para> |
| | 60 | |
| | 61 | <property-listing>nakedobjects.value.format.decimal=####</property-listing> |
| | 62 | |
| | 63 | <para>The mask is used to set up a <class>java.text.DecimalFormat</class> |
| | 64 | formatting object so details of the mask format can be found in the Java |
| | 65 | documentation.</para> |
| | 66 | |
| | 67 | <para>This setting can be overriden for a specific field using the <see |
| | 68 | label="@mask"><code>@Mask</code> annotation</see>.</para> |
| | 69 | |
| | 70 | <subheading>Double format</subheading> |
| | 71 | |
| | 72 | <para>The format for all double values can be set, replacing the default |
| | 73 | format derived from the system, using the following property to specify a |
| | 74 | mask:</para> |
| | 75 | |
| | 76 | <property-listing>nakedobjects.value.format.double=####</property-listing> |
| | 77 | |
| | 78 | <para>The mask is used to set up a <class>java.text.DecimalFormat</class> |
| | 79 | formatting object so details of the mask format can be found in the Java |
| | 80 | documentation.</para> |
| | 81 | |
| | 82 | <para>This setting can be overriden for a specific field using the <see |
| | 83 | label="@mask"><code>@Mask</code> annotation</see>.</para> |
| | 84 | |
| | 85 | <subheading>Float format</subheading> |
| | 86 | |
| | 87 | <para>The format for all float values can be set, replacing the default |
| | 88 | format derived from the system, using the following property to specify a |
| | 89 | mask:</para> |
| | 90 | |
| | 91 | <property-listing>nakedobjects.value.format.float=####</property-listing> |
| | 92 | |
| | 93 | <para>The mask is used to set up a <class>java.text.DecimalFormat</class> |
| | 94 | formatting object so details of the mask format can be found in the Java |
| | 95 | documentation.</para> |
| | 96 | |
| | 97 | <para>This setting can be overriden for a specific field using the <see |
| | 98 | label="@mask"><code>@Mask</code> annotation</see>.</para> |
| | 99 | |
| | 111 | |
| | 112 | <para>This setting can be overriden for a specific field using the <see |
| | 113 | label="@mask"><code>@Mask</code> annotation</see>.</para> |
| | 114 | |
| | 115 | <subheading>Long format</subheading> |
| | 116 | |
| | 117 | <para>The format for all long values can be set, replacing the default |
| | 118 | format derived from the system, using the following property to specify a |
| | 119 | mask:</para> |
| | 120 | |
| | 121 | <property-listing>nakedobjects.value.format.long=####</property-listing> |
| | 122 | |
| | 123 | <para>The mask is used to set up a <class>java.text.DecimalFormat</class> |
| | 124 | formatting object so details of the mask format can be found in the Java |
| | 125 | documentation.</para> |
| | 126 | |
| | 127 | <para>This setting can be overriden for a specific field using the <see |
| | 128 | label="@mask"><code>@Mask</code> annotation</see>.</para> |
| | 129 | |
| | 130 | <subheading>Short format</subheading> |
| | 131 | |
| | 132 | <para>The format for all short values can be set, replacing the default |
| | 133 | format derived from the system, using the following property to specify a |
| | 134 | mask:</para> |
| | 135 | |
| | 136 | <property-listing>nakedobjects.value.format.short=####</property-listing> |
| | 137 | |
| | 138 | <para>The mask is used to set up a <class>java.text.DecimalFormat</class> |
| | 139 | formatting object so details of the mask format can be found in the Java |
| | 140 | documentation.</para> |
| | 141 | |
| | 142 | <para>This setting can be overriden for a specific field using the <see |
| | 143 | label="@mask"><code>@Mask</code> annotation</see>.</para> |
| | 144 | |
| | 145 | <subheading>Time Format</subheading> |
| | 146 | |
| | 147 | <para>The format for all time values can be set, replacing the default |
| | 148 | format derived from the system, using the following property to specify one |
| | 149 | of <ital>long</ital>, <ital>medium</ital>, <ital>short</ital>, |
| | 150 | <ital>isolong</ital>, <ital>isoshort</ital> or a mask:</para> |
| | 151 | |
| | 152 | <property-listing>nakedobjects.value.format.time=ddMMyyyy hhmm</property-listing> |
| | 153 | |
| | 154 | <para>When a mask is specified it is used to set up a |
| | 155 | <class>java.text.SimpleDateFormat</class> formatting object so details of |
| | 156 | the mask format can be found in the Java documentation.</para> |
| | 157 | |
| | 158 | <para>This setting can be overriden for a specific field using the <see |
| | 159 | label="@mask"><code>@Mask</code> annotation</see>.</para> |
| | 160 | |
| | 161 | <subheading>Timestamp Format</subheading> |
| | 162 | |
| | 163 | <para>The format for time stamp values can be set, replacing the default |
| | 164 | format derived from the system, using the following property to specify one |
| | 165 | of <ital>long</ital>, <ital>medium</ital>, <ital>short</ital>, |
| | 166 | <ital>isolong</ital>, <ital>isoshort</ital> or a mask:</para> |
| | 167 | |
| | 168 | <property-listing>nakedobjects.value.format.timestamp=hh:mm</property-listing> |
| | 169 | |
| | 170 | <para>When a mask is specified it is used to set up a |
| | 171 | <class>java.text.SimpleDateFormat</class> formatting object so details of |
| | 172 | the mask format can be found in the Java documentation.</para> |