public String getPathElement(E subEditor) { return "[" + list.getEditors().indexOf(subEditor) + "]"; }
/** * Returns an unmodifiable, live view of the Editors managed by the * ListEditor. * <p> * The returned list will be live until the next call to {@link #setValue(List)} * and shouldn't be used after that. Editors might (or might not) be reused * after a call to {@link #setValue(List)}. * <p> * If there is no backing list, an empty list will be returned. * * @return a List of {@link Editor Editors} of type E */ public List<E> getEditors() { if (list == null) { return Collections.emptyList(); } return Collections.unmodifiableList(list.getEditors()); }
public String getPathElement(E subEditor) { return "[" + list.getEditors().indexOf(subEditor) + "]"; }
public String getPathElement(E subEditor) { return "[" + list.getEditors().indexOf(subEditor) + "]"; }
/** * Returns an unmodifiable, live view of the Editors managed by the * ListEditor. * <p> * The returned list will be live until the next call to {@link #setValue(List)} * and shouldn't be used after that. Editors might (or might not) be reused * after a call to {@link #setValue(List)}. * <p> * If there is no backing list, an empty list will be returned. * * @return a List of {@link Editor Editors} of type E */ public List<E> getEditors() { if (list == null) { return Collections.emptyList(); } return Collections.unmodifiableList(list.getEditors()); }
/** * Returns an unmodifiable, live view of the Editors managed by the * ListEditor. * <p> * The returned list will be live until the next call to {@link #setValue(List)} * and shouldn't be used after that. Editors might (or might not) be reused * after a call to {@link #setValue(List)}. * <p> * If there is no backing list, an empty list will be returned. * * @return a List of {@link Editor Editors} of type E */ public List<E> getEditors() { if (list == null) { return Collections.emptyList(); } return Collections.unmodifiableList(list.getEditors()); }