WireItLibrary

WireIt  0.6.0

WireItLibrary > WireIt > WireIt.TerminalProxy
Search:
 
Filters

Class WireIt.TerminalProxy - extends YAHOO.util.DDProxy

This class is used for wire edition. It inherits from YAHOO.util.DDProxy and acts as a "temporary" Terminal.

Constructor

WireIt.TerminalProxy ( terminal , options )
Parameters:
terminal <WireIt.Terminal> Parent terminal
options <Object> Configuration object (see "termConfig" property for details)

Properties

fakeTerminal - object

Object that emulate a terminal which is following the mouse

termConfig - object

Object containing the configuration object
  • type: 'type' of this terminal. If no "allowedTypes" is specified in the options, the terminal will only connect to the same type of terminal
  • allowedTypes: list of all the allowed types that we can connect to.
  • {Integer} terminalProxySize: size of the drag drop proxy element. default is 10 for "10px"

terminal - object

Reference to the terminal parent

Methods

createFrame

void createFrame ( )
Took this method from the YAHOO.util.DDProxy class to overwrite the creation of the proxy Element with our custom size

endDrag

void endDrag ( )

isValidWireTerminal

void isValidWireTerminal ( )

onDrag

void onDrag ( )

onDragDrop

void onDragDrop ( )

onDragEnter

void onDragEnter ( )

onDragOut

void onDragOut ( )

startDrag

void startDrag ( )


Copyright © 2010 Eric Abouaf All rights reserved.