Package com.cedarsoft.utils.tags

Examples of com.cedarsoft.utils.tags.Tag


    //noinspection ObjectEquality
    if ( anItem == getSelectedItem() ) {
      return;
    }

    @Nullable
    final Tag newTag;

    if ( anItem == null || anItem instanceof Tag ) {
      newTag = ( Tag ) anItem;
    } else if ( anItem instanceof String ) {
View Full Code Here


  protected Object doConvert( Object source, Class targetClass, ConversionContext context ) throws Exception {
    assert targetClass.equals( String.class );

    StringBuilder builder = new StringBuilder();
    for ( Iterator<? extends Tag> it = ( ( Tagged ) source ).getTags().iterator(); it.hasNext(); ) {
      Tag tag = it.next();
      builder.append( tag );
      if ( it.hasNext() ) {
        builder.append( ", " );
      }
    }
View Full Code Here

  @Override
  @NotNull
  protected String format( @NotNull Tagged object ) {
    StringBuilder builder = new StringBuilder();
    for ( Iterator<? extends Tag> it = object.getTags().iterator(); it.hasNext(); ) {
      Tag tag = it.next();
      builder.append( tag );
      if ( it.hasNext() ) {
        builder.append( ", " );
      }
    }
View Full Code Here

      }
    } );
  }

  private void addSelectedTag() {
    Tag tag = ( Tag ) tagCombo.getSelectedItem();
    if ( tag != null ) {
      this.model.selectTag( tag );
    }
  }
View Full Code Here

      }
    } );
  }

  private void addSelectedTag() {
    Tag tag = ( Tag ) tagCombo.getSelectedItem();
    if ( tag != null ) {
      this.model.selectTag( tag );
    }
  }
View Full Code Here

      }
    } );
  }

  private void addSelectedTag() {
    Tag tag = ( Tag ) tagCombo.getSelectedItem();
    if ( tag != null ) {
      this.model.selectTag( tag );
    }
  }
View Full Code Here

    //noinspection ObjectEquality
    if ( anItem == getSelectedItem() ) {
      return;
    }

    @Nullable
    final Tag newTag;

    if ( anItem == null || anItem instanceof Tag ) {
      newTag = ( Tag ) anItem;
    } else if ( anItem instanceof String ) {
View Full Code Here

TOP

Related Classes of com.cedarsoft.utils.tags.Tag

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.