Package com.inductiveautomation.rm.app
Class Gallery
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
 
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.rm.app.Gallery
- Direct Known Subclasses:
- SwingGallery
This class provides UI for showing an RMParentShape and allowing drag and drop from it.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classAn inner class and RMViewer subclass for showing and dragging shapes in an RMDocument.
- 
Field SummaryFields inherited from class com.inductiveautomation.snap.ui.UIOwnerDragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected JComponentcreateUI()Creates UI panel.static voiddropGalleryShape(RMParentShape aShape, DropTargetDropEvent anEvent) Handle drop of gallery shape onto editor.getDocument(int anIndex) Returns the specifc document at the given index.intReturns the number of document shown by the gallery.getDocumentIcon(int anIndex) Returns the icon for the specific document at the given index.static RMShapeReturns the shape being dragged.Returns the name to be used in the inspector window.voidrespondUI(SwingEvent anEvent) Responds to UI controls.Methods inherited from class com.inductiveautomation.snap.swing.SwingOwneraddKeyActionEvent, createTimer, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisibleMethods inherited from class com.inductiveautomation.snap.ui.UIOwneraddNodeBinding, disableEvents, enableEvents, getBindingModelValue, getBindingNodeValue, getConversionMap, getConversionMapKey, getConversionMaps, getConversionMapValue, getFirstFocus, getModelValue, getNode, getNodeAction, getNodeBoolValue, getNodeFloatValue, getNodeIntValue, getNodeItemDisplayKey, getNodeItems, getNodeSelectedIndex, getNodeSelectedItem, getNodeStringValue, getNodeText, getNodeValue, getUI, getUIHpr, initUI, initUI, isNodeEnabled, isNodeValueAdjusting, isSendEventDisabled, isUISet, processResetUI, processRespondUI, resetLater, resetNodeBindings, resetUI, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabled
- 
Constructor Details- 
Gallerypublic Gallery()
 
- 
- 
Method Details- 
getWindowTitleReturns the name to be used in the inspector window.
- 
getDragShapeReturns the shape being dragged.
- 
createUICreates UI panel.- Overrides:
- createUIin class- SwingOwner
 
- 
respondUIResponds to UI controls.- Overrides:
- respondUIin class- UIOwner<SwingEvent,- JComponent> 
 
- 
getDocumentCountpublic int getDocumentCount()Returns the number of document shown by the gallery.
- 
getDocumentReturns the specifc document at the given index.
- 
getDocumentIconReturns the icon for the specific document at the given index.
- 
dropGalleryShapeHandle drop of gallery shape onto editor.
 
-