org.broadleafcommerce.presentation
Annotation Type AdminPresentation


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface AdminPresentation

Author:
jfischer

Required Element Summary
 java.lang.String friendlyName
          The friendly name to present to a user for this field in a GUI.
 
Optional Element Summary
 java.lang.String broadleafEnumeration
          For fields with a SupportedFieldType of BROADLEAF_ENUMERATION, you must specify the fully qualified class name of the Broadleaf Enumeration here.
 java.lang.String columnWidth
          Specify the column space this field will occupy in grid widgets.
 SupportedFieldType fieldType
          Explicity specify the type the GUI should consider this field Specifying UNKNOWN will cause the system to make its best guess
 java.lang.String group
          Specify a GUI grouping for this field Fields in the same group will be visually grouped together in the GUI
 int groupOrder
          Specify an order for this group.
 boolean hidden
          Whether or not the field should be hidden in the GUI
 boolean largeEntry
          If the field is a string, specify that the GUI provide a text area
 int order
          The order in which this field will appear in a GUI relative to other fields from the same class
 boolean prominent
          Provide a hint to the GUI about the prominence of this field.
 boolean readOnly
          Explicityly specify whether or not this field is mutable.
 java.lang.String securityLevel
          If a security level is specified, it is registered with org.broadleafcommerce.openadmin.client.security.SecurityManager The SecurityManager checks the permission of the current user to determine if this field should be disabled based on the specified level.
 ValidationConfiguration[] validationConfigurations
          Specify the validation to use for this field in the admin, if any
 

Element Detail

friendlyName

public abstract java.lang.String friendlyName
The friendly name to present to a user for this field in a GUI. If supporting i18N, the friendly name may be a key to retrieve a localized friendly name using the GWT support for i18N.

Returns:
the friendly name
See Also:
AdminMessages

securityLevel

public abstract java.lang.String securityLevel
If a security level is specified, it is registered with org.broadleafcommerce.openadmin.client.security.SecurityManager The SecurityManager checks the permission of the current user to determine if this field should be disabled based on the specified level.

Returns:
the security level
Default:
""

order

public abstract int order
The order in which this field will appear in a GUI relative to other fields from the same class

Returns:
the display order
Default:
99999

hidden

public abstract boolean hidden
Whether or not the field should be hidden in the GUI

Returns:
whether or not to hide
Default:
false

fieldType

public abstract SupportedFieldType fieldType
Explicity specify the type the GUI should consider this field Specifying UNKNOWN will cause the system to make its best guess

Returns:
the field type
Default:
org.broadleafcommerce.openadmin.client.presentation.SupportedFieldType.UNKNOWN

group

public abstract java.lang.String group
Specify a GUI grouping for this field Fields in the same group will be visually grouped together in the GUI

Returns:
the group for this field
Default:
"General"

groupOrder

public abstract int groupOrder
Specify an order for this group. Groups will be sorted in the resulting form in ascending order based on this parameter.

Returns:
the order for this group
Default:
99999

largeEntry

public abstract boolean largeEntry
If the field is a string, specify that the GUI provide a text area

Returns:
is a text area field
Default:
false

prominent

public abstract boolean prominent
Provide a hint to the GUI about the prominence of this field. For example, prominent fields will show up as a column in any list grid in the admin that displays this entity.

Returns:
whether or not this is a prominent field
Default:
false

columnWidth

public abstract java.lang.String columnWidth
Specify the column space this field will occupy in grid widgets. This value can be an absolute integer or a percentage. A value of "*" will make this field use up equally distributed space.

Returns:
the space utilized in grids for this field
Default:
"*"

broadleafEnumeration

public abstract java.lang.String broadleafEnumeration
For fields with a SupportedFieldType of BROADLEAF_ENUMERATION, you must specify the fully qualified class name of the Broadleaf Enumeration here.

Returns:
Broadleaf enumeration class name
Default:
""

readOnly

public abstract boolean readOnly
Explicityly specify whether or not this field is mutable.

Returns:
whether or not this field is read only
Default:
false

validationConfigurations

public abstract ValidationConfiguration[] validationConfigurations
Specify the validation to use for this field in the admin, if any

Returns:
the configuration for the validation
Default:
{}


Copyright © 2011. All Rights Reserved.