public Property createProperty() { return new Description(); } }
public Property createProperty(final String name, final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Description(parameters, value); }
public Property createProperty() { return new Description(); } }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Description(parameters, value); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Description(parameters, value); }
public Property createProperty() { return new Description(); } }
protected static Description toDescription(String javaObj) { if (javaObj == null) { return null; } return new Description(javaObj); }
public Property createProperty(final String name) { return new Description(); } };
public Property createProperty() { return new Description(); } }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Description(parameters, value); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Description(parameters, value); }
@Override public Property toVEvent(final TeamEventDO event) { if (StringUtils.isNotBlank(event.getNote())) { return new Description(event.getNote()); } return null; }
@Override void mapToCard(net.fortuna.ical4j.model.Calendar cal, Object bean, PropertyDescriptor pd) { String s = propertyAccessor.get(bean, pd.getReadMethod(), String.class); if (s == null || s.trim().length() == 0) { return; } VEvent vevent = event(cal); if (vevent != null) { net.fortuna.ical4j.model.property.Description d = new net.fortuna.ical4j.model.property.Description(); d.setValue(s); vevent.getProperties().add(d); } } }
@Override public void applyTo(VAlarm element) { Action action = element.getAction(); if (action == null || !"DISPLAY".equals(action.getValue()) || element.getDescription() != null && element.getDescription().getValue() != null) { return; } Description description = new Description("display"); element.getProperties().add(description); }
@Override public void applyTo(VAlarm element) { Action action = element.getAction(); if (action == null || !"DISPLAY".equals(action.getValue()) || element.getDescription() != null && element.getDescription().getValue() != null) { return; } Description description = new Description("display"); element.getProperties().add(description); }
@Override public void applyTo(VAlarm element) { Action action = element.getAction(); if (action == null || !"DISPLAY".equals(action.getValue()) || element.getDescription() != null && element.getDescription().getValue() != null) { return; } Description description = new Description("display"); element.getProperties().add(description); }
public void setDisplayAlarmDescription(String newDescription) { VAlarm alarm = getDisplayAlarm(); if(alarm==null) { return; } Description description = (Description) alarm.getProperties() .getProperty(Property.DESCRIPTION); if (description == null) { description = new Description(); alarm.getProperties().add(description); } description.setValue(newDescription); }
public void setDisplayAlarmDescription(String newDescription) { VAlarm alarm = getDisplayAlarm(); if(alarm==null) { return; } Description description = (Description) alarm.getProperties() .getProperty(Property.DESCRIPTION); if (description == null) { description = new Description(); alarm.getProperties().add(description); } description.setValue(newDescription); }
/** * Update the DESCRIPTION property on a component. * @param text DESCRIPTION value to update. If null, the DESCRIPTION property * will be removed * @param comp component to update */ public static void setDescription(String text, Component comp) { Description description = (Description) comp.getProperties().getProperty(Property.DESCRIPTION); if (text == null) { if (description != null) { comp.getProperties().remove(description); } return; } if (description == null) { description = new Description(); comp.getProperties().add(description); } description.setValue(text); }
/** * Update the DESCRIPTION property on a component. * @param text DESCRIPTION value to update. If null, the DESCRIPTION property * will be removed * @param comp component to update */ public static void setDescription(String text, Component comp) { Description description = (Description) comp.getProperties().getProperty(Property.DESCRIPTION); if (text == null) { if (description != null) { comp.getProperties().remove(description); } return; } if (description == null) { description = new Description(); comp.getProperties().add(description); } description.setValue(text); }