head	1.4;
access;
symbols;
locks
	nobody:1.4; strict;
comment	@# @;


1.4
date	99.07.21.17.52.14;	author nobody;	state Exp;
branches;
next	1.3;

1.3
date	99.07.21.17.51.55;	author nobody;	state Exp;
branches;
next	1.2;

1.2
date	99.07.21.17.51.39;	author nobody;	state Exp;
branches;
next	1.1;

1.1
date	99.07.21.17.51.31;	author nobody;	state Exp;
branches;
next	;


desc
@null
@


1.4
log
@null
@
text
@IDependOn-Set: 1
IDependOn-Set: 122
IDependOn-Set: 244
IDependOn-Set: 247
IDependOn-Set: 256
LastModifiedSecs: 932579534
Parent: 244
SequenceNumber: 2
Title: A great idea about filter usage...
Part: 0
Author-Set: jon@@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 932579534
Type: monospaced
Lines: 49
----------
From: "Doug Ahmann" <douga@@zoapworks.com>
To: "ECS" <ecs@@list.working-dogs.com>
Subject: ECS usage idea
Date: Wed, Jul 21, 1999, 9:46 AM


I've been thinking over the whole filter issue and wanted some opinions on
the following suggestion.

I'm turning filtering off by default in the properties. This allows me to do
the more common cases that I do such as:

something.addElement("Some text" + Entities.NBSP + "some more text");

without having to setFilterState(false).

Then, if I have a document I'm generating where I need to filter stuff I
simply create a filter object locally:

CharacterFilter filter = new CharacterFilter();

...

something
        .addElement(new BR())
        .addElement("Some text" + Entities.NBSP + filter.process("This & that"))
        .addElement(new Font("Times")
                .addElement(...

I could even have a few instances of custom filters in some globally
available place and reuse them.

The upside is that it avoids the problem of not being able to chain together
the .setFilterState() calls with addElement calls. It also removes the
overhead of ALWAYS filtering "just in case".

The downside is that it requires you to "manually" remember to filter items
that need filtering.

Can anyone think of any reason why this practice will bite me later on?

Thanks,
Doug

------------------------------------------------------------
Doug Ahmann
Zoapworks Inc.
(651) 762-1226 x203
EndPart: 0
@


1.3
log
@null
@
text
@d6 1
a6 1
LastModifiedSecs: 932579515
d8 1
a8 1
SequenceNumber: 1
d10 56
@


1.2
log
@null
@
text
@d6 1
a6 1
LastModifiedSecs: 932579491
d8 2
a9 2
SequenceNumber: 0
Title: New Item
@


1.1
log
@null
@
text
@d4 1
@
