|
||||||||||
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
dods.clients.importwizard.GCMD.SearchPanel
public class SearchPanel
This class displays a search panel and has functions to turn the values entered in the search panel into a GCMD search string.
Nested 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 |
---|
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 | |
---|---|
SearchPanel()
Create a new SearchPanel . |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Catch events from the GUI components and pass them on to the action listeners. |
void |
addActionListener(ActionListener a)
Add an action listener to the panel. |
String |
getSearchString()
Returns a GCMD search string based on the input in the text field, the search category, and the match type. |
void |
initGUI()
Initialize the GUI components. |
boolean |
isEnabled()
Returns whether or not the panel is enabled. |
void |
setActionCommands(String enabledCommand,
String textCommand)
Set the action commands. |
void |
setEnabled(boolean enable)
Enable or disable the panel based on enable . |
void |
toggleEnabled()
Toggle whether the panel is enabled or not |
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 |
Constructor Detail |
---|
public SearchPanel()
SearchPanel
.
Method Detail |
---|
public void initGUI()
public boolean isEnabled()
isEnabled
in class Component
public void setEnabled(boolean enable)
enable
.
setEnabled
in class JComponent
enable
- whether the panel is on or off.public void toggleEnabled()
public void addActionListener(ActionListener a)
a
- The ActionListener
.public void setActionCommands(String enabledCommand, String textCommand)
enabledCommand
- The command used when the check box is clicked.textCommand
- The command used when the user hits enter inside
the checkbox.public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- The event.public String getSearchString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |