-
Notifications
You must be signed in to change notification settings - Fork 254
Configuring list view, quick view, and show view display
ikostenko edited this page Mar 24, 2013
·
14 revisions
On the domain view, three views are present to display data:
- List View
- Show View
- Quick View
Each of the views may have its own set of fields. By default, all persistent entity fields of the following types are displayed:
- Byte
- Short
- Integer
- Long
- Float
- Double
- BigDecimal
- Date
- String
However, it is possible to narrow down the list of fields by explicitly specifying fields to be displayed:
@Administration( User.class )
public class UserAdministration {
public static FieldSetConfigurationUnit listView( final FieldSetConfigurationUnitBuilder fragmentBuilder ) {
return fragmentBuilder
.field( "firstname" ).caption( "First Name" )
.field( "lastname" ).caption( "Last Name" ).build();
}
public static FieldSetConfigurationUnit quickView( final FieldSetConfigurationUnitBuilder fragmentBuilder ) {
return fragmentBuilder
.field( "firstname" ).caption( "First Name" )
.field( "lastname" ).caption( "Last Name" ).build();
}
public static FieldSetConfigurationUnit showView( final FieldSetConfigurationUnitBuilder fragmentBuilder ) {
return fragmentBuilder
.field( "firstname" ).caption( "First Name" )
.field( "lastname" ).caption( "Last Name" )
.field( "emailAddress" ).caption( "Email Address" ).build();
}
}