|
||||||||||
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.
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence
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 |
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 |
HELP
|
(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 |
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 |
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 |
doExit()
Exits the VM. |
void |
doNotes(ActionEvent ev)
|
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(ActionEvent ev)
|
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 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 TOOLTIP_TOGGLE
static final String STATUS_TOGGLE
static final String SIDEBAR_TOGGLE
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 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 doStrongs(ActionEvent ev)
public void doVLine(ActionEvent ev)
public void doVNum(ActionEvent ev)
public void doTinyVNum(ActionEvent ev)
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)
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |