01: package examples;
02:
03: import javax.swing.*;
04:
05: import net.ar.webonswing.managers.persistence.*;
06: import net.ar.webonswing.ui.*;
07:
08: public class LabelPersistenceContributor extends LabelUIContributor {
09: public void doPersistenceContribution(
10: PersistenceContributionContainer aPersistenceManager) {
11: JLabel label = (JLabel) getJComponent();
12: aPersistenceManager.persistValue(theComponent,
13: new Object[] { label.getText() });
14: }
15:
16: public boolean isPersistedValueEqualToModel(
17: PersistenceContributionContainer aPersistenceManager) {
18: return false;
19: }
20: }
|