public abstract class AbstractInspectorPanelController extends java.lang.Object implements InspectorPanelController
In addition to implementing this abstract class, inspector panels must
call the appropriate methods of Inspector
to notify the latter of
certain changes.
Constructor and Description |
---|
AbstractInspectorPanelController() |
Modifier and Type | Method and Description |
---|---|
void |
addInspectorPanelListener(InspectorPanelListener listener) |
abstract void |
attachDataViewer(DataViewer viewer)
Attach to a data viewer.
|
abstract void |
detachDataViewer()
Detach from any currently attached data viewer.
|
protected void |
fireInspectorPanelDidChangeHeight() |
protected void |
fireInspectorPanelDidChangeTitle() |
protected void |
fireInspectorPanelWillChangeHeight() |
javax.swing.JPopupMenu |
getGearMenu()
Provide a menu used for miscellaneous controls.
|
abstract java.lang.String |
getTitle() |
abstract boolean |
isVerticallyResizableByUser()
Indicate whether the panel can be resized vertically by the user.
|
void |
removeInspectorPanelListener(InspectorPanelListener listener) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPanel, initiallyExpand, setExpanded
public final void addInspectorPanelListener(InspectorPanelListener listener)
addInspectorPanelListener
in interface InspectorPanelController
public final void removeInspectorPanelListener(InspectorPanelListener listener)
removeInspectorPanelListener
in interface InspectorPanelController
protected void fireInspectorPanelWillChangeHeight()
protected void fireInspectorPanelDidChangeHeight()
protected void fireInspectorPanelDidChangeTitle()
public abstract java.lang.String getTitle()
getTitle
in interface InspectorPanelController
public javax.swing.JPopupMenu getGearMenu()
It is permissible to always return the same JPopupMenu instance, as long as you ensure that it is updated each time this method is called.
This method is guaranteed to be called on the Swing/AWT event dispatch thread.
getGearMenu
in interface InspectorPanelController
public abstract void attachDataViewer(DataViewer viewer)
attachDataViewer
in interface InspectorPanelController
viewer
- a DataViewer
(never null)public abstract void detachDataViewer()
detachDataViewer
in interface InspectorPanelController
public abstract boolean isVerticallyResizableByUser()
Note that this is independent of whether the panel resizes itself depending on its content.
isVerticallyResizableByUser
in interface InspectorPanelController