|
||||||||||
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.passage.KeySidebar
public class KeySidebar
A list view of a key range list.
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.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 Action |
actBlur1
|
private Action |
actBlur5
|
private Action |
actDelete
|
private static String |
BLUR1
|
private static String |
BLUR5
|
private Book |
book
The book who's keys we are looking at |
private static String |
DELETE_SELECTED
|
private Key |
key
The whole key that we are viewing |
private List |
keyChangeListeners
The listener for KeyChangeEvents |
private JList |
list
|
private PassageListModel |
model
|
private Key |
partial
The key that is selected |
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 | |
---|---|
KeySidebar(Book book)
Initialize the SplitBookDataDisplay |
Method Summary | |
---|---|
void |
addKeyChangeListener(KeyChangeListener listener)
Add a command listener |
void |
bookChosen(DisplaySelectEvent ev)
This method is called to indicate that a command has been made. |
private void |
doBlur(int amount)
Blur (expand) the current key action by amount verses on each side. |
void |
doBlur1()
Blur (expand) the current passage action by one verse on each side. |
void |
doBlur5()
Blur (expand) the current key by five verses on each side. |
void |
doDeleteSelected()
Remove the selected verses out of this KeySidebar. |
protected void |
fireKeyChanged(KeyChangeEvent ev)
Inform the command keyChangeListeners |
Key |
getKey()
|
private void |
init()
Create the GUI |
void |
keyChanged(KeyChangeEvent ev)
This method is called to indicate that a key has been changed. |
void |
passageSelected(DisplaySelectEvent ev)
This method is called to indicate that a command has been made. |
void |
removeKeyChangeListener(KeyChangeListener listener)
Remove a command listener |
protected void |
selection()
Someone clicked on a value in the list |
private void |
setActive()
Make sure the correct buttons are made active |
private void |
setKey(Key newKey)
|
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 BLUR1
private static final String BLUR5
private static final String DELETE_SELECTED
private Key key
private Key partial
private Book book
private transient List keyChangeListeners
private JList list
private PassageListModel model
private Action actDelete
private Action actBlur1
private Action actBlur5
private static final long serialVersionUID
Constructor Detail |
---|
public KeySidebar(Book book)
Method Detail |
---|
private void init()
public void doBlur1()
public void doBlur5()
private void doBlur(int amount)
amount
- The amount of blurringpublic void doDeleteSelected()
public Key getKey()
private void setKey(Key newKey)
protected void selection()
private void setActive()
public void passageSelected(DisplaySelectEvent ev)
DisplaySelectListener
passageSelected
in interface DisplaySelectListener
ev
- Describes the changepublic void bookChosen(DisplaySelectEvent ev)
DisplaySelectListener
bookChosen
in interface DisplaySelectListener
ev
- Describes the changepublic void keyChanged(KeyChangeEvent ev)
KeyChangeListener
keyChanged
in interface KeyChangeListener
ev
- Describes the changepublic void addKeyChangeListener(KeyChangeListener listener)
public void removeKeyChangeListener(KeyChangeListener listener)
protected void fireKeyChanged(KeyChangeEvent ev)
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |