

Public Member Functions | |
| CategoryBean (Category category) | |
| void | setSelected (boolean flag) |
| boolean | isSelected () |
| void | setChildrenSelectionState (int state) |
| int | getChildrenSelectionState () |
| Category | getCategory () |
| java.awt.Image | getNodeIcon () |
| String | getName () |
| String | getPath () |
| String | getDisplayName () |
| Integer | getCategoryId () |
| String | getShortDescription () |
| String[] | getNodeActions () |
| String | getNodeDefaultAction () |
| Object | clone () throws CloneNotSupportedException |
| void | setCloned () |
| PropertyInfo[] | getPropertyInfo () |
Static Public Attributes | |
| static final int | STATE_CHILDREN_NOT_SELECTED = 1 |
| static final int | STATE_CHILDREN_PARTIALY_SELECTED = 2 |
| static final int | STATE_CHILDREN_ALL_SELECTED = 3 |
Static Package Attributes | |
| static Logger | logger = LogFactory.getLogger(CategoryBean.class.getName()) |
Private Attributes | |
| Category | category = null |
| boolean | isCloned = false |
| int | childrenSelectionState = STATE_CHILDREN_NOT_SELECTED |
| boolean | isSelected = false |
Static Private Attributes | |
| static final String[] | nodeActions |
| static final String[] | clonedNodeActions |
| static final String | defaultNodeActionSelected = RemoveCategoryAction.class.getName() |
| static final String | defaultNodeActionNotSelected = AddCategoryAction.class.getName() |
| static final String | defaultClonedNodeAction = RemoveCategoryAction.class.getName() |
| cern::laser::guiplatform::category::CategoryBean::CategoryBean | ( | Category | category | ) | [inline] |
Creates a new instance of CategoryTest
Referenced by clone().
| Object cern::laser::guiplatform::category::CategoryBean::clone | ( | ) | throws CloneNotSupportedException [inline] |
from Cloneable interface
References category, CategoryBean(), and setCloned().
| Category cern::laser::guiplatform::category::CategoryBean::getCategory | ( | ) | [inline] |
References category.
Referenced by cern::laser::guiplatform::windows::search::CategorySelectorWindow::getChoosenCategories().
| Integer cern::laser::guiplatform::category::CategoryBean::getCategoryId | ( | ) | [inline] |
| int cern::laser::guiplatform::category::CategoryBean::getChildrenSelectionState | ( | ) | [inline] |
References childrenSelectionState.
Referenced by getNodeIcon().
| String cern::laser::guiplatform::category::CategoryBean::getDisplayName | ( | ) | [inline] |
Returns the internal display name of the associated bean. If null is returned a default name will be used.
displayName normal (visible in a property sheet) if getName() is available it is used instead of getDisplayName(), else beanInfo.getBeanDescriptor().getDisplayName() is used Reimplemented from cern::gp::beans::BeanSupport.
References category, and cern::laser::client::data::Category::getName().
| String cern::laser::guiplatform::category::CategoryBean::getName | ( | ) | [inline] |
Returns the internal name of the associated bean. If null is returned a default name will be used.
name normal (visible in a property sheet) a unique name generated using BeanUtils. generateUniqueBeanName() Reimplemented from cern::gp::beans::BeanSupport.
References category, and cern::laser::client::data::Category::getName().
| String [] cern::laser::guiplatform::category::CategoryBean::getNodeActions | ( | ) | [inline] |
Returns an array of qualified name of actions for the node representing the associated bean. Null can be used in the array to represent a separator.
nodeActions hidden (not visible in a property sheet) use the possible tagging of the BeanDescriptor of the BeanInfo : BeanTagger.getActions(beanInfo.getBeanDescriptor()) Reimplemented from cern::gp::beans::BeanSupport.
References clonedNodeActions, isCloned, and nodeActions.
| String cern::laser::guiplatform::category::CategoryBean::getNodeDefaultAction | ( | ) | [inline] |
Returns the qualified name of the default action for the node representing the associated bean. The default action is the one triggered when the user double-clic on the node. If null is returned a default default action will be used.
nodeDefaultAction hidden use the possible tagging of the BeanDescriptor of the BeanInfo : BeanTagger.getDefaultAction(beanInfo.getBeanDescriptor()) Reimplemented from cern::gp::beans::BeanSupport.
References defaultClonedNodeAction, defaultNodeActionNotSelected, defaultNodeActionSelected, isCloned, and isSelected().
| java.awt.Image cern::laser::guiplatform::category::CategoryBean::getNodeIcon | ( | ) | [inline] |
Returns the icon in 16x16 size used to display the node representing the associated bean. If null is returned a default icon will be used.
nodeIcon hidden (not visible in a property sheet) beanInfo.getIcon() Reimplemented from cern::gp::beans::BeanSupport.
References getChildrenSelectionState(), isCloned, isSelected(), STATE_CHILDREN_ALL_SELECTED, STATE_CHILDREN_NOT_SELECTED, and STATE_CHILDREN_PARTIALY_SELECTED.
Referenced by setChildrenSelectionState(), and setSelected().
| String cern::laser::guiplatform::category::CategoryBean::getPath | ( | ) | [inline] |
| PropertyInfo [] cern::laser::guiplatform::category::CategoryBean::getPropertyInfo | ( | ) | [inline] |
Returns an array of PropertyInfo specifying information on some properties.
Each PropertyInfo of this array defines information for one property of this bean. Defining a PropertyInfo for a given property is usefull when there is no explicit BeanInfo for the bean and when the property have non default characteristics such as, for instance, a specific PropertyEditor.
propertyInfo hidden (not visible in a property sheet) use PropertyDescriptors from BeanInfo Reimplemented from cern::gp::beans::BeanSupport.
| String cern::laser::guiplatform::category::CategoryBean::getShortDescription | ( | ) | [inline] |
Returns a short description of the associated bean (used in tooltip for instance). If null is returned a default description will be used.
shortDescription normal (visible in a property sheet) beanInfo.getBeanDescriptor(). getShortDescription() Reimplemented from cern::gp::beans::BeanSupport.
References category, and cern::laser::client::data::Category::getDescription().
| boolean cern::laser::guiplatform::category::CategoryBean::isSelected | ( | ) | [inline] |
Referenced by getNodeDefaultAction(), getNodeIcon(), and setSelected().
| void cern::laser::guiplatform::category::CategoryBean::setChildrenSelectionState | ( | int | state | ) | [inline] |
| void cern::laser::guiplatform::category::CategoryBean::setCloned | ( | ) | [inline] |
| void cern::laser::guiplatform::category::CategoryBean::setSelected | ( | boolean | flag | ) | [inline] |
Category cern::laser::guiplatform::category::CategoryBean::category = null [private] |
category
Referenced by clone(), getCategory(), getCategoryId(), getDisplayName(), getName(), getPath(), and getShortDescription().
int cern::laser::guiplatform::category::CategoryBean::childrenSelectionState = STATE_CHILDREN_NOT_SELECTED [private] |
Referenced by getChildrenSelectionState(), and setChildrenSelectionState().
final String [] cern::laser::guiplatform::category::CategoryBean::clonedNodeActions [static, private] |
new String[] {
DeleteChoosenCategoryAction.class.getName(),
DeleteAllChoosenCategoryAction.class.getName(),
null,
ShowAlarmByCategoryAction.class.getName(), }
Referenced by getNodeActions().
final String cern::laser::guiplatform::category::CategoryBean::defaultClonedNodeAction = RemoveCategoryAction.class.getName() [static, private] |
Referenced by getNodeDefaultAction().
final String cern::laser::guiplatform::category::CategoryBean::defaultNodeActionNotSelected = AddCategoryAction.class.getName() [static, private] |
Referenced by getNodeDefaultAction().
final String cern::laser::guiplatform::category::CategoryBean::defaultNodeActionSelected = RemoveCategoryAction.class.getName() [static, private] |
Referenced by getNodeDefaultAction().
boolean cern::laser::guiplatform::category::CategoryBean::isCloned = false [private] |
indicates that this bean is cloned or not
Referenced by getNodeActions(), getNodeDefaultAction(), getNodeIcon(), and setCloned().
boolean cern::laser::guiplatform::category::CategoryBean::isSelected = false [private] |
Logger cern::laser::guiplatform::category::CategoryBean::logger = LogFactory.getLogger(CategoryBean.class.getName()) [static, package] |
logger
final String [] cern::laser::guiplatform::category::CategoryBean::nodeActions [static, private] |
new String[] {
AddCategoryAction.class.getName(),
AddSubCategoriesAction.class.getName(),
null,
RemoveCategoryAction.class.getName(),
RemoveSubCategoriesAction.class.getName(),
null,
ShowAlarmByCategoryAction.class.getName(), }
Referenced by getNodeActions().
final int cern::laser::guiplatform::category::CategoryBean::STATE_CHILDREN_ALL_SELECTED = 3 [static] |
Referenced by getNodeIcon().
final int cern::laser::guiplatform::category::CategoryBean::STATE_CHILDREN_NOT_SELECTED = 1 [static] |
Referenced by getNodeIcon().
final int cern::laser::guiplatform::category::CategoryBean::STATE_CHILDREN_PARTIALY_SELECTED = 2 [static] |
Referenced by getNodeIcon().
1.6.2