Package org.xrace.util.bo

Examples of org.xrace.util.bo.BusinessObject


    @Override
    protected String renderNode(final TreeNode node)
    {
      final XRaceTreeNode treeNode = (XRaceTreeNode) node;
      final BusinessObject userObject = treeNode.getUserObject();
      String caption = null;

      if (userObject instanceof Saison)
      {
        caption = ((Saison) userObject).getNom();
View Full Code Here


     * Mets à jour (récursivement) l'état d'un {@link TreeNode} à partir de son
     * {@link TreeNodeState} dans la session.
     */
    private void updateNodeState(XRaceTreeNode treeNode)
    {
      BusinessObject userObject = treeNode.getUserObject();
      if (userObject != null)
      {
        TreeNodeState<ParametresGestionEvenements, ? extends BusinessObject> state = getXRaceSession()
            .getParametresGestionEvenements().getTreeNodeState(
                userObject.getClass(), userObject.getId());

        if (state.isExpanded())
        {
          getTreeState().expandNode(treeNode);
        }
View Full Code Here

      }
    }

    private void updateSession(XRaceTreeNode node)
    {
      BusinessObject userObject = node.getUserObject();
      if (userObject != null)
      {
        Class<? extends BusinessObject> userObjectClazz = userObject
            .getClass();
        TreeNodeState<ParametresGestionEvenements, ?> state = getXRaceSession()
            .getParametresGestionEvenements().getTreeNodeState(
                userObjectClazz, userObject.getId());
        state.setExpanded(getTreeState().isNodeExpanded(node));
        state.setSelected(getTreeState().isNodeSelected(node));
      }
    }
View Full Code Here

TOP

Related Classes of org.xrace.util.bo.BusinessObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.