source: ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/NameInputLine.as @ 1773

Last change on this file since 1773 was 1773, checked in by twagoo, 12 years ago

Created ChildNameValidator? which checks if a component or element name is unique among siblings. Both ComponentEdit? and ElementEdit? add set it as a validator on the NameInputLine? field, which now takes a validator as constructor parameter.

File size: 459 bytes
Line 
1package clarin.cmdi.componentregistry.editor {
2        import clarin.cmdi.componentregistry.common.LabelConstants;
3       
4        import mx.events.ValidationResultEvent;
5        import mx.validators.Validator;
6
7        public class NameInputLine extends FormItemInputLine {
8
9                private var validator:Validator;
10
11                public function NameInputLine(value:String, bindingFunction:Function, validator:Validator=null) {
12                        super(LabelConstants.NAME, value, bindingFunction, true, validator);
13                }
14
15        }
16}
Note: See TracBrowser for help on using the repository browser.