congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DiscussionRecord.getNote
Code IndexAdd Tabnine to your IDE (free)

How to use
getNote
method
in
org.kie.guvnor.services.metadata.model.DiscussionRecord

Best Java code snippets using org.kie.guvnor.services.metadata.model.DiscussionRecord.getNote (Showing top 2 results out of 315)

origin: org.kie.guvnor/guvnor-core-services-backend

public static Map<String, Object> toMap( final DiscussionAttributes attrs,
                     final String... attributes ) {
  return new HashMap<String, Object>() {{
    for ( final String attribute : attributes ) {
      checkNotEmpty( "attribute", attribute );
      if ( attribute.equals( "*" ) || attribute.equals( DISCUSS ) ) {
        for ( int i = 0; i < attrs.discussion().size(); i++ ) {
          final DiscussionRecord record = attrs.discussion().get( i );
          put( buildAttrName( TIMESTAMP, i ), record.getTimestamp() );
          put( buildAttrName( AUTHOR, i ), record.getAuthor() );
          put( buildAttrName( NOTE, i ), record.getNote() );
        }
      }
      if ( attribute.equals( "*" ) ) {
        break;
      }
    }
  }};
}
origin: org.kie.guvnor/guvnor-metadata-widget

private Widget appendComment( final DiscussionRecord r ) {
  final SmallLabel hrd = new SmallLabel( MetadataConstants.INSTANCE.smallCommentBy0On1Small( r.getAuthor(), new Date( r.getTimestamp() ) ) );
  hrd.addStyleName( "discussion-header" );
  commentList.add( hrd );
  final String[] parts = r.getNote().split( "\n" );
  if ( parts.length > 0 ) {
    final StringBuilder txtBuilder = new StringBuilder();
    for ( int i = 0; i < parts.length; i++ ) {
      txtBuilder.append( parts[ i ] );
      if ( i != parts.length - 1 ) {
        txtBuilder.append( "<br/>" );
      }
    }
    final HTML hth = new HTML( txtBuilder.toString() );
    hth.setStyleName( "form-field" );
    commentList.add( hth );
  } else {
    final Label lbl = new Label( r.getNote() );
    lbl.setStyleName( "form-field" );
    commentList.add( lbl );
  }
  commentList.add( new HTML( "<br/>" ) );
  return hrd;
}
org.kie.guvnor.services.metadata.modelDiscussionRecordgetNote

Popular methods of DiscussionRecord

  • <init>
  • getAuthor
  • getTimestamp

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • setContentView (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JList (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now