- public TuiReaderMainWindow(TuiReaderApplication reader,
- List<MetaData> stories) {
+ public TuiReaderMainWindow(TuiReaderApplication reader, List<MetaData> metas) {
+ this(reader);
+ setMetas(metas);
+ }
+
+ /**
+ * Create a new {@link TuiReaderMainWindow} with only the given
+ * {@link MetaData} in the list, and open this {@link MetaData} at the given
+ * chapter.
+ *
+ * @param reader
+ * the reader and main application
+ * @param meta
+ * the story to display
+ * @param chapter
+ * the chapter to open
+ */
+ public TuiReaderMainWindow(TuiReaderApplication reader, MetaData meta,
+ int chapter) {
+ this(reader);
+
+ List<MetaData> metas = new ArrayList<MetaData>();
+ metas.add(meta);
+ setMetas(metas);
+
+ reader.open(meta, chapter);
+ }
+
+ /**
+ * Create a new {@link TuiReaderMainWindow} without any stories in the list.
+ *
+ * @param reader
+ * the reader and main application
+ */
+ public TuiReaderMainWindow(TuiReaderApplication reader) {