All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IQueueRegion, IHeaderContributor, IRequestableComponent, org.apache.wicket.util.IHierarchical<Component>, org.apache.wicket.util.io.IClusterable

public class ExportToolbar extends AbstractToolbar
A toolbar that provides links to download the data represented by all IExportableColumns in the table exported to formats supported by the IDataExporters configured.
Author:
Jesse Long
See Also:
  • Constructor Details

    • ExportToolbar

      public ExportToolbar(DataTable<?,?> table)
      Creates a new instance with the default message model. This instance will use "export." as the exported file name prefix.
      Parameters:
      table - The data table this toolbar belongs to.
    • ExportToolbar

      public ExportToolbar(DataTable<?,?> table, IModel<String> fileNameModel)
      Creates a new instance with the provided data table and file name model.
      Parameters:
      table - The table to which this toolbar belongs.
      fileNameModel - The model of the file name. This should exclude the file extensions.
    • ExportToolbar

      public ExportToolbar(DataTable<?,?> table, IModel<String> messageModel, IModel<String> fileNameModel)
      Creates a new instance.
      Parameters:
      table - The table to which this toolbar belongs.
      messageModel - The model of the export message.
      fileNameModel - The model of the file name. This should exclude the file extensions.
  • Method Details