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 RMDataSource
getDataSource()
Returns the current document's datasource.RMDocument
getDocument()
Returns the current report document.static java.lang.String
getDragKey()
Returns the current drag key.RMShape
getSelectedShape()
Returns the current editor's selected shape.RJPanel
getUI()
Returns the Swing UI panel.java.lang.String
getWindowTitle()
Returns the window title for this panel.static boolean
isSelectedToMany()
Returns whether selected key path is to-many.void
resetUI()
Updates the swing UI panel from the current selection.void
respondUI(java.lang.Object anObj)
Updates the current selection from the Swing UI controls.static void
setDragKey(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.
-
-