|
|||||||||
| 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
verinec.importer.analysis.sniffer.StartSniffer.ConfigPanel.ConfigCard
public abstract class StartSniffer.ConfigPanel.ConfigCard
Base class for configuration cards. Each interface has its card to be configured and one card is used for global configuration. They are controlled by the javax.swing.CardLayout and a JComboBox to choose the active card.
| 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 | |
|---|---|
protected JCheckBox |
chkActive
Checkbox to decide if this card is active. |
protected JPanel |
content
Content panel. |
(package private) JComboBox |
hoursBox
|
(package private) JComboBox |
minBox
|
(package private) ButtonGroup |
modeSelection
|
protected JRadioButton |
packetButton
Button to choose mode |
(package private) JTextField |
packetField
|
(package private) JComboBox |
secBox
|
protected JRadioButton |
simButton
Button to choose mode |
protected JRadioButton |
timeButton
Button to choose mode |
| 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 | |
|---|---|
StartSniffer.ConfigPanel.ConfigCard()
Common constructor for a config card. |
|
| Method Summary | |
|---|---|
protected abstract JCheckBox |
getActivator()
Factory method to create the enable checkbox. |
int |
getCount()
Get the number for capturing. |
int |
getMode()
The current mode this card is set to. |
boolean |
isActive()
Test whether this card is set enabled or not. |
boolean |
isConfigValid()
Check whether configuration represented by this panel is valid. |
void |
setCount(int c)
Set the count for this card. |
void |
setMode(int mode)
Set the mode for this card. |
| 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 |
|---|
protected JPanel content
protected JRadioButton packetButton
protected JRadioButton timeButton
protected JRadioButton simButton
protected JCheckBox chkActive
ButtonGroup modeSelection
JComboBox secBox
JComboBox minBox
JComboBox hoursBox
JTextField packetField
| Constructor Detail |
|---|
public StartSniffer.ConfigPanel.ConfigCard()
getActivator() internally.
| Method Detail |
|---|
public boolean isActive()
public int getMode()
public int getCount()
StartSniffer.ConfigPanel.SIMULATION_PACKET_COUNT is returned.
protected abstract JCheckBox getActivator()
public void setMode(int mode)
mode - One of the constants PACKETS, TIME or SIMULATE.public void setCount(int c)
c - The count, interpreted according to the mode.public boolean isConfigValid()
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||