public class WidgetBrowser
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private javax.swing.JCheckBox |
legacyCB
Legacy check-box.
|
private javax.swing.JCheckBox |
noDrawCB
No draw check-box.
|
private static java.util.Set<Widget<?>> |
noDrawWidgets
Set of widgets that must not draw.
|
private ContainerTree |
tree
The tree component for displaying widget hierarchy.
|
private javax.swing.JFrame |
windowFrame
The main window.
|
| Constructor and Description |
|---|
WidgetBrowser(Container<?> container,
java.awt.event.ActionListener actionListener)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
doDrawWidget(Widget widget)
Returns
true if the widget should draw, false otherwise. |
boolean |
isHighlighted(Widget<?> widget)
Returns
true is the supplied widget is selected to be highlighted. |
void |
show()
Shows the main window.
|
private void |
updateNoDrawCheckBox()
Updates no draw checkbox state.
|
private static java.util.Set<Widget<?>> noDrawWidgets
private javax.swing.JFrame windowFrame
private ContainerTree tree
private javax.swing.JCheckBox noDrawCB
private javax.swing.JCheckBox legacyCB
public static boolean doDrawWidget(Widget widget)
true if the widget should draw, false otherwise.widget - Widget to check.public void show()
public boolean isHighlighted(Widget<?> widget)
true is the supplied widget is selected to be highlighted.widget - A Widget reference.true if the supplied widget is selected to be highlighted,
false otherwise.private void updateNoDrawCheckBox()