org.objectweb.cjdbc.console.gui.constants
Class GuiConstants

java.lang.Object
  extended byorg.objectweb.cjdbc.console.gui.constants.GuiConstants

public final class GuiConstants
extends java.lang.Object

This class defines all the GuiConstants

Version:
1.0
Author:
Nicolas Modrzyk

Field Summary
static java.lang.String BACKEND_NO_CHECKPOINT
          Do not use any checkpoint for enable or disable of a backend
static java.lang.String BACKEND_STATE_BACKUP
          Backend state backup
private static java.awt.Color BACKEND_STATE_BACKUP_COLOR
           
static java.lang.String BACKEND_STATE_DISABLED
          Backend state disabled
static java.awt.Color BACKEND_STATE_DISABLED_COLOR
          Final Color for backend state disabled
static java.lang.String BACKEND_STATE_DISABLING
          Backend state disabling
static java.lang.String BACKEND_STATE_ENABLED
          Backend state enabled
static java.awt.Color BACKEND_STATE_ENABLED_COLOR
          Final Color for backend state enabled
static java.lang.String BACKEND_STATE_NEW
          Backend state new
private static java.awt.Color BACKEND_STATE_NEW_COLOR
           
static java.lang.String BACKEND_STATE_RECOVERY
          Backend state recovery
static java.awt.Color BACKEND_STATE_RECOVERY_COLOR
          Final Color for backend state recovery
static java.lang.String BACKEND_STATE_RESTORE
          Backend state restore
private static java.awt.Color BACKEND_STATE_RESTORE_COLOR
           
static java.awt.Font CENTER_PANE_FONT
          Font used for the center panel
static java.lang.String CJDBC_DEFAULT_SESSION_FILE
          Default save session file
static java.lang.String CJDBC_DEFAULT_SESSION_NAME
          Default save session file
static java.lang.String CJDBC_URL_DOC
          URL to the help of CJDBC
static java.lang.String CONTROLLER_STATE_DOWN
          Controller state down
static java.lang.String CONTROLLER_STATE_UP
          Controller state up
static java.awt.Cursor customCursor
          Default Custom Cursor for drags
static int DEBUG_ALL
          Debug Level All
static int DEBUG_INFO
          Debug level info
static int DEBUG_LEVEL
          Level of output of the debug
static int DEBUG_NO_EXCEPTION_WINDOW
          Debug level all but do not show exception window
static int DEBUG_NONE
          No Debug
static java.awt.Font DEFAULT_FONT
          Default Font
static javax.swing.border.Border LINE_BORDER
          Line border
static java.lang.String LIST_CONTROLLER
          Component Name for the list of controllers
static java.lang.String LIST_DATABASE
          Component Name for the list of databases
static java.lang.String LIST_FILES
          Component Name for the files list
static javax.swing.border.Border LOWERED_BORDER
          Lowered border
static int MAIN_FRAME_HEIGHT
          Main gui frame height
static int MAIN_FRAME_WIDTH
          Main frame width
static java.awt.Color NICE_COLOR
          Nice color
static java.lang.String TABLE_JMX_ATTRIBUTES
          JMX attributes table
static java.lang.String TABLE_JMX_OPERATIONS
          JMX operations table
static javax.swing.border.Border TITLED_BORDER
          Titled border
 
Constructor Summary
GuiConstants()
           
 
Method Summary
static void centerComponent(java.awt.Window comp, int width, int height)
          Centers a new component on the screen
static java.lang.Object convertType(java.lang.String value, java.lang.String type)
          Convert a parameter value depending on its type.
static java.awt.Color getBackendBgColor(java.lang.String paneName)
          Get colors for backend panels
static java.lang.String getParameterType(java.lang.String tmp)
          Get the parameter type.
static boolean isValidBackendState(java.lang.String state)
          Test whether the given backend state is a valid state Since all the backend states are defined here, this test method should also be defined here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BACKEND_STATE_ENABLED

public static final java.lang.String BACKEND_STATE_ENABLED
Backend state enabled


BACKEND_STATE_DISABLED

public static final java.lang.String BACKEND_STATE_DISABLED
Backend state disabled


BACKEND_STATE_DISABLING

public static final java.lang.String BACKEND_STATE_DISABLING
Backend state disabling


BACKEND_STATE_RESTORE

public static final java.lang.String BACKEND_STATE_RESTORE
Backend state restore


BACKEND_STATE_BACKUP

public static final java.lang.String BACKEND_STATE_BACKUP
Backend state backup


BACKEND_STATE_RECOVERY

public static final java.lang.String BACKEND_STATE_RECOVERY
Backend state recovery


BACKEND_STATE_NEW

public static final java.lang.String BACKEND_STATE_NEW
Backend state new


DEBUG_ALL

public static final int DEBUG_ALL
Debug Level All

See Also:
Constant Field Values

DEBUG_NO_EXCEPTION_WINDOW

public static final int DEBUG_NO_EXCEPTION_WINDOW
Debug level all but do not show exception window

See Also:
Constant Field Values

