Package javango.forms.fields.annotations

Examples of javango.forms.fields.annotations.FieldProperties.label()


  private String getChangeListLabel(Class pc, ModelAdmin ma, String property) {
    // todo maybe add ability to add labels to modeladmin and add that here.
    FieldProperties properties = (FieldProperties)pc.getAnnotation(FieldProperties.class);
    String label = null;
    if (properties != null) {
      label = properties.label();
    }
    if (label == null) {
      String pieces[] = property.split(":");
      if (pieces.length > 1) { // includes a :
        label = pieces[0];
View Full Code Here


    if (!(annotation instanceof FieldProperties)) return;
    FieldProperties props = (FieldProperties)annotation;
    this.setRequired(props.required());
    this.setEditable(props.editable());
    this.setAllowNull(props.allowNull());
    this.label = "".equals(props.label()) ? props.verboseName() : props.label();
    this.helpText = props.helpText();
    this.hidden = props.hidden();
    this.setWidgetAttrs(props.widgetAttrs());
    if (props.widgetClass() != FieldProperties.NoWidget.class) this.widgetClass = props.widgetClass();
  }
View Full Code Here

    if (!(annotation instanceof FieldProperties)) return;
    FieldProperties props = (FieldProperties)annotation;
    this.setRequired(props.required());
    this.setEditable(props.editable());
    this.setAllowNull(props.allowNull());
    this.label = "".equals(props.label()) ? props.verboseName() : props.label();
    this.helpText = props.helpText();
    this.hidden = props.hidden();
    this.setWidgetAttrs(props.widgetAttrs());
    if (props.widgetClass() != FieldProperties.NoWidget.class) this.widgetClass = props.widgetClass();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.