|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.TransferHandler
org.formaria.editor.project.pages.BindingTransferHandler
public class BindingTransferHandler
This class handles the transfer of bindings to PageDesigner components
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.TransferHandler |
|---|
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport |
| Field Summary | |
|---|---|
static BindingPropertiesDialog |
bindingDialog
|
protected java.awt.datatransfer.DataFlavor |
dataFlavor
|
static java.awt.datatransfer.DataFlavor |
ModelFlavor
|
protected PageDesigner |
pageDesigner
|
| Fields inherited from class javax.swing.TransferHandler |
|---|
COPY, COPY_OR_MOVE, LINK, MOVE, NONE |
| Constructor Summary | |
|---|---|
BindingTransferHandler(PageDesigner pd)
Creates new instance of BindingTransferHandler |
|
| Method Summary | |
|---|---|
boolean |
canImport(javax.swing.JComponent comp,
java.awt.datatransfer.DataFlavor[] transferFlavors)
Indicates whether the binding can be set to the comp
component. |
static boolean |
driverFound(EditorProject currentProject,
java.lang.String driverName)
TODO: should the EditorUtility::getEditorClassLoader be used here instead of creating a new class loader explicitly??? |
boolean |
importData(javax.swing.JComponent comp,
java.awt.datatransfer.Transferable t)
Imports the component binding |
static DataModel |
registerDbTable(EditorProject currentProject,
java.lang.Object tableObject)
|
static DataModel |
registerDbTable(EditorProject currentProject,
java.lang.Object tableObject,
java.lang.String driverFileName)
Registeres the specified database table in the model, copies the driver jar to the project's classpath. |
static void |
setBindingProperties(javax.swing.JComponent comp,
java.lang.String propertyName,
java.util.Hashtable properties,
PageDesigner pageDesigner)
Sets up the binding of the specified component. |
| Methods inherited from class javax.swing.TransferHandler |
|---|
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getSourceActions, getVisualRepresentation, importData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.awt.datatransfer.DataFlavor ModelFlavor
public static BindingPropertiesDialog bindingDialog
protected java.awt.datatransfer.DataFlavor dataFlavor
protected PageDesigner pageDesigner
| Constructor Detail |
|---|
public BindingTransferHandler(PageDesigner pd)
BindingTransferHandler
pd - the PageDesigner object containing components
on which the data will be transfered.| Method Detail |
|---|
public boolean canImport(javax.swing.JComponent comp,
java.awt.datatransfer.DataFlavor[] transferFlavors)
comp
component.
canImport in class javax.swing.TransferHandlercomp - the Component that is about to receive the bindingtransferFlavors - the data formats available
public boolean importData(javax.swing.JComponent comp,
java.awt.datatransfer.Transferable t)
importData in class javax.swing.TransferHandlercomp - the Component which is to receive the bindingt - Transferable object describing the binding
public static DataModel registerDbTable(EditorProject currentProject,
java.lang.Object tableObject)
throws java.lang.Exception
java.lang.Exception
public static DataModel registerDbTable(EditorProject currentProject,
java.lang.Object tableObject,
java.lang.String driverFileName)
throws java.lang.Exception
current - project the current projecttableObject - the object encapsulating the database table properties
java.lang.Exception
public static boolean driverFound(EditorProject currentProject,
java.lang.String driverName)
public static void setBindingProperties(javax.swing.JComponent comp,
java.lang.String propertyName,
java.util.Hashtable properties,
PageDesigner pageDesigner)
comp - the component which is about to receive the binding.propertyName - the name of the component property to be set
in order to set up the bindingproperties - binding propertiespageDesigner - PageDesigner object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||