|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.crosswire.common.swing.desktop.TabbedPanePanel
org.crosswire.bibledesktop.book.BibleViewPane
public class BibleViewPane
A BibleViewPane consists of three areas for looking up passages, for navigating and manipulating parts of passage and for viewing a passage.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormNested Class Summary | |
---|---|
(package private) static class |
BibleViewPane.CustomFileFilter
Filter out verse lists |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private static String |
BOOKMARK_DIR
|
private JFileChooser |
chooser
|
private static String |
EXTENSION
|
private EventListenerList |
listeners
|
protected static org.slf4j.Logger |
log
The log stream |
protected SplitBookDataDisplay |
pnlPassg
|
private DisplaySelectPane |
pnlSelect
|
protected File |
saved
|
private static long |
serialVersionUID
Serialization ID |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
BibleViewPane(boolean showSidebar)
Simple ctor |
Method Summary | |
---|---|
void |
addTitleChangedListener(TitleChangedListener li)
Add a TitleChangedEvent listener |
void |
clear()
Make it as though no-one is using this view |
protected void |
fireTitleChanged(TitleChangedEvent ev)
Listen for changes to the title |
Key |
getKey()
Accessor for the current passage |
SplitBookDataDisplay |
getPassagePane()
Accessor for the SplitBookDataDisplay |
DisplaySelectPane |
getSelectPane()
Accessor for the DisplaySelectPane |
String |
getTitle()
How has this view been saved |
private void |
init()
Setup the GUI |
boolean |
isClear()
Has anyone started using this view |
boolean |
maySave()
Returns true if there is something to save. |
void |
open()
Open a saved verse list form disk |
private boolean |
querySaveFile()
Ask the user where to store the data |
private void |
readObject(ObjectInputStream is)
Serialization support. |
void |
removeTitleChangedListener(TitleChangedListener li)
Remove a TitleChangedEvent listener |
void |
save()
Save the view to disk. |
void |
saveAs()
Save the view to disk, but ask the user where to save it first. |
private void |
saveKey(Key key)
Do the real work of saving to a file |
void |
setKey(Key key)
Accessor for the current passage |
void |
titleChanged(TitleChangedEvent ev)
A Select pane is telling us that it has changed, and we might want to update the BibleViewPane and the AbstractViewLayout to reflect any potentially new titles |
Methods inherited from class org.crosswire.common.swing.desktop.TabbedPanePanel |
---|
getInsets |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected File saved
private transient EventListenerList listeners
private DisplaySelectPane pnlSelect
protected SplitBookDataDisplay pnlPassg
private JFileChooser chooser
private static final String BOOKMARK_DIR
private static final String EXTENSION
protected static final org.slf4j.Logger log
private static final long serialVersionUID
Constructor Detail |
---|
public BibleViewPane(boolean showSidebar)
Method Detail |
---|
private void init()
public void clear()
clear
in interface Clearable
public boolean isClear()
isClear
in interface Clearable
public String getTitle()
getTitle
in interface Titleable
public void save() throws IOException
IOException
public void saveAs() throws IOException
IOException
private void saveKey(Key key) throws IOException
key
- The key to save
IOException
- If a write error happenspublic boolean maySave()
public void open() throws NoSuchKeyException, IOException
IOException
NoSuchVerseException
NoSuchKeyException
private boolean querySaveFile()
public Key getKey()
public final void setKey(Key key)
public SplitBookDataDisplay getPassagePane()
public DisplaySelectPane getSelectPane()
public void addTitleChangedListener(TitleChangedListener li)
addTitleChangedListener
in interface Titleable
public void removeTitleChangedListener(TitleChangedListener li)
removeTitleChangedListener
in interface Titleable
protected void fireTitleChanged(TitleChangedEvent ev)
ev
- the event to throwpublic void titleChanged(TitleChangedEvent ev)
TitleChangedListener
titleChanged
in interface TitleChangedListener
private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException
is
-
IOException
ClassNotFoundException
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |