Class DisplayPersistenceDialogCommandHandler

    • Constructor Detail

      • DisplayPersistenceDialogCommandHandler

        public DisplayPersistenceDialogCommandHandler​(NatTable natTable)
        Create a new DisplayPersistenceDialogCommandHandler. Using this constructor the Properties instance used for save and load operations will be created. It can be accessed via getProperties() for further usage. The current state of the given NatTable instance will be used to store a default configuration.

        IMPORTANT:
        To store a default configuration in the view configuration management based on a given NatTable instance, you need to create and register the DisplayPersistenceDialogCommandHandler AFTER calling NatTable.configure(). Otherwise some state information might be missing and it could cause some unexpected behavior, like broken sorting for example.

        Parameters:
        natTable - The NatTable instance for which this handler is registered. If it is not null, the current state of that NatTable will be stored as default configuration. This default configuration can't be modified anymore in the opened dialog.
      • DisplayPersistenceDialogCommandHandler

        public DisplayPersistenceDialogCommandHandler​(Properties properties,
                                                      NatTable natTable)
        Create a new DisplayPersistenceDialogCommandHandler using the specified Properties instance. The current state of the given NatTable instance will be used to store a default configuration.

        IMPORTANT:
        To store a default configuration in the view configuration management based on a given NatTable instance, you need to create and register the DisplayPersistenceDialogCommandHandler AFTER calling NatTable.configure(). Otherwise some state information might be missing and it could cause some unexpected behavior, like broken sorting for example.

        Parameters:
        properties - The Properties instance that should be used for saving and loading.
        natTable - The NatTable instance for which this handler is registered. If it is not null, the current state of that NatTable will be stored as default configuration. This default configuration can't be modified anymore in the opened dialog.