com.tensegrity.gui
Class LNFConfiguration

java.lang.Object
  extended bycom.tensegrity.gui.LNFConfiguration

public class LNFConfiguration
extends java.lang.Object

Global configuration settings for the LNF. This class determines whether to use the dock-mdi. The dock-mdi is provided by DockMDIComponent and implements MDIComponent.

The dock-mdi can be enabled in a nunber of ways.

Version:
$Id: LNFConfiguration.java,v 1.6 2005/05/02 15:26:28 BurkhardWick Exp $
Author:
Stepan Rutz

Field Summary
static int MDISTYLE_CLASSIC
          Enumeration of MDI styles.
static int MDISTYLE_DOCK
          Enumeration of MDI styles.
static boolean USE_OLDSTYLE_ICONS_FOR_DOCK_GUI
          If this is true, the "old" triangle icons are used for slide panels even if the MDI style DOCK is chosen.
 
Method Summary
static LNFConfiguration getInstance()
          Instance access.
 int getMDIStyle()
          Gets the mdi-style.
 void setDefaultMDIStyle(int mdistyle)
          Sets the default mdi style which will only be used, if there is no call to the setMDIStyle() method and no property.
 void setMDIStyle(int mdistyle)
          Sets the mdi-style.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_OLDSTYLE_ICONS_FOR_DOCK_GUI

public static boolean USE_OLDSTYLE_ICONS_FOR_DOCK_GUI
If this is true, the "old" triangle icons are used for slide panels even if the MDI style DOCK is chosen.


MDISTYLE_CLASSIC

public static final int MDISTYLE_CLASSIC
Enumeration of MDI styles.

See Also:
Constant Field Values

MDISTYLE_DOCK

public static final int MDISTYLE_DOCK
Enumeration of MDI styles.

See Also:
Constant Field Values
Method Detail

getInstance

public static final LNFConfiguration getInstance()
Instance access.

Returns:
the single GuiConfig instance.

getMDIStyle

public final int getMDIStyle()
Gets the mdi-style.

Returns:
the current mdistyle, one of the constants that are declared in this class is returned.

setDefaultMDIStyle

public final void setDefaultMDIStyle(int mdistyle)
Sets the default mdi style which will only be used, if there is no call to the setMDIStyle() method and no property.

Parameters:
mdistyle - The style to set

setMDIStyle

public final void setMDIStyle(int mdistyle)
Sets the mdi-style.

Parameters:
mdistyle - the mdi style to use, must be one of the constants declared in this class, illegal values silently are mapped to MDISTYLE_CLASSIC.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.