@SuppressWarnings({"rawtypes"}) @Override protected Skin createDefaultSkin() { Object[] argsValues = new Object[] {this}; Skin skin = (Skin) ReflectionUIUtils.newInstance("com.nexitia.emaginplatform.jfx.core.engine.components.list.utils.FixedSizeListViewSkin", argsValues, ListView.class); //skin.setScrollableVertically(false); return skin; } }
@SuppressWarnings("rawtypes") @Override protected Skin createDefaultSkin() { Object[] argsValues = new Object[] {this}; Skin skin = (Skin) ReflectionUIUtils.newInstance("com.nexitia.emaginplatform.jfx.core.components.list.utils.FixedSizeListViewSkin", argsValues, ListView.class); return skin; } }
/** * Set the selectedCallbackFuntion * * @param selectedCallbackFuntion the selectedCallbackFuntion to set */ @SuppressWarnings("rawtypes") public void setSelectedCallbackFuntion(Function<T, Boolean> selectedCallbackFuntion) { this.itemSelectedFunction = selectedCallbackFuntion; proposalListView.setCellFactory(param -> { final VLAutoCompleteListCell<T> cell = (VLAutoCompleteListCell<T>) ReflectionUIUtils.newInstance(proposalListCell); cell.setSelectedCallBack(t -> { final T item = (T) t.getItem(); proposalListView.getItems().remove(item); selectedCallbackFuntion.apply(item); return true; }); return cell; }); }
if (attachmentLoaderClass != null) { try { final IAttachmentsListLoader loader = (IAttachmentsListLoader) ReflectionUIUtils.newInstance(attachmentLoaderClass); final String content = loader.getPrimaryAttachment(controller.getModel()); final Label text = new Label(content);
if (graphicCong != null) { final String graphicClass = graphicCong.getPropertyValue(XMLConstants.CLASS); final ButtonBase node = (ButtonBase) ReflectionUIUtils.newInstance(graphicClass); ComponentToButtonBaseHelper.setOnAction(graphicCong, node, controller); tableColumn.setGraphic(node);
if (graphicCong != null) { final String graphicClass = graphicCong.getPropertyValue(XMLConstants.CLASS); final ButtonBase node = (ButtonBase) ReflectionUIUtils.newInstance(graphicClass); ComponentToButtonBaseHelper.setOnAction(graphicCong, node, controller); tableColumn.setGraphic(node);