Package com.reportmill.panels
Class InspectorPanel
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.panels.InspectorPanel
-
- All Implemented Interfaces:
RMArchiver.Archiving,java.lang.Cloneable
- Direct Known Subclasses:
RBInspectorPanel
public class InspectorPanel extends RMObject
This class is responsible for the Swing GUI associated with the inspector window.
-
-
Constructor Summary
Constructors Constructor Description InspectorPanel()Creates a new inspector manager.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the InspectorPanel and releases the UI.RJPanelgetUI()Returns the Swing UI panel for the inspector.intgetVisible()Returns the selected inspector index (or -1 if inspector not visible).booleanisEnabled()Returns whether the inspector updates itself.booleanisShowingDataSource()Returns whether the inspector is showing the datasource inspector.booleanisVisible()Returns whether the inspector is visible.voidpopSelection(java.awt.event.ActionEvent e)Changes the selection path selection to the level of the string index in the action event.voidresetSelectionPathMatrix()Updates the selection path UI.voidresetUI()Refreshes the inspector for the current editor selection.voidrespondUI(java.lang.Object anObj)Handles changes to the inspector Swing GUI controls.voidselectRoot()voidsetDatasourceEditorPanel(javax.swing.JComponent comp)EDIT- Added by CGvoidsetEnabled(boolean aValue)Sets whether the inpsector updates itself.voidsetUI(RJPanel aPanel)Sets the SWing GUI panel for the inspector.voidsetVisible(boolean aValue)Sets whether the inspector is visible.voidsetVisible(int anIndex)Sets the inspector to be visible, showing the specific sub-inspector at the given index.static InspectorPanelshared()Returns the shared instance of this class.static voidshowDocumentInspector()-
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
-
-
-
Method Detail
-
shared
public static InspectorPanel shared()
Returns the shared instance of this class.
-
getUI
public RJPanel getUI()
Returns the Swing UI panel for the inspector.
-
setDatasourceEditorPanel
public void setDatasourceEditorPanel(javax.swing.JComponent comp)
EDIT- Added by CG- Parameters:
comp-
-
setUI
public void setUI(RJPanel aPanel)
Sets the SWing GUI panel for the inspector.
-
isVisible
public boolean isVisible()
Returns whether the inspector is visible.
-
setVisible
public void setVisible(boolean aValue)
Sets whether the inspector is visible.
-
getVisible
public int getVisible()
Returns the selected inspector index (or -1 if inspector not visible).
-
setVisible
public void setVisible(int anIndex)
Sets the inspector to be visible, showing the specific sub-inspector at the given index.
-
isEnabled
public boolean isEnabled()
Returns whether the inspector updates itself.
-
setEnabled
public void setEnabled(boolean aValue)
Sets whether the inpsector updates itself.
-
resetUI
public void resetUI()
Refreshes the inspector for the current editor selection.
-
respondUI
public void respondUI(java.lang.Object anObj)
Handles changes to the inspector Swing GUI controls.
-
isShowingDataSource
public boolean isShowingDataSource()
Returns whether the inspector is showing the datasource inspector.
-
resetSelectionPathMatrix
public void resetSelectionPathMatrix()
Updates the selection path UI.
-
popSelection
public void popSelection(java.awt.event.ActionEvent e)
Changes the selection path selection to the level of the string index in the action event.
-
selectRoot
public void selectRoot()
-
showDocumentInspector
public static void showDocumentInspector()
-
close
public void close()
Closes the InspectorPanel and releases the UI.
-
-