Package com.reportmill.panels
Class KeysPanel
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.panels.KeysPanel
-
- All Implemented Interfaces:
RMArchiver.Archiving,java.lang.Cloneable
- Direct Known Subclasses:
RBKeysPanel
public class KeysPanel extends RMObject
This class shows the current set of keys relative to the current editor selection in a browser and lets users drag and drop them to the editor.
-
-
Constructor Summary
Constructors Constructor Description KeysPanel()Creates a new keys panel.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RMDataSourcegetDataSource()Returns the current document's datasource.RMDocumentgetDocument()Returns the current report document.static java.lang.StringgetDragKey()Returns the current drag key.RMShapegetSelectedShape()Returns the current editor's selected shape.RJPanelgetUI()Returns the Swing UI panel.java.lang.StringgetWindowTitle()Returns the window title for this panel.static booleanisSelectedToMany()Returns whether selected key path is to-many.voidresetUI()Updates the swing UI panel from the current selection.voidrespondUI(java.lang.Object anObj)Updates the current selection from the Swing UI controls.static voidsetDragKey(java.lang.String aKey)Sets the current drag key.-
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
-
-
-
Method Detail
-
getDocument
public RMDocument getDocument()
Returns the current report document.
-
getDataSource
public RMDataSource getDataSource()
Returns the current document's datasource.
-
getSelectedShape
public RMShape getSelectedShape()
Returns the current editor's selected shape.
-
getWindowTitle
public java.lang.String getWindowTitle()
Returns the window title for this panel.
-
getDragKey
public static java.lang.String getDragKey()
Returns the current drag key.
-
setDragKey
public static void setDragKey(java.lang.String aKey)
Sets the current drag key.
-
isSelectedToMany
public static boolean isSelectedToMany()
Returns whether selected key path is to-many.
-
getUI
public RJPanel getUI()
Returns the Swing UI panel.
-
resetUI
public void resetUI()
Updates the swing UI panel from the current selection.
-
respondUI
public void respondUI(java.lang.Object anObj)
Updates the current selection from the Swing UI controls.
-
-