Skip to content

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

By default, all persistent fields are displayed for the above views. However, for each of the views, it is possible to define its own set of fields as follows:

@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();
	}

}