01: /*
02: * @(#) ConverterContext.java
03: *
04: * Copyright 2002 - 2003 JIDE Software. All rights reserved.
05: */
06: package com.jidesoft.grouper;
07:
08: import com.jidesoft.converter.AbstractContext;
09:
10: /**
11: * The context object used by ObjectGrouper.
12: * For the same type, we may need different way to group them. This context
13: * is used so that user can register different groupers for the same type.
14: */
15: public class GrouperContext extends AbstractContext {
16: /**
17: * Default converter context with empty name and no user object.
18: */
19: public static GrouperContext DEFAULT_CONTEXT = new GrouperContext(
20: "");
21:
22: /**
23: * Creates a converter context with a name.
24: *
25: * @param name the name of the grouper context.
26: */
27: public GrouperContext(String name) {
28: super (name);
29: }
30:
31: /**
32: * Creates a converter contex with a name and an object.
33: *
34: * @param name the name of the grouper context.
35: * @param object the user object. It can be used as any object to pass informaton along.
36: */
37: public GrouperContext(String name, Object object) {
38: super(name, object);
39: }
40: }
|