本文整理汇总了Java中net.sf.memoranda.Note.getTitle方法的典型用法代码示例。如果您正苦于以下问题:Java Note.getTitle方法的具体用法?Java Note.getTitle怎么用?Java Note.getTitle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.memoranda.Note
的用法示例。
在下文中一共展示了Note.getTitle方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: noteToDocument
import net.sf.memoranda.Note; //导入方法依赖的package包/类
private Document noteToDocument(Note note, String noteHtmlContents) {
Document d = new Document ();
String id = note.getId ();
Project project = note.getProject();
String projectId = project.getID();
String projectName = project.getTitle();
String title = note.getTitle ();
String date = note.getDate() != null ? new SimpleDateFormat ("yyyy-MM-dd").format(note.getDate().getDate()) : null;
d.add (new StringField ("id", id, Field.Store.YES));
d.add (new StringField ("project_id", projectId, Field.Store.YES));
d.add (new StoredField ("project_name", projectName));
d.add (new TextField ("title", title, Field.Store.YES));
d.add (new TextField ("title_cs", title, Field.Store.YES));
d.add (new TextField ("date", date != null ? date : "", Field.Store.YES));
d.add (new TextField ("body", noteHtmlContents, Field.Store.YES));
return d;
}
示例2: getElementAt
import net.sf.memoranda.Note; //导入方法依赖的package包/类
public Object getElementAt(int i) {
Note note = (Note)notes.get(i);
return note.getDate().getShortDateString() + " " + note.getTitle();
}
示例3: getElementAt
import net.sf.memoranda.Note; //导入方法依赖的package包/类
public Object getElementAt(int i) {
Note note = (Note)notes.get(i);
return note.getDate().getShortDateString() + " " + note.getDate().getTime() + " " + note.getTitle();
}
示例4: getElementAt
import net.sf.memoranda.Note; //导入方法依赖的package包/类
public Object getElementAt(int i) {
Note note = (Note)notes.get(i);
DateFormat dateFormat = new SimpleDateFormat(CalendarDate.getDateFormat());
return dateFormat.format(note.getDate().getDate()) + " " + note.getTitle();
}