toxtree.ui.tree
Class SelectListDialog

java.lang.Object
  extended by toxtree.ui.tree.SelectListDialog

public class SelectListDialog
extends java.lang.Object

A singleton class, providing several methods to select an object from a List.
Launches a modal dialogs with optional buttons on the right. Buttons are created from an optional ActionMap
Uses JOptionPane

Author:
Nina Jeliazkova

Constructor Summary
protected SelectListDialog()
          Singleton class
 
Method Summary
static java.lang.Object selectFromList(java.awt.Component parent, java.lang.String dlgCaption, java.lang.String panelCaption, ListTableModel list, javax.swing.ActionMap actions)
           
static java.lang.Object selectFromList(java.awt.Component parent, java.lang.String dlgCaption, java.lang.String panelCaption, ListTableModel list, javax.swing.ActionMap actions, java.awt.Dimension size)
           
static java.lang.Object selectFromList(java.lang.String caption, ListPanel[] panels)
          Launches a dialog with a several lists arranged in a JTabbedPane.
static IDecisionCategory selectNewCategory(java.awt.Component parent, java.lang.ClassLoader classLoader)
          Provides a list of names of the classes implementing IDecisionCategory If the user selects an object, the tree is created and returned
Uses Introspection.getAvailableCategoryTypes(ClassLoader)
static DecisionNode selectNewNode(java.awt.Component parent, java.lang.ClassLoader classLoader)
          Provides a list of names of the classes implementing IDecisionRule If the user selects an object, a DecisionNode containing the rule is created and returned
Uses Introspection.getAvailableRuleTypes(ClassLoader)
static IDecisionRule selectNewRule(java.awt.Component parent, java.lang.ClassLoader classLoader)
          Provides a list of names of the classes implementing IDecisionRule If the user selects an object, the rule is created and returned
Uses Introspection.getAvailableRuleTypes(ClassLoader)
static IDecisionMethod selectNewTree(java.awt.Component parent, java.lang.ClassLoader classLoader)
          Provides a list of names of the classes implementing IDecisionMethod If the user selects a name, the tree is created and returned
Uses Introspection.getAvailableTreeTypes(ClassLoader)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectListDialog

protected SelectListDialog()
Singleton class

Method Detail

selectFromList

public static java.lang.Object selectFromList(java.awt.Component parent,
                                              java.lang.String dlgCaption,
                                              java.lang.String panelCaption,
                                              ListTableModel list,
                                              javax.swing.ActionMap actions)

selectFromList

public static java.lang.Object selectFromList(java.awt.Component parent,
                                              java.lang.String dlgCaption,
                                              java.lang.String panelCaption,
                                              ListTableModel list,
                                              javax.swing.ActionMap actions,
                                              java.awt.Dimension size)

selectFromList

public static java.lang.Object selectFromList(java.lang.String caption,
                                              ListPanel[] panels)
Launches a dialog with a several lists arranged in a JTabbedPane.

Parameters:
caption - dialog caption
panels - an array of ListPanel to be arranged as tab pages
Returns:
Object the selected object

selectNewRule

public static IDecisionRule selectNewRule(java.awt.Component parent,
                                          java.lang.ClassLoader classLoader)
Provides a list of names of the classes implementing IDecisionRule If the user selects an object, the rule is created and returned
Uses Introspection.getAvailableRuleTypes(ClassLoader)

Parameters:
classLoader -
Returns:
the rule selected

selectNewNode

public static DecisionNode selectNewNode(java.awt.Component parent,
                                         java.lang.ClassLoader classLoader)
Provides a list of names of the classes implementing IDecisionRule If the user selects an object, a DecisionNode containing the rule is created and returned
Uses Introspection.getAvailableRuleTypes(ClassLoader)

Parameters:
classLoader -
Returns:
the decision node

selectNewTree

public static IDecisionMethod selectNewTree(java.awt.Component parent,
                                            java.lang.ClassLoader classLoader)
Provides a list of names of the classes implementing IDecisionMethod If the user selects a name, the tree is created and returned
Uses Introspection.getAvailableTreeTypes(ClassLoader)

Parameters:
classLoader -
Returns:
tree instance IDecisionMethod

selectNewCategory

public static IDecisionCategory selectNewCategory(java.awt.Component parent,
                                                  java.lang.ClassLoader classLoader)
Provides a list of names of the classes implementing IDecisionCategory If the user selects an object, the tree is created and returned
Uses Introspection.getAvailableCategoryTypes(ClassLoader)

Parameters:
classLoader -
Returns:
a decision category IDecisionCategory


Copyright © 2004-2012 Ideaconsult Ltd.. All Rights Reserved.