mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 01:39:18 +02:00
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@9 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
parent
08ac45f2b0
commit
aff1368f14
3 changed files with 15 additions and 2 deletions
6
src/org/zlibrary/model/ZLModelFactory.java
Normal file
6
src/org/zlibrary/model/ZLModelFactory.java
Normal file
|
@ -0,0 +1,6 @@
|
|||
package org.zlibrary.model;
|
||||
|
||||
public abstract class ZLModelFactory {
|
||||
public abstract ZLTextModel createModel();
|
||||
public abstract ZLTextParagraph createParagraph();
|
||||
}
|
|
@ -12,7 +12,8 @@ public interface ZLTextModel {
|
|||
Kind getKind();
|
||||
int getParagraphsNumber();
|
||||
ZLTextParagraph getParagraph(int index);
|
||||
void selectParagraph(int index);
|
||||
|
||||
void addParagraphInternal(ZLTextParagraph paragraph);
|
||||
|
||||
void addControl(byte textKind, boolean isStart);
|
||||
void addText(String text);
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
package org.zlibrary.model;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.zlibrary.model.entry.ZLTextParagraphEntry;
|
||||
|
||||
public interface ZLTextParagraph {
|
||||
enum Kind {
|
||||
TEXT_PARAGRAPH,
|
||||
|
@ -8,4 +12,6 @@ public interface ZLTextParagraph {
|
|||
Kind getKind();
|
||||
int getEntryNumber();
|
||||
int getTextLength();
|
||||
List<ZLTextParagraphEntry> getEntries();
|
||||
void addEntry(ZLTextParagraphEntry entry);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue