JRubik v0.6

es.aeat.eett.plugins.mdxMenu_Base
Class MenuManager

java.lang.Object
  extended byes.aeat.eett.plugins.mdxMenu_Base.MenuManager

public class MenuManager
extends java.lang.Object

Author:
f00992

Field Summary
private static java.lang.String CAR
           
private static java.lang.String DELETE
           
private static java.lang.String EMPETY_STRING
           
private static java.lang.String END_LIN
           
private static java.lang.String ERR_INI_MODEL
           
private static java.lang.String ERR_MOV
           
private static java.lang.String ERROR
           
private static java.lang.String EXECUTE_QUERY
           
private static MenuManager instance
           
protected static java.util.ResourceBundle localizationResources
           
private static org.apache.log4j.Logger logger
           
private static java.lang.String MNU
           
private static java.lang.String MOVE_FOLDER
           
private static java.lang.String NEW_BOOKMARK
           
private static java.lang.String NEW_FOLDER
           
private static java.lang.String NOMBRE_BOOKMARK
           
private static java.lang.String NOMBRE_FOLDER
           
private static java.lang.String XML
           
 
Constructor Summary
private MenuManager()
          Constructor
 
Method Summary
(package private)  ItemMenu createNewCarpeta(java.io.File dir)
           
(package private)  ItemMenu createNewMarca(java.io.File dir, org.jdom.Element eVier)
           
(package private)  boolean delete(NodeMenu nodo, JTreeMenu jTreeMenu)
           
 void executeMdx(org.jdom.Element eRubikMdx)
           
 void executeMdx(RubikMdx rm)
           
 org.jdom.Element executeMdx(java.lang.String nameFile)
           
static MenuManager getInstance()
           
(package private)  void moveMenus(NodeMenu nInicial, NodeMenu nFinal, JTreeMenu jTreeMenu)
          Mueve el nodo nInicial detras de el nodo nFinal, siendo jTreeMenu el JTree que contiene a ambos nodos.
private  void moveMenusHermanos(NodeMenu nInicial, NodeMenu nFinal, JTreeMenu jTreeMenu)
           
private  void moveMenusNoHermanos(NodeMenu nInicial, NodeMenu nFinal, JTreeMenu jTreeMenu)
           
private  boolean removeTreeMenus(java.io.File file)
           
(package private)  boolean rename(NodeMenu nodo, java.lang.String newName)
           
private  void updateAlias(NodeMenu nodo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localizationResources

protected static java.util.ResourceBundle localizationResources

logger

private static org.apache.log4j.Logger logger

NOMBRE_FOLDER

private static final java.lang.String NOMBRE_FOLDER

NOMBRE_BOOKMARK

private static final java.lang.String NOMBRE_BOOKMARK

ERR_MOV

private static final java.lang.String ERR_MOV

ERROR

private static final java.lang.String ERROR

ERR_INI_MODEL

private static final java.lang.String ERR_INI_MODEL

EXECUTE_QUERY

private static final java.lang.String EXECUTE_QUERY

NEW_FOLDER

private static final java.lang.String NEW_FOLDER

NEW_BOOKMARK

private static final java.lang.String NEW_BOOKMARK

DELETE

private static final java.lang.String DELETE

MOVE_FOLDER

private static final java.lang.String MOVE_FOLDER

EMPETY_STRING

private static final java.lang.String EMPETY_STRING

CAR

private static final java.lang.String CAR
See Also:
Constant Field Values

MNU

private static final java.lang.String MNU
See Also:
Constant Field Values

XML

private static final java.lang.String XML
See Also:
Constant Field Values

END_LIN

private static final java.lang.String END_LIN
See Also:
Constant Field Values

instance

private static MenuManager instance
Constructor Detail

MenuManager

private MenuManager()
Constructor

Method Detail

getInstance

public static MenuManager getInstance()

executeMdx

public org.jdom.Element executeMdx(java.lang.String nameFile)
                            throws java.lang.Exception
Parameters:
nameFile -
Returns:
the root element
Throws:
java.lang.Exception

executeMdx

public void executeMdx(org.jdom.Element eRubikMdx)
                throws java.lang.Exception
Throws:
java.lang.Exception

executeMdx

public void executeMdx(RubikMdx rm)
                throws java.lang.Exception
Throws:
java.lang.Exception

createNewCarpeta

ItemMenu createNewCarpeta(java.io.File dir)
                    throws java.lang.Exception
Throws:
java.lang.Exception

createNewMarca

ItemMenu createNewMarca(java.io.File dir,
                        org.jdom.Element eVier)
                  throws java.lang.Exception
Throws:
java.lang.Exception

delete

boolean delete(NodeMenu nodo,
               JTreeMenu jTreeMenu)

rename

boolean rename(NodeMenu nodo,
               java.lang.String newName)
         throws java.lang.Exception
Throws:
java.lang.Exception

removeTreeMenus

private boolean removeTreeMenus(java.io.File file)

moveMenus

void moveMenus(NodeMenu nInicial,
               NodeMenu nFinal,
               JTreeMenu jTreeMenu)
         throws java.lang.Exception
Mueve el nodo nInicial detras de el nodo nFinal, siendo jTreeMenu el JTree que contiene a ambos nodos.

Parameters:
nInicial -
nFinal -
jTreeMenu -
Throws:
java.lang.Exception

moveMenusHermanos

private void moveMenusHermanos(NodeMenu nInicial,
                               NodeMenu nFinal,
                               JTreeMenu jTreeMenu)
                        throws java.lang.Exception
Throws:
java.lang.Exception

moveMenusNoHermanos

private void moveMenusNoHermanos(NodeMenu nInicial,
                                 NodeMenu nFinal,
                                 JTreeMenu jTreeMenu)
                          throws java.lang.Exception
Throws:
java.lang.Exception

updateAlias

private void updateAlias(NodeMenu nodo)
                  throws java.lang.Exception
Throws:
java.lang.Exception

JRubik v0.6

JRubik v0.6