mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 18:29:23 +02:00
refactoring: introduced ZLViewWidget class
This commit is contained in:
parent
90f1be2dd8
commit
744934e3b7
17 changed files with 38 additions and 83 deletions
|
@ -54,7 +54,7 @@ class ProcessHyperlinkAction extends FBAction {
|
|||
final ZLTextElementRegion region = Reader.getTextView().getSelectedRegion();
|
||||
if (region instanceof ZLTextHyperlinkRegion) {
|
||||
Reader.getTextView().hideSelectedRegionBorder();
|
||||
Reader.repaintView();
|
||||
Reader.getViewWidget().repaint();
|
||||
final ZLTextHyperlink hyperlink = ((ZLTextHyperlinkRegion)region).Hyperlink;
|
||||
switch (hyperlink.Type) {
|
||||
case FBHyperlinkType.EXTERNAL:
|
||||
|
@ -71,7 +71,7 @@ class ProcessHyperlinkAction extends FBAction {
|
|||
}
|
||||
} else if (region instanceof ZLTextImageRegion) {
|
||||
Reader.getTextView().hideSelectedRegionBorder();
|
||||
Reader.repaintView();
|
||||
Reader.getViewWidget().repaint();
|
||||
final String uriString = ((ZLTextImageRegion)region).ImageElement.URI;
|
||||
if (uriString != null) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue