Changeset 1041 for trunk/core/lib/Foswiki/Form/FieldDefinition.pm
- Timestamp:
- 11/28/08 13:33:03 (3 years ago)
- File:
-
- 1 edited
-
trunk/core/lib/Foswiki/Form/FieldDefinition.pm (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/lib/Foswiki/Form/FieldDefinition.pm
r1039 r1041 2 2 # base class for all form field types 3 3 4 = pod4 =begin TML 5 5 6 6 ---+ package Foswiki::Form::FieldDefinition … … 19 19 use Assert; 20 20 21 = pod21 =begin TML 22 22 23 23 ---++ ClassMethod new(%...) … … 63 63 } 64 64 65 = pod65 =begin TML 66 66 67 67 ---++ isEditable() -> $boolean … … 74 74 sub isEditable { 1 } 75 75 76 = pod76 =begin TML 77 77 78 78 ---++ isMultiValued() -> $boolean … … 85 85 sub isMultiValued { 0 } 86 86 87 = pod87 =begin TML 88 88 89 89 ---++ isTextMergeable() -> $boolean … … 96 96 sub isTextMergeable { return !shift->isMultiValued() } 97 97 98 = pod98 =begin TML 99 99 100 100 ---++ isMandatory() -> $boolean … … 106 106 sub isMandatory { return shift->{attributes} =~ /M/ } 107 107 108 = pod108 =begin TML 109 109 110 110 ---++ renderForEdit( $web, $topic, $value ) -> ($col0html, $col1html) … … 134 134 } 135 135 136 = pod136 =begin TML 137 137 138 138 ---++ cssClasses(@classes) -> $classes … … 151 151 } 152 152 153 = pod153 =begin TML 154 154 155 155 ---++ getDefaultValue() -> $value … … 172 172 } 173 173 174 = pod174 =begin TML 175 175 176 176 ---++ renderHidden($meta) -> $html … … 208 208 } 209 209 210 = pod210 =begin TML 211 211 212 212 ---++ populateMetaDataFromQuery( $query, $meta, $old ) -> ($bValid, $bPresent) … … 310 310 } 311 311 312 = pod312 =begin TML 313 313 314 314 ---++ ObjectMethod renderForDisplay($format, $attrs) -> $html
Note: See TracChangeset
for help on using the changeset viewer.
