private String getUrl(EditorItem source) { URL url = EditorUtils.getUrl(source.getValue(), fxmlFileLocation); if (url == null) { return null; } String urlStr = url.toExternalForm(); return urlStr; }
private boolean alreadyUsed(String url) { for (EditorItem item : super.getEditorItems()) { if (item.getValue().equals(url)) { return true; } } return false; }
@Override public Object getValue() { List<String> value = FXCollections.observableArrayList(); // Group all the item values in a list for (EditorItem stylesheetItem : getEditorItems()) { String itemValue = stylesheetItem.getValue(); if (itemValue.isEmpty()) { continue; } value.add(itemValue); } if (value.isEmpty()) { // no stylesheet return super.getPropertyMeta().getDefaultValueObject(); } else { type = getType(value); return value; } }