26 #define YUILogComponent "ui"
29 #include "YUISymbols.h"
30 #include "YComboBox.h"
31 #include "YUIException.h"
37 : editable( editable )
38 , inputMaxLength( -1 )
42 std::string validChars;
54 YUI_CHECK_NEW( priv );
66 return priv->editable;
72 return priv->validChars;
78 priv->validChars= newValidChars;
84 return priv->inputMaxLength;
90 priv->inputMaxLength = len;
138 std::string currentText =
text();
165 selectedItems.push_back( item );
186 propSet.
add(
YProperty( YUIProperty_Value, YOtherProperty ) );
187 propSet.
add(
YProperty( YUIProperty_Items, YOtherProperty ) );
188 propSet.
add(
YProperty( YUIProperty_Label, YStringProperty ) );
189 propSet.
add(
YProperty( YUIProperty_ValidChars, YStringProperty ) );
190 propSet.
add(
YProperty( YUIProperty_InputMaxLength, YIntegerProperty ) );
191 propSet.
add(
YProperty( YUIProperty_IconPath, YStringProperty ) );
204 if ( propertyName == YUIProperty_Value )
return false;
205 else if ( propertyName == YUIProperty_Items )
return false;
208 else if ( propertyName == YUIProperty_InputMaxLength )
setInputMaxLength( val.integerVal() );
224 if ( propertyName == YUIProperty_Value )
return YPropertyValue( YOtherProperty );
225 else if ( propertyName == YUIProperty_Items )
return YPropertyValue( YOtherProperty );