DEBUG_INFO

public static final int DEBUG_INFO
Debug level info

See Also:
Constant Field Values

DEBUG_NONE

public static final int DEBUG_NONE
No Debug

See Also:
Constant Field Values

DEBUG_LEVEL

public static final int DEBUG_LEVEL
Level of output of the debug

See Also:
Constant Field Values

MAIN_FRAME_WIDTH

public static final int MAIN_FRAME_WIDTH
Main frame width

See Also:
Constant Field Values

MAIN_FRAME_HEIGHT

public static final int MAIN_FRAME_HEIGHT
Main gui frame height

See Also:
Constant Field Values

LIST_CONTROLLER

public static final java.lang.String LIST_CONTROLLER
Component Name for the list of controllers

See Also:
Constant Field Values

LIST_DATABASE

public static final java.lang.String LIST_DATABASE
Component Name for the list of databases

See Also:
Constant Field Values

LIST_FILES

public static final java.lang.String LIST_FILES
Component Name for the files list

See Also:
Constant Field Values

CONTROLLER_STATE_UP

public static final java.lang.String CONTROLLER_STATE_UP
Controller state up

See Also:
Constant Field Values

CONTROLLER_STATE_DOWN

public static final java.lang.String CONTROLLER_STATE_DOWN
Controller state down

See Also:
Constant Field Values

CJDBC_URL_DOC

public static final java.lang.String CJDBC_URL_DOC
URL to the help of CJDBC

See Also:
Constant Field Values

CJDBC_DEFAULT_SESSION_NAME

public static final java.lang.String CJDBC_DEFAULT_SESSION_NAME
Default save session file

See Also:
Constant Field Values

CJDBC_DEFAULT_SESSION_FILE

public static final java.lang.String CJDBC_DEFAULT_SESSION_FILE
Default save session file

See Also:
Constant Field Values

CENTER_PANE_FONT

public static final java.awt.Font CENTER_PANE_FONT
Font used for the center panel


DEFAULT_FONT

public static final java.awt.Font DEFAULT_FONT
Default Font


BACKEND_STATE_ENABLED_COLOR

public static final java.awt.Color BACKEND_STATE_ENABLED_COLOR
Final Color for backend state enabled


BACKEND_STATE_RECOVERY_COLOR

public static final java.awt.Color BACKEND_STATE_RECOVERY_COLOR
Final Color for backend state recovery


BACKEND_STATE_DISABLED_COLOR

public static final java.awt.Color BACKEND_STATE_DISABLED_COLOR
Final Color for backend state disabled


NICE_COLOR

public static final java.awt.Color NICE_COLOR
Nice color


LOWERED_BORDER

public static final javax.swing.border.Border LOWERED_BORDER
Lowered border


LINE_BORDER

public static final javax.swing.border.Border LINE_BORDER
Line border


TITLED_BORDER

public static final javax.swing.border.Border TITLED_BORDER
Titled border


customCursor

public static java.awt.Cursor customCursor
Default Custom Cursor for drags


BACKEND_STATE_NEW_COLOR

private static final java.awt.Color BACKEND_STATE_NEW_COLOR

BACKEND_STATE_BACKUP_COLOR

private static final java.awt.Color BACKEND_STATE_BACKUP_COLOR

BACKEND_STATE_RESTORE_COLOR

private static final java.awt.Color BACKEND_STATE_RESTORE_COLOR

BACKEND_NO_CHECKPOINT

public static final java.lang.String BACKEND_NO_CHECKPOINT
Do not use any checkpoint for enable or disable of a backend


TABLE_JMX_ATTRIBUTES

public static final java.lang.String TABLE_JMX_ATTRIBUTES
JMX attributes table


TABLE_JMX_OPERATIONS

public static final java.lang.String TABLE_JMX_OPERATIONS
JMX operations table

Constructor Detail

GuiConstants

public GuiConstants()
Method Detail

getBackendBgColor

public static java.awt.Color getBackendBgColor(java.lang.String paneName)
Get colors for backend panels

Parameters:
paneName - name of the panel
Returns:
Color NEVER null

isValidBackendState

public static boolean isValidBackendState(java.lang.String state)
Test whether the given backend state is a valid state Since all the backend states are defined here, this test method should also be defined here.

Parameters:
state - the test to validate
Returns:
true if valid state, false otherwise.

centerComponent

public static void centerComponent(java.awt.Window comp,
                                   int width,
                                   int height)
Centers a new component on the screen

Parameters:
comp - the window to center
width - the width of the window
height - the height of the window

convertType

public static java.lang.Object convertType(java.lang.String value,
                                           java.lang.String type)
Convert a parameter value depending on its type. Supported types are int and boolean.

Parameters:
value - value to convert
type - "int" or "boolean"
Returns:
value converted to an Integer or a Boolean object, or value as is for any other type

getParameterType

public static java.lang.String getParameterType(java.lang.String tmp)
Get the parameter type.

Parameters:
tmp - paramter to extract type from
Returns:
the parameter type


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.