|
||||||||||
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.bibledesktop.book.PassageSelectionPane
public class PassageSelectionPane
A JPanel (or dialog) that presents a interactive GUI way to select passages.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormNested Class Summary | |
---|---|
(package private) class |
PassageSelectionPane.CustomDocumentEvent
Update the list whenever the textbox changes |
(package private) class |
PassageSelectionPane.CustomPassageListener
To update the textbox when the passage changes |
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private ActionFactory |
actions
The ActionFactory holding the actions used by this Component. |
private static String |
ADD
|
private static String |
BAD_ICON
|
protected boolean |
bailout
If escape was pressed we don't want to update the parent |
private static String |
BIBLE_TREE
|
private boolean |
changing
Prevent us getting in an event cascade loop |
private static String |
DELETE
|
protected JDialog |
dlgMain
|
private static String |
DONE
|
private static String |
GOOD_ICON
|
private Icon |
icoBad
|
private Icon |
icoGood
|
protected KeyFactory |
keyf
To convert strings into Biblical keys |
private JLabel |
lblMessage
|
private JList |
lstSel
|
private RangeListModel |
model
|
private Passage |
ref
The passage we are editing |
private static String |
SELECTED_VERSES
|
private static long |
serialVersionUID
Serialization ID |
private JTree |
treAll
|
private JTextField |
txtDisplay
|
private static String |
VERSES
|
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 | |
---|---|
PassageSelectionPane()
Constructor for PassageSelectionPane. |
Method Summary | |
---|---|
protected void |
copyListToText()
Called whenever the passage changes to update the text box. |
protected void |
copyTextToList()
Called whenever the text box changes to update the list |
private Component |
createDisplayPanel()
|
private Component |
createMessageLabel()
|
private Component |
createScrolledList(JLabel label)
|
private Component |
createScrolledTree(JLabel label)
|
void |
doAddVerse()
Add from the tree to the list |
void |
doDeleteVerse()
Remove the selected items from the list |
void |
doDone()
Someone clicked on OK |
private void |
init()
GUI init |
(package private) void |
listSelected()
List selection has changed |
private void |
readObject(ObjectInputStream is)
Serialization support. |
private void |
setValidPassage(boolean valid)
Update the UI when the validity of the passage changes |
String |
showInDialog(Component parent,
String title,
boolean modal,
String refstr)
Open us in a new (optionally modal) dialog window |
(package private) void |
treeSelected()
The tree selection has changed |
private void |
updateMessage(NoSuchKeyException ex)
Write out an error message to the message label |
private void |
updateMessageSummary()
Write out an summary message to the message label |
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 |
---|
private static final String BIBLE_TREE
private static final String ADD
private static final String DELETE
private static final String SELECTED_VERSES
private static final String VERSES
private static final String DONE
private static final String GOOD_ICON
private static final String BAD_ICON
protected transient KeyFactory keyf
protected boolean bailout
private boolean changing
private Passage ref
private transient ActionFactory actions
private transient Icon icoGood
private transient Icon icoBad
private JTree treAll
private JList lstSel
private RangeListModel model
private JTextField txtDisplay
private JLabel lblMessage
protected JDialog dlgMain
private static final long serialVersionUID
Constructor Detail |
---|
public PassageSelectionPane()
Method Detail |
---|
private void init()
private Component createScrolledTree(JLabel label)
private Component createScrolledList(JLabel label)
private Component createDisplayPanel()
private Component createMessageLabel()
protected void copyListToText()
protected void copyTextToList()
private void setValidPassage(boolean valid)
valid
- private void updateMessage(NoSuchKeyException ex)
ex
- private void updateMessageSummary()
public String showInDialog(Component parent, String title, boolean modal, String refstr)
parent
- The component to which to attach the new dialogtitle
- The title for the new dialogmodal
- public void doAddVerse()
public void doDeleteVerse()
public void doDone()
final void treeSelected()
final void listSelected()
private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException
is
-
IOException
ClassNotFoundException
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |