|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.crosswire.bibledesktop.desktop.Desktop
public class Desktop
A container for various tools, particularly the BibleGenerator and the Tester. These tools are generally only of use to developers, and not to end users.
2 Things to think about, if you change the LaF when you have run some tests already, then the window can grow quite a lot. Also do we want to disable the Exit button if work is going on?
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
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected DesktopActions |
actions
|
private StatusBar |
barStatus
|
private static String |
BIBLE_PROTOCOL
|
private static String |
COMMENTARY_PROTOCOL
|
private Config |
config
The configuration engine |
private static String |
CONFIG_KEY
|
private static String |
CONV_KEY
|
private JPanel |
corePanel
|
private static String |
CSWING_KEY
|
private static Dimension |
defaultSize
The default dimension for this frame |
private static String |
DESKTOP_KEY
|
private static String |
DICTIONARY_PROTOCOL
|
private static String |
EMPTY_STRING
|
private static String |
GREEK_DEF_PROTOCOL
|
private static String |
GREEK_MORPH_PROTOCOL
|
private boolean |
hasRefBooks
|
private static String |
HEBREW_DEF_PROTOCOL
|
private static String |
HEBREW_MORPH_PROTOCOL
|
private static ImageIcon |
ICON_APP
The application icon |
protected static Logger |
log
The log stream |
private ToolBar |
pnlTbar
|
private DictionaryPane |
reference
|
private static long |
serialVersionUID
Serialization ID |
private static String |
SPLASH_PROPS
|
private JSplitPane |
sptBooks
|
private ViewManager |
views
|
Fields inherited from class javax.swing.JFrame |
---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Desktop()
Construct a Desktop. |
Method Summary | |
---|---|
void |
activateURL(URLEvent ev)
This method is called to indicate that an URL can be processed. |
private void |
createComponents()
Call all the constructors |
Component |
createView()
Constructs an application appropriate view for the desktop. |
private void |
debug()
Sometimes we need to make some changes to debug the GUI. |
void |
enterURL(URLEvent ev)
This method is called to indicate that the mouse has entered the URL. |
protected void |
fillChoiceFactory()
Setup the choices so that the options dialog knows what there is to select from. |
void |
generateConfig()
Load the config.xml file |
Config |
getConfig()
|
static Dimension |
getDefaultSize()
|
static int |
getMaxHeight()
|
static int |
getMaxWidth()
|
ViewManager |
getViews()
|
private void |
init()
Initialize the GUI, and display it. |
private void |
jump(Book book,
String data)
Open the requested book and go to the requested key. |
void |
leaveURL(URLEvent ev)
This method is called to indicate that the mouse has left the URL. |
static void |
main(String[] args)
Central start point. |
protected void |
refreshBooks()
Setup the book choices |
void |
setCloseEnabled(boolean enabled)
Are the close buttons enabled? |
static void |
setDefaultSize(Dimension newDefaultSize)
|
static void |
setMaxHeight(int maxHeight)
|
static void |
setMaxWidth(int maxWidth)
|
void |
showStatusBar(boolean show)
Show or hide the status bar. |
void |
viewRemoved(ViewEvent event)
|
Methods inherited from class java.awt.Frame |
---|
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
private boolean hasRefBooks
private static final String SPLASH_PROPS
private static final String BIBLE_PROTOCOL
private static final String DICTIONARY_PROTOCOL
private static final String GREEK_DEF_PROTOCOL
private static final String HEBREW_DEF_PROTOCOL
private static final String GREEK_MORPH_PROTOCOL
private static final String HEBREW_MORPH_PROTOCOL
private static final String COMMENTARY_PROTOCOL
private static final String EMPTY_STRING
private static final String CONFIG_KEY
private static final String DESKTOP_KEY
private static final String CONV_KEY
private static final String CSWING_KEY
private Config config
private static Dimension defaultSize
protected static final Logger log
protected DesktopActions actions
private static final ImageIcon ICON_APP
private ViewManager views
private JPanel corePanel
private ToolBar pnlTbar
private StatusBar barStatus
private DictionaryPane reference
private JSplitPane sptBooks
private static final long serialVersionUID
Constructor Detail |
---|
public Desktop()
Method Detail |
---|
public static void main(String[] args)
args
- The command line argumentsprivate void debug()
private void createComponents()
private void init()
public ViewManager getViews()
public Component createView()
ViewGenerator
createView
in interface ViewGenerator
public void viewRemoved(ViewEvent event)
viewRemoved
in interface ViewEventListener
public void activateURL(URLEvent ev)
URLEventListener
activateURL
in interface URLEventListener
ev
- Describes the URLprivate void jump(Book book, String data)
book
- The book to usedata
- The key to findpublic void enterURL(URLEvent ev)
URLEventListener
enterURL
in interface URLEventListener
ev
- Describes the URLpublic void leaveURL(URLEvent ev)
URLEventListener
leaveURL
in interface URLEventListener
ev
- Describes the URLpublic void showStatusBar(boolean show)
show
- booleanpublic void setCloseEnabled(boolean enabled)
enabled
- The enabled statepublic final void generateConfig()
public static void setMaxHeight(int maxHeight)
maxHeight
- The maxHeight to set.public static int getMaxHeight()
public static int getMaxWidth()
public static void setMaxWidth(int maxWidth)
maxWidth
- The maxWidth to set.public static Dimension getDefaultSize()
public static void setDefaultSize(Dimension newDefaultSize)
newDefaultSize
- The defaultSize to set.protected void fillChoiceFactory()
protected final void refreshBooks()
public Config getConfig()
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |