|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.bibledesktop.desktop.DesktopActions
public class DesktopActions
DesktopAction is nothing more than a holder of the behavior of the Desktop. It could easily be member methods in that class. It is here simply to simplify the Desktop class and minimize maintenance cost. Previously each of the "do" methods was a separate class.
for license details.
The copyright to this program is held by it's authors.
Nested Class Summary | |
---|---|
private static class |
DesktopActions.ShowSideBarVisitor
|
Field Summary | |
---|---|
(package private) static String |
ABOUT
|
private ActionFactory |
actions
The factory for actions that this class works with |
private AboutPane |
atp
The About window |
(package private) static String |
BACK
|
(package private) static String |
BOOKS
|
(package private) static String |
CONTENTS
|
(package private) static String |
COPY
|
protected Desktop |
desktop
The desktop on which these actions work |
(package private) static String |
EDIT
|
(package private) static String |
EXIT
|
(package private) static String |
FILE
|
(package private) static String |
FORWARD
|
(package private) static String |
GO
|
(package private) static String |
HELP
|
(package private) static String |
JOURNAL_TOGGLE
|
(package private) static String |
OPEN
|
(package private) static String |
OPTIONS
|
(package private) static String |
SAVE
|
(package private) static String |
SAVE_ALL
|
(package private) static String |
SAVE_AS
|
(package private) static String |
SIDEBAR_TOGGLE
|
private SitesPane |
sites
The Book installer window |
(package private) static String |
STATUS_TOGGLE
|
(package private) static String |
TOOLS
|
(package private) static String |
TOOLTIP_TOGGLE
|
(package private) static String |
VERSE
|
(package private) static String |
VIEW
|
(package private) static String |
VIEW_SOURCE
|
Constructor Summary | |
---|---|
DesktopActions(Desktop desktop)
Create the actions for the desktop |
Method Summary | |
---|---|
void |
doAbout()
For opening the About window |
void |
doBack()
Go to previous passage. |
void |
doBCVNum()
|
void |
doBooks()
Opens the Book installer window (aka a SitesPane) |
void |
doContents()
For opening a help file. |
void |
doCopy()
Copy the selected text from the "active" display area to the clipboard. |
void |
doCVNum()
|
void |
doExit()
Exits the VM. |
void |
doForward()
Go to next passage. |
void |
doJournalToggle(ActionEvent ev)
Show web journal or not. |
void |
doMorph(ActionEvent ev)
|
void |
doNotes(ActionEvent ev)
|
void |
doNoVNum()
|
void |
doOpen()
Open a new passage window from a file. |
void |
doOptions()
Opens the Options window |
void |
doSave()
Save the current passage window. |
void |
doSaveAll()
Save all the passage windows. |
void |
doSaveAs()
Save the current passage window under a new name. |
void |
doSidebarToggle(ActionEvent ev)
Show large or small tool bar icons. |
void |
doStatusToggle(ActionEvent ev)
Show large or small tool bar icons. |
void |
doStrongs(ActionEvent ev)
|
void |
doTinyVNum(ActionEvent ev)
|
void |
doToolTipToggle(ActionEvent ev)
Show large or small tool bar icons. |
void |
doViewSource()
View the HTML as interpreted by the current window. |
void |
doVLine(ActionEvent ev)
|
void |
doVNum()
|
void |
doXRef(ActionEvent ev)
|
Action |
getAction(String key)
Get a particular action by internal name |
Desktop |
getDesktop()
|
SitesPane |
getSites()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final String FILE
static final String EDIT
static final String GO
static final String VIEW
static final String TOOLS
static final String HELP
static final String OPEN
static final String SAVE
static final String SAVE_AS
static final String SAVE_ALL
static final String EXIT
static final String COPY
static final String BACK
static final String FORWARD
static final String TOOLTIP_TOGGLE
static final String STATUS_TOGGLE
static final String SIDEBAR_TOGGLE
static final String JOURNAL_TOGGLE
static final String VERSE
static final String VIEW_SOURCE
static final String BOOKS
static final String OPTIONS
static final String CONTENTS
static final String ABOUT
protected Desktop desktop
private transient ActionFactory actions
private AboutPane atp
private SitesPane sites
Constructor Detail |
---|
public DesktopActions(Desktop desktop)
desktop
- the desktop for which these actions applyMethod Detail |
---|
public Action getAction(String key)
key
- the internal name for the action
public Desktop getDesktop()
public SitesPane getSites()
public void doOpen()
public void doSave()
public void doSaveAs()
public void doSaveAll()
public void doExit()
public void doCopy()
public void doBack()
public void doForward()
public void doStrongs(ActionEvent ev)
public void doMorph(ActionEvent ev)
public void doVLine(ActionEvent ev)
public void doVNum()
public void doTinyVNum(ActionEvent ev)
public void doBCVNum()
public void doCVNum()
public void doNoVNum()
public void doNotes(ActionEvent ev)
public void doXRef(ActionEvent ev)
public void doViewSource()
public void doBooks()
public void doOptions()
public void doContents()
public void doAbout()
public void doToolTipToggle(ActionEvent ev)
public void doStatusToggle(ActionEvent ev)
public void doSidebarToggle(ActionEvent ev)
public void doJournalToggle(ActionEvent ev)
|
Copyright ? 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |