|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultTreeModel
org.gswing.components.common.gui.ConstituencyTreeModel
public class ConstituencyTreeModel
Models a tree view of constituencies. That is state contains regions, regions contains constituencies and councils and councils contain wards.
| Field Summary | |
|---|---|
static int |
ALL
|
static int |
CONSTITUENCIES_ONLY
|
static int |
COUNCILS_ONLY
|
| Fields inherited from class javax.swing.tree.DefaultTreeModel |
|---|
asksAllowsChildren, listenerList, root |
| Constructor Summary | |
|---|---|
ConstituencyTreeModel(IConstituencyBrowsing browser)
Tree model for full constituency tree. |
|
ConstituencyTreeModel(IConstituencyBrowsing browser,
char type)
Constructor for simple constituency tree. |
|
ConstituencyTreeModel(IConstituencyBrowsing browser,
int mode)
Tree model with a specified mode - ALL, CONSTITUENCIES_ONLY
or COUNCILS_ONLY |
|
ConstituencyTreeModel(IConstituencyBrowsing browser,
String councilName)
Constructor for local results. |
|
| Method Summary | |
|---|---|
void |
refreshNode(ConstituencyNode node,
char childType)
Refresh a node by deleting all exsting children and refetching the constituency list from the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ALL
public static final int CONSTITUENCIES_ONLY
public static final int COUNCILS_ONLY
| Constructor Detail |
|---|
public ConstituencyTreeModel(IConstituencyBrowsing browser,
char type)
browser - The constituency browser.type - The constituency type.public ConstituencyTreeModel(IConstituencyBrowsing browser)
browser - The constituency browser.
public ConstituencyTreeModel(IConstituencyBrowsing browser,
int mode)
ALL, CONSTITUENCIES_ONLY
or COUNCILS_ONLY
browser - The constituency browser.mode - The tree mode.
public ConstituencyTreeModel(IConstituencyBrowsing browser,
String councilName)
browser - The constituency browser.councilName - The parent council.| Method Detail |
|---|
public void refreshNode(ConstituencyNode node,
char childType)
node - The node to refresh.childType - The constituency type of the children
Result.COUNCIL, CONSTITUENCY or LOCAL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||