|
||||||||||
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.
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 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 |
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_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 |
lblRestrict
|
private JLabel |
lblSummary
|
private static Logger |
log
The log stream |
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 |
RESTRICT
|
private static String |
RESTRICT_SELECT
|
private JScrollPane |
scrSummary
|
private static long |
serialVersionUID
Serialization ID |
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 |
SUMMARY
|
private JTextField |
txtExcludes
|
private JTextField |
txtIncludes
|
private JTextField |
txtPhrase
|
private JTextField |
txtRestrict
|
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 |
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)
|
static void |
main(String[] args)
Quick test method |
void |
removeUpdate(DocumentEvent ev)
|
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_RESTRICT
private static final String HEAD_BASE
private static final String INCLUDES
private static final String EXCLUDES
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 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 lblHeading
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 Logger log
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 void doHeadRestrict()
public void doHeadSummary()
public void doHeadOriginal()
public void doHeadTime()
public void doRestrictSelect()
public void doDone()
public 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
public static void main(String[] args)
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |