|
|||||||||
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 abbot.editor.ComponentBrowser
public class ComponentBrowser
Browse an existing component hierarchy. Thanks to the JFCUnit guys for the basis for this code.
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 | |
---|---|
ComponentBrowser(Resolver r,
Hierarchy h)
Default constructor |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Generic action handler for buttons. |
void |
addSelectionListener(ComponentBrowserListener cbl)
|
void |
enableAssertSampleButtons()
|
protected void |
firePropertyCheck(boolean sample)
|
protected void |
fireSelectionChanged()
|
Component |
getSelectedComponent()
Returns which component is currently selected. |
ComponentReference |
getSelectedReference()
Returns the currently selected reference. |
boolean |
isCompactDisplay()
Returns whether the current display mode is compact. |
boolean |
isComponentSelected()
Utility method showing whether a component node has been selected or not. |
void |
referenceListSelectionChanged(ListSelectionEvent e)
Called when a the reference list selection changes, and when the property list changes. |
void |
referencesChanged()
To be invoked when an underlying component reference has changed. |
void |
refresh()
|
void |
removeSelectionListener(ComponentBrowserListener cbl)
|
void |
setCompactDisplay(boolean compact)
Sets whether uninteresting components are elided from the display. |
void |
setEnabled(boolean state)
When re-enabled, perform a reload of the tree. |
void |
setResolver(Resolver resolver)
Set the resolver on which the references list is based. |
void |
setSelectedComponent(Component comp)
Select the given component (and make it visible) in the current view. |
void |
setSelectedReference(ComponentReference ref)
Select the given reference in the current view. |
boolean |
showingHierarchy()
|
void |
tabChanged(ChangeEvent e)
Invoked when the hierarchy/reference tab changes. |
void |
updateAssertText(boolean isWait,
boolean invert)
|
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 ComponentBrowser(Resolver r, Hierarchy h)
Method Detail |
---|
public void setResolver(Resolver resolver)
public void updateAssertText(boolean isWait, boolean invert)
public void setSelectedReference(ComponentReference ref)
public void setSelectedComponent(Component comp)
public boolean isComponentSelected()
public void setEnabled(boolean state)
setEnabled
in class JComponent
public void refresh()
public boolean showingHierarchy()
public ComponentReference getSelectedReference()
public Component getSelectedComponent()
public void setCompactDisplay(boolean compact)
public boolean isCompactDisplay()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void enableAssertSampleButtons()
public void referenceListSelectionChanged(ListSelectionEvent e)
public void tabChanged(ChangeEvent e)
public void addSelectionListener(ComponentBrowserListener cbl)
public void removeSelectionListener(ComponentBrowserListener cbl)
protected void fireSelectionChanged()
protected void firePropertyCheck(boolean sample)
public void referencesChanged()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |