public final class JCJControl extends JComponent implements ComponentListener
JCJControl
class represents a swing wrapper around graphical CLR
Object.
JComponent.AccessibleJComponent
Component.BaselineResizeBehavior
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Modifier and Type | Method and Description |
---|---|
void |
addNotify()
Do not call directly
|
void |
componentHidden(ComponentEvent e)
Do not call directly
|
void |
componentMoved(ComponentEvent e)
Do not call directly
|
void |
componentResized(ComponentEvent e)
Do not call directly
|
void |
componentShown(ComponentEvent e)
Do not call directly
|
static Object |
DispatcherGet(JCObject target,
String field)
Retrieve a field from the reflected CLR Object using the Dispatcher thread.
|
static Object |
DispatcherGet(JCType target,
String field)
Retrieve a static field from the reflected CLR Type using the Dispatcher
thread.
|
static Object |
DispatcherInvoke(JCObject target,
String method,
Object... params)
Invokes a method on the reflected CLR Object with optional parameters using
the Dispatcher thread.
|
static Object |
DispatcherInvoke(JCType target,
String method,
Object... params)
Invokes a static method on the reflected CLR Type with optional parameters
using the Dispatcher thread.
|
static JCObject |
DispatcherSet(JCObject target,
String field,
Object value)
Sets a field on the reflected CLR Object using the Dispatcher thread.
|
static JCObject |
DispatcherSet(JCType target,
String field,
Object value)
Sets a static field on the reflected CLR Type using the Dispatcher thread.
|
Object |
Get(String field)
Retrieve a field from the reflected CLR Object.
|
JCObject |
getControl()
Return the
JCObject representation of graphical CLR Object |
boolean |
getIsWPF()
Return true if the remote object is a WPF object, otherwise return false
|
int |
hashCode()
This method is used to get the CLR hashCode.
|
Object |
Invoke(String method,
Object... params)
Invokes a method on the reflected CLR Object with optional parameters.
|
void |
RegisterEventListener(String eventName,
IJCEventEmit eventHandler)
Register an event callback with return value into CLR Object.
|
void |
RegisterEventListener(String eventName,
IJCVoidEventEmit eventHandler)
Register an event callback without return value into CLR Object.
|
void |
removeNotify()
Do not call directly
|
void |
requestFocus()
|
JCObject |
Set(String field,
Object value)
Sets a field on the reflected CLR Object.
|
String |
toString()
This method is used to get the equivalent CLR ToString.
|
void |
UnregisterEventListener(String eventName,
IJCEventEmit eventHandler)
Unregister an event callback with return value from CLR Object.
|
void |
UnregisterEventListener(String eventName,
IJCVoidEventEmit eventHandler)
Unregister an event callback without return value from CLR Object.
|
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
public int hashCode()
public String toString()
public JCObject getControl()
JCObject
representation of graphical CLR ObjectJCObject
representation of graphical CLR Objectpublic boolean getIsWPF() throws JCNativeException
JCNativeException
- if something happens within CLR contextpublic Object Invoke(String method, Object... params) throws JCNativeException
method
- The method to be invoked on the CLR Objectparams
- Optional parameters to pass to the methodJCObject
for all other typesJCNativeException
- In case of error in the CLR contextpublic static Object DispatcherInvoke(JCObject target, String method, Object... params) throws JCNativeException
target
- The target object to usemethod
- The method to be invoked on the CLR Objectparams
- Optional parameters to pass to the methodJCObject
for all other typesJCNativeException
- In case of error in the CLR contextpublic static Object DispatcherInvoke(JCType target, String method, Object... params) throws JCNativeException
target
- The target type to usemethod
- The method to be invoked on the CLR Objectparams
- Optional parameters to pass to the methodJCObject
for all other typesJCNativeException
- In case of error in the CLR contextpublic Object Get(String field) throws JCNativeException
field
- The field to be get from the CLR ObjectJCObject
for all other typesJCNativeException
- In case of error in the CLR contextpublic static Object DispatcherGet(JCObject target, String field) throws JCNativeException
target
- The target object to usefield
- The field to be get from the CLR ObjectJCObject
for all other typesJCNativeException
- In case of error in the CLR contextpublic static Object DispatcherGet(JCType target, String field) throws JCNativeException
target
- The target type to usefield
- The field to be get from the CLR ObjectJCObject
for all other typesJCNativeException
- In case of error in the CLR contextpublic JCObject Set(String field, Object value) throws JCNativeException
field
- The field to be get from the CLR Objectvalue
- The value to be setJCObject
for chaining purposeJCNativeException
- In case of error in the CLR contextpublic static JCObject DispatcherSet(JCObject target, String field, Object value) throws JCNativeException
target
- The target object to usefield
- The field to be get from the CLR Objectvalue
- The value to be setJCObject
for chaining purposeJCNativeException
- In case of error in the CLR contextpublic static JCObject DispatcherSet(JCType target, String field, Object value) throws JCNativeException
target
- The target type to usefield
- The field to be get from the CLR Objectvalue
- The value to be setJCObject
for chaining purposeJCNativeException
- In case of error in the CLR contextpublic void RegisterEventListener(String eventName, IJCVoidEventEmit eventHandler) throws JCNativeException, JCException
eventName
- The event to register into the CLR ObjecteventHandler
- The IJCVoidEventEmit
handler instance will
receive the eventJCNativeException
- In case of error in the CLR contextJCException
- In case of existing event registeredpublic void RegisterEventListener(String eventName, IJCEventEmit eventHandler) throws JCNativeException, JCException
eventName
- The event to register into the CLR ObjecteventHandler
- The IJCEventEmit
handler instance will receive
the eventJCNativeException
- In case of error in the CLR contextJCException
- In case of existing event registeredpublic void UnregisterEventListener(String eventName, IJCVoidEventEmit eventHandler) throws JCNativeException, JCException
eventName
- The event to unregister from the CLR ObjecteventHandler
- The IJCVoidEventEmit
handler instance will
receive the eventJCNativeException
- In case of error in the CLR contextJCException
- In case of unexisting event registeredpublic void UnregisterEventListener(String eventName, IJCEventEmit eventHandler) throws JCNativeException, JCException
eventName
- The event to unregister from the CLR ObjecteventHandler
- The IJCEventEmit
handler instance will receive
the eventJCNativeException
- In case of error in the CLR contextJCException
- In case of existing event registeredpublic void componentResized(ComponentEvent e)
componentResized
in interface ComponentListener
public void componentMoved(ComponentEvent e)
componentMoved
in interface ComponentListener
public void componentShown(ComponentEvent e)
componentShown
in interface ComponentListener
public void componentHidden(ComponentEvent e)
componentHidden
in interface ComponentListener
public void addNotify()
addNotify
in class JComponent
public void removeNotify()
removeNotify
in class JComponent
public void requestFocus()
requestFocus
in class JComponent