Exemplo n.º 1
0
 private String getUrl(EditorItem source) {
   URL url = EditorUtils.getUrl(source.getValue(), fxmlFileLocation);
   if (url == null) {
     return null;
   }
   String urlStr = url.toExternalForm();
   return urlStr;
 }
Exemplo n.º 2
0
 private boolean alreadyUsed(String url) {
   for (EditorItem item : super.getEditorItems()) {
     if (item.getValue().equals(url)) {
       return true;
     }
   }
   return false;
 }
Exemplo n.º 3
0
 @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;
   }
 }