Package com.iizigo.link.java
Class JavaElementLinkAdapter
java.lang.Object
com.iizigo.link.java.JavaElementLinkAdapter
- All Implemented Interfaces:
- ILinkCapable,- IAdaptable
Class used to create an ILinkCapable instance of a Java class.
- Author:
- Christopher Mindus
- Field Summary- Fields inherited from interface com.iizigo.link.ILinkCapable- STATUS_LINK_NOT_SUPPORTED
- Constructor SummaryConstructorsConstructorDescription- JavaElementLinkAdapter- (IJavaElement element) The constructor.- JavaElementLinkAdapter- (IMethod method) The constructor.- JavaElementLinkAdapter- (IType type) The constructor.
- Method SummaryModifier and TypeMethodDescription- <T> T- getAdapter- (Class<T> adapter) Adapter.Gets the link text to display when drag-dropping into JavaScript Panel Editor.- getLinkOperations- (LinkData data) Called when the drag-drop is to be performed (link or paste-link menu item).- isLinkCapable- (LinkData data) Returns if this property container could potentially be link capable.- Methods inherited from class java.lang.Object- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait- Methods inherited from interface com.iizigo.link.ILinkCapable- getDragDropHTML
- Constructor Details- JavaElementLinkAdapterThe constructor.- Parameters:
- method- The method.
 
- JavaElementLinkAdapterThe constructor.- Parameters:
- type- The type.
 
- JavaElementLinkAdapterThe constructor.- Parameters:
- element- The Java element.
 
 
- Method Details- isLinkCapableReturns if this property container could potentially be link capable.- This call is done many times during drag-drop and must be very fast and not cause too much garbage collection. - Specified by:
- isLinkCapablein interface- ILinkCapable
- Parameters:
- data- The link data.
- Returns:
- The status of capability of the operation.
 
- getDragDropTextGets the link text to display when drag-dropping into JavaScript Panel Editor.- Specified by:
- getDragDropTextin interface- ILinkCapable
- Returns:
- The drag-drop text to use, or null if the method ILinkCapable.getDragDropHTML()
 
- getLinkOperationsCalled when the drag-drop is to be performed (link or paste-link menu item). The link-capable instance fills in only what it handles.- Specified by:
- getLinkOperationsin interface- ILinkCapable
- Parameters:
- data- The link data.
- Returns:
- The list of operations required.
 
- getAdapterAdapter.- Specified by:
- getAdapterin interface- IAdaptable