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.Control
createExampleControl
(org.eclipse.swt.widgets.Composite parent) getName()
void
onStart()
void
onStop()
Methods inherited from class org.eclipse.nebula.widgets.nattable.examples.AbstractNatExample
log, setupTextArea
-
Constructor Details
-
PersistentNatExampleWrapper
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceINatExample
- Overrides:
getName
in classAbstractNatExample
-
getDescription
- Specified by:
getDescription
in interfaceINatExample
- Overrides:
getDescription
in classAbstractNatExample
-
getShortDescription
- Specified by:
getShortDescription
in interfaceINatExample
- Overrides:
getShortDescription
in classAbstractNatExample
-
createExampleControl
public org.eclipse.swt.widgets.Control createExampleControl(org.eclipse.swt.widgets.Composite parent) -
onStart
public void onStart()- Specified by:
onStart
in interfaceINatExample
- Overrides:
onStart
in classAbstractNatExample
-
onStop
public void onStop()- Specified by:
onStop
in interfaceINatExample
- Overrides:
onStop
in classAbstractNatExample
-