|
||||||||||
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.
for license details.
The copyright to this program is held by it's authors.
,
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 RangeListModel |
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. |
(package private) 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 |
(package private) 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 transient Book book
private transient List keyChangeListeners
private JList list
private RangeListModel 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)
final 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)
final void fireKeyChanged(KeyChangeEvent ev)
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |