@ScriptFunction(jsDoc = "" + "/**\n" + " * Value of changed property.\n" + " */") public Object getValue() { return Scripts.getSpace().toJs(value); }
protected void bindList() { if (displayList != null && Scripts.isInitialized()) { boundToList = Scripts.getSpace().listen(displayList, "length", new AbstractJSObject() { @Override public Object call(Object thiz, Object... args) { enqueueListChanged(); return null; } }); } }
protected void bindCursor(JSObject aModelData) { if (aModelData != null) { boundToCursor = Scripts.getSpace().listen(aModelData, cursorProperty, new AbstractJSObject() { @Override public Object call(Object thiz, Object... args) { ModelGrid.this.invalidate(); ModelGrid.this.repaint(); return null; } }); } }
@ScriptFunction(jsDoc = "" + "/**\n" + " * Event that is fired when one of the components is selected in this card pane.\n" + " */") @EventMethod(eventClass = ItemEvent.class) public JSObject getOnItemSelected() { return onItemSelected; }
public void process(Runnable aTask) { Scripts.LocalContext context = Scripts.getContext(); process(context, aTask); }
@Override public void setPublished(JSObject aValue) { if (published != null) { throw new AlreadyPublishedException(); } published = aValue; } }
@ScriptFunction(jsDoc = SOURCE_JS_DOC) @Override public HasPublished getSource() { return source; }
@ScriptFunction(jsDoc = ON_REQUIRED_JSDOC) @EventMethod(eventClass = PublishedSourcedEvent.class) public JSObject getOnRequeried() { return onRequeried; }
protected void bind() { if (data != null && Scripts.isInitialized()) { boundToData = Scripts.getSpace().listen(data, "length", new AbstractJSObject() { @Override public Object call(Object thiz, Object... args) { enqueueElementsChanged(); return null; } }); } }
@ScriptFunction(jsDoc = "" + "/**\n" + " * Event that is fired when one of the components is selected in this group.\n" + " */") @EventMethod(eventClass = ItemEvent.class) public JSObject getOnItemSelected() { return onItemSelected; }
@ScriptFunction(jsDoc = ON_COMPONENT_ADDED_JSDOC) @EventMethod(eventClass = ContainerEvent.class) public JSObject getOnComponentAdded();
@ScriptFunction(jsDoc = ON_MOUSE_WHEEL_MOVED_JSDOC) @EventMethod(eventClass = MouseEvent.class) public JSObject getOnMouseWheelMoved();
@ScriptFunction(jsDoc = ON_ACTION_PERFORMED_JSDOC) @EventMethod(eventClass = ActionEvent.class) public JSObject getOnActionPerformed();
@ScriptFunction(jsDoc = ON_COMPONENT_RESIZED_JSDOC) @EventMethod(eventClass = ComponentEvent.class) public JSObject getOnComponentResized();
@ScriptFunction(jsDoc = ON_COMPONENT_SHOWN_JSDOC) @EventMethod(eventClass = ComponentEvent.class) public JSObject getOnComponentShown();
@ScriptFunction(jsDoc = ON_COMPONENT_REMOVED_JSDOC) @EventMethod(eventClass = ContainerEvent.class) public JSObject getOnComponentRemoved();
@ScriptFunction(jsDoc = ON_MOUSE_CLICKED_JSDOC) @EventMethod(eventClass = MouseEvent.class) public JSObject getOnMouseClicked();
@ScriptFunction(jsDoc = ON_MOUSE_PRESSED_JSDOC) @EventMethod(eventClass = MouseEvent.class) public JSObject getOnMousePressed();
@ScriptFunction(jsDoc = ON_MOUSE_RELEASED_JSDOC) @EventMethod(eventClass = MouseEvent.class) public JSObject getOnMouseReleased();