|
||||||||||
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.AdvancedSearchPane
public class AdvancedSearchPane
An advanced search dialog.
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 ActionFactory |
actions
The ActionFactory holding the actions used by this Component. |
protected boolean |
bailout
If escape was pressed we don't want to update the parent |
private JButton |
btnGo
|
private JButton |
btnRestrict
|
private JComboBox |
cboPresets
|
private JCheckBox |
chkRank
|
private JCheckBox |
chkRestrict
|
private JCheckBox |
chkSummary
|
protected JDialog |
dlgMain
|
private PassageSelectionPane |
dlgSelect
|
private static String |
DONE
|
private boolean |
editingRestrict
If we are editing the restrict text box, ignore preset updates |
private static String |
EXCLUDES
|
private static String |
HEAD_BASE
|
private static String |
HEAD_RANK
|
private static String |
HEAD_RESTRICT
|
private static String |
HEAD_SUMMARY
|
private static String |
INCLUDES
|
private JLabel |
lblExcludes
|
private JLabel |
lblHeading
|
private JLabel |
lblIncludes
|
private JLabel |
lblPhrase
|
private JLabel |
lblPresets
|
private JLabel |
lblRank
|
private JLabel |
lblRestrict
|
private JLabel |
lblSpell
|
private JLabel |
lblStartsWith
|
private JLabel |
lblSummary
|
private static String |
PHRASE
|
private static String |
PRESET_END
|
private static String |
PRESET_START
|
private String[] |
presets
The entries in the restrictions preset |
private static String |
PRESETS
|
private static String |
RANK
|
private static String |
RESTRICT
|
private static String |
RESTRICT_SELECT
|
private JScrollPane |
scrSummary
|
private static long |
serialVersionUID
Serialization ID |
private JSlider |
sliderRank
|
private static String |
SPACE
In our parsing we use space quite a lot and this ensures there is only one and that we don't have lots of NON-NLS comments everywhere |
private static String |
SPELL
|
private static String |
STARTS_WITH
|
private static String |
SUMMARY
|
private JTextField |
txtExcludes
|
private JTextField |
txtIncludes
|
private JTextField |
txtPhrase
|
private JTextField |
txtRestrict
|
private JTextField |
txtSpell
|
private JTextField |
txtStartsWith
|
private JTextArea |
txtSummary
|
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 | |
---|---|
AdvancedSearchPane()
This is the default constructor |
Method Summary | |
---|---|
void |
changedUpdate(DocumentEvent ev)
|
void |
doDone()
Someone clicked on OK |
void |
doHeadOriginal()
Someone clicked the original strongs toggle button |
void |
doHeadRank()
Someone clicked the rank check button |
void |
doHeadRestrict()
Someone clicked the restrict toggle button |
void |
doHeadSummary()
Someone clicked the restrict toggle button |
void |
doHeadTime()
Someone clicked the original strongs toggle button |
void |
doRestrictSelect()
|
private void |
initialize()
This method initializes this GUI |
void |
insertUpdate(DocumentEvent ev)
|
boolean |
isRanked()
|
void |
removeUpdate(DocumentEvent ev)
|
void |
setLabelRank(int val)
|
String |
showInDialog(Component parent,
String title,
boolean modal,
String search)
Open us in a new (optionally modal) dialog window |
void |
updatePreset()
|
private void |
updateSearchString()
Regenerate the search string from the input boxes |
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 DONE
private static final String PHRASE
private static final String RESTRICT
private static final String HEAD_RANK
private static final String RANK
private static final String HEAD_RESTRICT
private static final String HEAD_BASE
private static final String INCLUDES
private static final String EXCLUDES
private static final String SPELL
private static final String STARTS_WITH
private static final String PRESETS
private static final String RESTRICT_SELECT
private static final String HEAD_SUMMARY
private static final String SUMMARY
private static final String SPACE
private static final String PRESET_END
private static final String PRESET_START
protected boolean bailout
private transient ActionFactory actions
private String[] presets
private boolean editingRestrict
private PassageSelectionPane dlgSelect
private JLabel lblPhrase
private JLabel lblIncludes
private JTextField txtIncludes
private JTextField txtPhrase
private JLabel lblExcludes
private JTextField txtExcludes
private JLabel lblSpell
private JTextField txtSpell
private JLabel lblStartsWith
private JTextField txtStartsWith
private JLabel lblHeading
private JCheckBox chkRank
private JLabel lblRank
private JSlider sliderRank
private JCheckBox chkRestrict
private JLabel lblRestrict
private JTextField txtRestrict
private JButton btnRestrict
private JButton btnGo
private JLabel lblPresets
private JComboBox cboPresets
protected JDialog dlgMain
private JLabel lblSummary
private JCheckBox chkSummary
private JTextArea txtSummary
private JScrollPane scrSummary
private static final long serialVersionUID
Constructor Detail |
---|
public AdvancedSearchPane()
Method Detail |
---|
private void initialize()
public String showInDialog(Component parent, String title, boolean modal, String search)
parent
- The component to which to attach the new dialogtitle
- The title for the new dialogpublic boolean isRanked()
public final void setLabelRank(int val)
public void doHeadRank()
public void doHeadRestrict()
public void doHeadSummary()
public void doHeadOriginal()
public void doHeadTime()
public void doRestrictSelect()
public void doDone()
public final void updatePreset()
private void updateSearchString()
public void changedUpdate(DocumentEvent ev)
changedUpdate
in interface DocumentListener
public void insertUpdate(DocumentEvent ev)
insertUpdate
in interface DocumentListener
public void removeUpdate(DocumentEvent ev)
removeUpdate
in interface DocumentListener
|
Copyright ยจ 2003-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |