test.check
Class SampleMenuFactory

java.lang.Object
  extended by test.check.SampleMenuFactory

public class SampleMenuFactory
extends java.lang.Object

Factory that creates menus for the test applications.

Author:
Kirill Grouchnikov

Constructor Summary
SampleMenuFactory()
           
 
Method Summary
static javax.swing.JMenu getLookAndFeelMenu(javax.swing.JFrame frame)
           
static javax.swing.JMenu getSkinMenu()
          Returns menu for setting skins.
static javax.swing.JMenu getTestMenu()
          Returns a sample test menu.
static java.util.LinkedList<java.util.LinkedList<javax.swing.JMenuItem>> getTestMenuItems()
          Returns menu items for a sample test menu.
static javax.swing.JMenu getThemeMenu()
          Returns the menu for changing the themes.
static void setTheme(SubstanceTheme theme)
          Sets the specified theme.
static void setTheme(ThemeInfo themeInfo)
          Sets the specified theme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleMenuFactory

public SampleMenuFactory()
Method Detail

getThemeMenu

public static javax.swing.JMenu getThemeMenu()
Returns the menu for changing the themes.

Returns:
The menu for changing the themes.

setTheme

public static void setTheme(SubstanceTheme theme)
Sets the specified theme.

Parameters:
theme - Theme to set.

setTheme

public static void setTheme(ThemeInfo themeInfo)
Sets the specified theme.

Parameters:
themeInfo - Theme information object.

getTestMenu

public static javax.swing.JMenu getTestMenu()
Returns a sample test menu.

Returns:
Sample test menu.

getTestMenuItems

public static java.util.LinkedList<java.util.LinkedList<javax.swing.JMenuItem>> getTestMenuItems()
Returns menu items for a sample test menu.

Returns:
Menu items for a sample test menu.

getSkinMenu

public static javax.swing.JMenu getSkinMenu()
Returns menu for setting skins.

Returns:
Menu for setting skins.

getLookAndFeelMenu

public static javax.swing.JMenu getLookAndFeelMenu(javax.swing.JFrame frame)