Package info.textgrid.lab.noteeditor.properties

Examples of info.textgrid.lab.noteeditor.properties.ReadOnlyTextPropertyDescriptor


  public ChordGroupForm() {
    super();
    createDefaultChord();
    initializeChord();
    TextPropertyDescriptor tpd = new ReadOnlyTextPropertyDescriptor(
        StringConstants.CHORD_NOTECOUNT,
        StringConstants.CHORD_NOTECOUNT);
    tpd.setCategory(this.toString());
    tpd.setDescription(MusicMessages.MEI_documentation_chord_count);
    descriptors.add(tpd);
   
    tpd = new TextPropertyDescriptor(StringConstants.CHORD_N,
        StringConstants.CHORD_N);
    tpd.setCategory(StringConstants.CAT_BASIC);
    tpd.setDescription(MusicMessages.MEI_documentation_generic_n);
    descriptors.add(tpd);
   
    tpd = new TextPropertyDescriptor(StringConstants.CHORD_TIMESTAMP,
        StringConstants.CHORD_TIMESTAMP);
    tpd.setCategory(this.toString());
    tpd.setValidator(PropertyDescriptorValidatorProvider
        .getTimeStampValidatorInstance());
    descriptors.add(tpd);
   
    tpd = new TextPropertyDescriptor(StringConstants.CHORD_STEM_LENGTH,
        StringConstants.CHORD_STEM_LENGTH);
    tpd.setCategory(this.toString());
    tpd.setValidator(PropertyDescriptorValidatorProvider
        .getStemLengthValidatorInstance());
    tpd.setDescription(MusicMessages.MEI_documentation_chord_stemlen);
    descriptors.add(tpd);
   
    tpd = new TextPropertyDescriptor(StringConstants.CHORD_DOTS,
        StringConstants.CHORD_DOTS);
    tpd.setCategory(this.toString());
    tpd.setValidator(PropertyDescriptorValidatorProvider
        .getPositiveNumberValidatorInstance());
    tpd.setDescription(MusicMessages.MEI_documentation_note_dots);
    descriptors.add(tpd);
   
    ComboBoxPropertyDescriptor cpd = new ComboBoxPropertyDescriptor(
        StringConstants.CHORD_STEM_DIR, StringConstants.CHORD_STEM_DIR,
        GraphicalConstants.PROPCOMBO_STRING_ARRAY_STEMVALUES); // works
View Full Code Here


   * @see #setPropertyValue(Object, Object)
   */
  public BasicElement() {
    setId(getNewID());
    descriptors = new ArrayList<IPropertyDescriptor>();
    TextPropertyDescriptor tpd = new ReadOnlyTextPropertyDescriptor(
        BASIC_ID, MusicMessages.BasicElement_0);
    tpd.setCategory(StringConstants.CAT_BASIC);
    tpd.setDescription(MusicMessages.MEI_documentation_generic_id);
    descriptors.add(tpd);
//    ColorPropertyDescriptor cpd = new ColorPropertyDescriptor(BASIC_COLOR,
//        MusicMessages.BasicElement_9);
//    cpd.setCategory(StringConstants.CAT_BASIC);
//    cpd.setDescription(MusicMessages.MEI_documentation_generic_color);
View Full Code Here

  private static final long serialVersionUID = 1L;

  public UnknownMeiNodeForm() {
    super();
    createDefaultNode();
    TextPropertyDescriptor tpd = new ReadOnlyTextPropertyDescriptor(
        StringConstants.UMN_TYPE, StringConstants.UMN_TYPE);
    tpd.setCategory(this.toString());
    tpd.setDescription(MusicMessages.MEI_documentation_unknown_form);
    descriptors.add(tpd);
  }
View Full Code Here

TOP

Related Classes of info.textgrid.lab.noteeditor.properties.ReadOnlyTextPropertyDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.