|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.moyoman.client.reference.debug.DebugSelectorPane
Provides a pane with selectors for different debug panels.
Nested Class Summary | |
(package private) class |
DebugSelectorPane.SelectorPanel
Provides a panel for the selector user interfaces. |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private JPanel |
_contentArea
Debug panel container. |
private Map |
_debugPanels
Map of debug type to a map of debug panels. |
private String |
_module
The module. |
private DebugSelectorPane.SelectorPanel |
_selectorPanel
Panel which holds the radio button selectors. |
Fields inherited from class javax.swing.JPanel |
|
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.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface org.moyoman.client.reference.util.IGUIConstants |
DEBUG, DIRTY_PROPERTY, GAP, MARGIN, TRANSPARENT_COLOR |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
protected |
DebugSelectorPane()
Construct this panel. |
Method Summary | |
protected void |
add(DebugType debugType,
String header,
DebugPanel panel)
Add a new selector for the given debug type if one does not already exist. |
void |
clear()
Clear the data from this panel. |
protected DebugPanel |
create(String module,
DebugType debugType,
String header)
Create a debug panel for the given module and debug type. |
protected DebugPanel |
get(DebugType debugType,
String header)
Return the debug panels corresponding to the given type and module. |
protected String |
getKey(DebugType debugType,
String header)
Return a key for storing the debug panel inside the CardLayout . |
String |
getModule()
Return the module. |
boolean |
isEnabled()
Return the enabled state. |
void |
setLanguageName(String languageName)
Set the language name. |
void |
setModule(String module)
Set the module. |
void |
updateDebugPanels(List state,
boolean createNew,
Debug debugInfo)
Update. |
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 JPanel _contentArea
private Map _debugPanels
private DebugSelectorPane.SelectorPanel _selectorPanel
private String _module
Constructor Detail |
protected DebugSelectorPane()
Method Detail |
public boolean isEnabled()
isEnabled
in class Component
public void setLanguageName(String languageName)
public void setModule(String module)
public String getModule()
public void clear()
public void updateDebugPanels(List state, boolean createNew, Debug debugInfo)
state
- Current board state.createNew
- Flag indicating a new panel should be created if there
isn't already one.debugInfo
- Debug information.protected String getKey(DebugType debugType, String header)
CardLayout
.
protected void add(DebugType debugType, String header, DebugPanel panel)
protected DebugPanel create(String module, DebugType debugType, String header)
protected DebugPanel get(DebugType debugType, String header)
DebugPanel
s, guaranteed not to be null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |