
Public Member Functions | |
| ChooseCategoryPanel (Configuration configuration) | |
| ChooseCategoryPanel (Category[] choosenCategories) | |
| Collection | getChoosenCategories () |
| Category[] | getChoosenCategoriesArray () |
| void | updateCategoryTreeExplorer () |
| void | loadAllCategoriesInTreeExplorer () |
| void | reset () |
| void | addCategory (GPNode node) throws IntrospectionException, CloneNotSupportedException |
| void | addCategoryWithoutChildren (GPNode node) throws IntrospectionException, CloneNotSupportedException |
| void | addSubCategories (GPNode node) throws IntrospectionException, CloneNotSupportedException |
| void | removeCategoryWithoutChildren (GPNode node) throws IntrospectionException, CloneNotSupportedException |
| void | removeSubCategories (GPNode node) throws IntrospectionException, CloneNotSupportedException |
| void | removeCategory (GPNode node) |
| void | removeAllCategories () |
| void | updateCategorySelection (Configuration newConfiguration) throws LaserConsoleException |
| void | updateState () |
| void | updateSelection () |
Private Member Functions | |
| void | initComponents () |
| CategoryTreeExplorer | createCategoryTree () throws LaserException |
| ChoosenCategoryExplorer | createChoosenCategoryList (List categories) |
| int | updateState (GPNode gpNode) throws CloneNotSupportedException |
| void | updateSelection (GPNode gpNode) throws CloneNotSupportedException |
Private Attributes | |
| JPanel | buttonsPanel = null |
| CategoryTreeExplorer | categoryTreeExpl = null |
| ChoosenCategoryExplorer | choosenCategoryExpl = null |
| Configuration | configuration = null |
| Category[] | choosenCategories = null |
Static Private Attributes | |
| static Logger | logger |
| static final String | configureTreeName = "Available categories" |
| static final String | choosenConfigurationName = "Choosen categories" |
| cern::laser::guiplatform::windows::category::ChooseCategoryPanel::ChooseCategoryPanel | ( | Configuration | configuration | ) | [inline] |
Creates a new instance of ChooseCategoryPanel
| configuration | configuration to be shown |
References initComponents().
| cern::laser::guiplatform::windows::category::ChooseCategoryPanel::ChooseCategoryPanel | ( | Category[] | choosenCategories | ) | [inline] |
References initComponents().
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::addCategory | ( | GPNode | node | ) | throws IntrospectionException, CloneNotSupportedException [inline] |
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::addCategoryWithoutChildren | ( | GPNode | node | ) | throws IntrospectionException, CloneNotSupportedException [inline] |
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::addSubCategories | ( | GPNode | node | ) | throws IntrospectionException, CloneNotSupportedException [inline] |
| CategoryTreeExplorer cern::laser::guiplatform::windows::category::ChooseCategoryPanel::createCategoryTree | ( | ) | throws LaserException [inline, private] |
This method creates category tree
References cern::laser::client::services::browsing::CategoryBrowsingHandler::getCategoryTreeRoot(), and logger.
Referenced by initComponents().
| ChoosenCategoryExplorer cern::laser::guiplatform::windows::category::ChooseCategoryPanel::createChoosenCategoryList | ( | List | categories | ) | [inline, private] |
This method creates list with choosen categories for given user
| categories | List with Category objects |
References choosenCategoryExpl.
Referenced by initComponents().
| Collection cern::laser::guiplatform::windows::category::ChooseCategoryPanel::getChoosenCategories | ( | ) | [inline] |
This method returns list with categories choosen by user methods for setting category selection
Collection with choosen categories References choosenCategoryExpl, and cern::laser::guiplatform::windows::category::ChoosenCategoryExplorer::getChoosenCategories().
Referenced by cern::laser::guiplatform::windows::configuration::ConsoleConfigurationPanel::createConfiguration(), and getChoosenCategoriesArray().
| Category [] cern::laser::guiplatform::windows::category::ChooseCategoryPanel::getChoosenCategoriesArray | ( | ) | [inline] |
References getChoosenCategories().
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::initComponents | ( | ) | [inline, private] |
Created a new instance of ChooseCategoryPanel
References buttonsPanel, categoryTreeExpl, choosenCategories, choosenCategoryExpl, choosenConfigurationName, configuration, configureTreeName, createCategoryTree(), createChoosenCategoryList(), cern::laser::client::services::selection::Selection::getCategorySelection(), cern::laser::client::LaserException::getRootCause(), cern::laser::console::Configuration::getSelection(), and logger.
Referenced by ChooseCategoryPanel().
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::loadAllCategoriesInTreeExplorer | ( | ) | [inline] |
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::removeAllCategories | ( | ) | [inline] |
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::removeCategory | ( | GPNode | node | ) | [inline] |
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::removeCategoryWithoutChildren | ( | GPNode | node | ) | throws IntrospectionException, CloneNotSupportedException [inline] |
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::removeSubCategories | ( | GPNode | node | ) | throws IntrospectionException, CloneNotSupportedException [inline] |
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::reset | ( | ) | [inline] |
This method reset this panel
References choosenCategoryExpl, and cern::laser::guiplatform::windows::category::ChoosenCategoryExplorer::removeAllCategories().
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::updateCategorySelection | ( | Configuration | newConfiguration | ) | throws LaserConsoleException [inline] |
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::updateCategoryTreeExplorer | ( | ) | [inline] |
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::updateSelection | ( | GPNode | gpNode | ) | throws CloneNotSupportedException [inline, private] |
References choosenCategoryExpl, cern::laser::guiplatform::windows::category::ChoosenCategoryExplorer::contains(), cern::gp::nodes::children::NodeCollection::getChildrenManager(), cern::gp::nodes::children::NodeList::iterator(), cern::laser::guiplatform::category::CategoryBean::setSelected(), and updateSelection().
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::updateSelection | ( | ) | [inline] |
References categoryTreeExpl, and cern::gp::explorer::TreeExplorer::getRootNode().
Referenced by updateCategoryTreeExplorer(), and updateSelection().
| int cern::laser::guiplatform::windows::category::ChooseCategoryPanel::updateState | ( | GPNode | gpNode | ) | throws CloneNotSupportedException [inline, private] |
| void cern::laser::guiplatform::windows::category::ChooseCategoryPanel::updateState | ( | ) | [inline] |
References categoryTreeExpl, and cern::gp::explorer::TreeExplorer::getRootNode().
Referenced by updateCategoryTreeExplorer(), and updateState().
JPanel cern::laser::guiplatform::windows::category::ChooseCategoryPanel::buttonsPanel = null [private] |
Panel where are buttons (add, add all, remove, remove all)
Referenced by initComponents().
CategoryTreeExplorer cern::laser::guiplatform::windows::category::ChooseCategoryPanel::categoryTreeExpl = null [private] |
tree explorer which dispaly category tree
Referenced by initComponents(), loadAllCategoriesInTreeExplorer(), updateSelection(), and updateState().
Category [] cern::laser::guiplatform::windows::category::ChooseCategoryPanel::choosenCategories = null [private] |
Referenced by initComponents().
ChoosenCategoryExplorer cern::laser::guiplatform::windows::category::ChooseCategoryPanel::choosenCategoryExpl = null [private] |
list explorer with choosen categories
Referenced by addCategory(), addCategoryWithoutChildren(), addSubCategories(), createChoosenCategoryList(), getChoosenCategories(), initComponents(), removeAllCategories(), removeCategory(), removeCategoryWithoutChildren(), removeSubCategories(), reset(), updateCategorySelection(), and updateSelection().
final String cern::laser::guiplatform::windows::category::ChooseCategoryPanel::choosenConfigurationName = "Choosen categories" [static, private] |
Referenced by initComponents().
Configuration cern::laser::guiplatform::windows::category::ChooseCategoryPanel::configuration = null [private] |
configuration to be shown
Referenced by initComponents().
final String cern::laser::guiplatform::windows::category::ChooseCategoryPanel::configureTreeName = "Available categories" [static, private] |
configuration variables
Referenced by initComponents().
Logger cern::laser::guiplatform::windows::category::ChooseCategoryPanel::logger [static, private] |
LogFactory.getLogger(ChooseCategoryPanel.class.getName())
Referenced by createCategoryTree(), and initComponents().
1.6.2