net.sf.zekr.engine.bookmark.ui
Class BookmarkItemForm
java.lang.Object
net.sf.zekr.ui.BaseForm
net.sf.zekr.engine.bookmark.ui.BookmarkItemForm
- All Implemented Interfaces:
- EventProtocol
public class BookmarkItemForm
- extends BaseForm
A form for viewing and managing a single bookmark item or folder.
- Author:
- Mohsen Saboorian
Field Summary |
static java.lang.String |
FORM_ID
|
Constructor Summary |
BookmarkItemForm(org.eclipse.swt.widgets.Shell parent,
BookmarkItem bookmarkItem,
int bookmarkSetDirection)
|
BookmarkItemForm(org.eclipse.swt.widgets.Shell parent,
boolean isFolder,
int bookmarkSetDirection)
Makes a new instance of this class. |
BookmarkItemForm(org.eclipse.swt.widgets.Shell parent,
java.util.List locationList,
java.lang.String bookmarkName,
int bookmarkSetDirection)
Makes a new instance of this class, as a bookmark item (not folder). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FORM_ID
public static final java.lang.String FORM_ID
- See Also:
- Constant Field Values
BookmarkItemForm
public BookmarkItemForm(org.eclipse.swt.widgets.Shell parent,
BookmarkItem bookmarkItem,
int bookmarkSetDirection)
BookmarkItemForm
public BookmarkItemForm(org.eclipse.swt.widgets.Shell parent,
boolean isFolder,
int bookmarkSetDirection)
- Makes a new instance of this class. The underling
BookmarkItem
is also created, but its ID is
not assigned.
- Parameters:
parent
- the parent shellisFolder
- bookmarkSetDirection
-
BookmarkItemForm
public BookmarkItemForm(org.eclipse.swt.widgets.Shell parent,
java.util.List locationList,
java.lang.String bookmarkName,
int bookmarkSetDirection)
- Makes a new instance of this class, as a bookmark item (not folder). It uses locationList to initialize
IQuranLocation
s this item refers to. The underling BookmarkItem
is also created, but its
ID is not assigned.
This constructor is used for stand-alone bookmarking.
- Parameters:
parent
- the parent shelllocationList
- a list of IQuranLocation
s to be set as default locations to this bookmark
itembookmarkName
- default bookmark name (title). If this value is null, localized value for the key
NEW_BOOKMARK is used.bookmarkSetDirection
-
updateBookmarkItem
public void updateBookmarkItem()
getBookmarkItem
public BookmarkItem getBookmarkItem()
open
public boolean open(boolean readOnly)
- Parameters:
readOnly
- disables OK button if true
.
- Returns:
true
if ok pressed, false
otherwise.
getShell
public org.eclipse.swt.widgets.Shell getShell()
getDisplay
public org.eclipse.swt.widgets.Display getDisplay()