Class PersistentNatExampleWrapper
java.lang.Object
org.eclipse.nebula.widgets.nattable.examples.AbstractNatExample
org.eclipse.nebula.widgets.nattable.examples.PersistentNatExampleWrapper
- All Implemented Interfaces:
INatExample
- Direct Known Subclasses:
PersistentColumnGroupGridExample,PersistentDefaultGridExample
Adds hooks to the
onStart() and onStop() methods to
save the settings to a properties file.
The following state is persisted out of the box
- Column widths
- Column order
- Hidden columns
- Row heights
- Column groups
ILayer.-
Field Summary
Fields inherited from interface org.eclipse.nebula.widgets.nattable.examples.INatExample
BASE_PACKAGE, BASE_PATH, CLASSIC_BASE_PACKAGE, CLASSIC_BASE_PATH, CLASSIC_EXAMPLES_PREFIX, TUTORIAL_EXAMPLES_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.ControlcreateExampleControl(org.eclipse.swt.widgets.Composite parent) getName()voidonStart()voidonStop()Methods inherited from class org.eclipse.nebula.widgets.nattable.examples.AbstractNatExample
log, setupTextArea
-
Constructor Details
-
PersistentNatExampleWrapper
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceINatExample- Overrides:
getNamein classAbstractNatExample
-
getDescription
- Specified by:
getDescriptionin interfaceINatExample- Overrides:
getDescriptionin classAbstractNatExample
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceINatExample- Overrides:
getShortDescriptionin classAbstractNatExample
-
createExampleControl
public org.eclipse.swt.widgets.Control createExampleControl(org.eclipse.swt.widgets.Composite parent) -
onStart
public void onStart()- Specified by:
onStartin interfaceINatExample- Overrides:
onStartin classAbstractNatExample
-
onStop
public void onStop()- Specified by:
onStopin interfaceINatExample- Overrides:
onStopin classAbstractNatExample
-