org.jtheque.primary
Class PrimaryUtils

java.lang.Object
  extended by org.jtheque.primary.PrimaryUtils

public final class PrimaryUtils
extends Object

The primary utils. This class give to modules some utilities methods to construct primary module.

Author:
Baptiste Wicht

Method Summary
static void enableMenu(List<org.jtheque.core.managers.feature.Feature> addFeatures, List<org.jtheque.core.managers.feature.Feature> removeFeatures, List<org.jtheque.core.managers.feature.Feature> editFeatures)
          Enable the menu of the primary utils module.
static String getPrimaryImpl()
          Return the current primary implementation.
static void plug()
          Plug the elements of the utils.
static void prePlug()
          Preplug the elements of the utils.
static void setPrimaryImpl(String primaryImpl)
          Set the current primary implementation.
static void unplug()
          Unplug the elements of the utils.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

prePlug

public static void prePlug()
Preplug the elements of the utils.


plug

public static void plug()
Plug the elements of the utils.


unplug

public static void unplug()
Unplug the elements of the utils.


getPrimaryImpl

public static String getPrimaryImpl()
Return the current primary implementation.

Returns:
The current primary implementation.

setPrimaryImpl

public static void setPrimaryImpl(String primaryImpl)
Set the current primary implementation.

Parameters:
primaryImpl - The current primary implementation.

enableMenu

public static void enableMenu(List<org.jtheque.core.managers.feature.Feature> addFeatures,
                              List<org.jtheque.core.managers.feature.Feature> removeFeatures,
                              List<org.jtheque.core.managers.feature.Feature> editFeatures)
Enable the menu of the primary utils module.

Parameters:
addFeatures - The sub features of the add menu.
removeFeatures - The sub features of the remove menu.
editFeatures - The sub features of the edit menu.


Copyright © 2010 JTheque. All Rights Reserved.