Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.fm.gui
Class fmUITheme  view fmUITheme download fmUITheme.java

java.lang.Object
  extended bycom.fm.gui.fmUITheme

public class fmUITheme
extends java.lang.Object

Defines colors, icon and other L&F related constants


Field Summary
static java.awt.Font BIG_BLACK_FONT
           
static java.awt.Color BLACK_COLOR
           
static java.awt.Font CHANNEL_TITLE_FONT
           
static java.awt.Font CONTENT_FONT
           
static java.awt.Font CONTENT_LINK_FONT
           
static java.awt.Color DDDDDD_GREY_COLOR
           
static java.awt.Font DEFAULT_FONT
           
static javax.swing.ImageIcon EDIT_FOLDER_ICON
           
static javax.swing.ImageIcon EDIT_LOCATION_ICON
           
static javax.swing.ImageIcon EDIT_REFRESH_ICON
           
static javax.swing.ImageIcon EDIT_STORAGE_ICON
           
static java.awt.Color EEEEEE_GREY_COLOR
           
static java.awt.Color F6F6F0_GREY_COLOR
           
static javax.swing.border.Border FM_BUTTON_BORDER
           
static javax.swing.ImageIcon FM_ICON
           
static javax.swing.border.Border FM_THIN_BORDER
           
static java.awt.Font FRESH_ITEM_FONT
           
static java.awt.Font HEADERS_FONT
           
static java.awt.Color LIGHT_BACKGROUND_COLOR
           
static java.awt.Color LIGHT_GREEN_COLOR
           
static java.awt.Color LIGHT_YELLOW_COLOR
           
private static java.lang.String LOCALIZED_RESOURCE_BUNDLE_SRC
           
static javax.swing.ImageIcon NAVIGATION_DOWN_ICON
           
static javax.swing.ImageIcon NAVIGATION_NEXT_ICON
           
static javax.swing.ImageIcon NAVIGATION_PREV_ICON
           
static javax.swing.ImageIcon NAVIGATION_UP_ICON
           
static javax.swing.ImageIcon NEW_CHANNEL_ICON
           
static javax.swing.ImageIcon REFRESH_ICON
           
static javax.swing.ImageIcon SAVE_STORAGE_ICON
           
static java.awt.Color SELECTED_TEXT_FOREGROUND
           
static java.awt.Color SELECTION_BACKGROUND_COLOR
           
static javax.swing.ImageIcon SETTINGS_ICON
           
static javax.swing.ImageIcon SOLID_VIEW_ICON
           
static javax.swing.ImageIcon SORT_DOWN_ICON
           
static javax.swing.ImageIcon SORT_UP_ICON
           
static javax.swing.ImageIcon SPLITTED_VIEW_ICON
           
static javax.swing.ImageIcon STOP_ICON
           
private static java.util.ResourceBundle strings
           
static java.awt.Color TABLE_HEADER_COLOR
           
static java.awt.Color TEXT_COLOR
           
static javax.swing.border.Border TEXT_FIELD_BORDER
           
static java.awt.Insets TOOLBAR_BUTTON_MARGIN
           
static javax.swing.border.LineBorder TOOLTIP_BORDER
           
static java.awt.Color TREE_BACKGROUND_COLOR
           
static javax.swing.ImageIcon TREE_CATEGORY_CLOSED_ICON
           
static javax.swing.ImageIcon TREE_CATEGORY_OPEN_ICON
           
static javax.swing.ImageIcon TREE_CHANNEL_ERROR_ICON
           
static javax.swing.ImageIcon TREE_CHANNEL_FRESH_ICON
           
static javax.swing.ImageIcon TREE_CHANNEL_ICON
           
static java.awt.Font TREE_FONT
           
static java.awt.Color TREE_LEG_COLOR
           
static java.awt.Color WHITE_COLOR
           
 
Constructor Summary
fmUITheme()
           
 
Method Summary
static java.lang.String fontToString(java.awt.Font f, java.lang.String style)
          Converts font settings into decodeable string
(package private) static java.util.PropertyResourceBundle getBundleInstance(java.lang.String src)
           
static javax.swing.JButton getButtonInstance(javax.swing.ImageIcon icon, java.lang.String tooltip_id, java.awt.Color background, float aligmentX)
          Create button without text, with empty border, background,aligment and icon set to specified.
static javax.swing.JButton getButtonInstance(java.lang.String title_id, java.lang.String tooltip_id, int e)
          Faster MF UI buttom creation
(package private) static javax.swing.ImageIcon getIconInstance(java.lang.String src)
           
(package private) static java.util.PropertyResourceBundle getJarBundleInstance(java.lang.String src)
           
static java.util.ResourceBundle getLocalizedStrings()
          Get current resource bundle
static java.lang.String getString(java.lang.String key)
          Return string from the current resource bundle
static void initFeedManLookAndFeel()
          Initializes the FeedMan's Look&Feel
static void setMessagesBundle(java.util.ResourceBundle b)
          Set current strings bundle to specified value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLACK_COLOR

public static java.awt.Color BLACK_COLOR

WHITE_COLOR

public static java.awt.Color WHITE_COLOR

EEEEEE_GREY_COLOR

public static java.awt.Color EEEEEE_GREY_COLOR

DDDDDD_GREY_COLOR

public static java.awt.Color DDDDDD_GREY_COLOR

F6F6F0_GREY_COLOR

public static java.awt.Color F6F6F0_GREY_COLOR

LIGHT_GREEN_COLOR

public static java.awt.Color LIGHT_GREEN_COLOR

LIGHT_YELLOW_COLOR

public static java.awt.Color LIGHT_YELLOW_COLOR

FM_ICON

public static javax.swing.ImageIcon FM_ICON

SAVE_STORAGE_ICON

public static javax.swing.ImageIcon SAVE_STORAGE_ICON

REFRESH_ICON

public static javax.swing.ImageIcon REFRESH_ICON

SETTINGS_ICON

public static javax.swing.ImageIcon SETTINGS_ICON

NEW_CHANNEL_ICON

public static javax.swing.ImageIcon NEW_CHANNEL_ICON

STOP_ICON

public static javax.swing.ImageIcon STOP_ICON

TOOLBAR_BUTTON_MARGIN

public static java.awt.Insets TOOLBAR_BUTTON_MARGIN

FM_BUTTON_BORDER

public static javax.swing.border.Border FM_BUTTON_BORDER

FM_THIN_BORDER

public static javax.swing.border.Border FM_THIN_BORDER

TEXT_FIELD_BORDER

public static javax.swing.border.Border TEXT_FIELD_BORDER

TREE_LEG_COLOR

public static java.awt.Color TREE_LEG_COLOR

LIGHT_BACKGROUND_COLOR

public static java.awt.Color LIGHT_BACKGROUND_COLOR

SELECTION_BACKGROUND_COLOR

public static java.awt.Color SELECTION_BACKGROUND_COLOR

SELECTED_TEXT_FOREGROUND

public static java.awt.Color SELECTED_TEXT_FOREGROUND

TREE_BACKGROUND_COLOR

public static java.awt.Color TREE_BACKGROUND_COLOR

TABLE_HEADER_COLOR

public static java.awt.Color TABLE_HEADER_COLOR

TEXT_COLOR

public static java.awt.Color TEXT_COLOR

TOOLTIP_BORDER

public static javax.swing.border.LineBorder TOOLTIP_BORDER

TREE_CATEGORY_CLOSED_ICON

public static javax.swing.ImageIcon TREE_CATEGORY_CLOSED_ICON

TREE_CATEGORY_OPEN_ICON

public static javax.swing.ImageIcon TREE_CATEGORY_OPEN_ICON

TREE_CHANNEL_ICON

public static javax.swing.ImageIcon TREE_CHANNEL_ICON

TREE_CHANNEL_FRESH_ICON

public static javax.swing.ImageIcon TREE_CHANNEL_FRESH_ICON

TREE_CHANNEL_ERROR_ICON

public static javax.swing.ImageIcon TREE_CHANNEL_ERROR_ICON

DEFAULT_FONT

public static java.awt.Font DEFAULT_FONT

BIG_BLACK_FONT

public static java.awt.Font BIG_BLACK_FONT

FRESH_ITEM_FONT

public static java.awt.Font FRESH_ITEM_FONT

TREE_FONT

public static java.awt.Font TREE_FONT

CONTENT_FONT

public static java.awt.Font CONTENT_FONT

CONTENT_LINK_FONT

public static java.awt.Font CONTENT_LINK_FONT

HEADERS_FONT

public static java.awt.Font HEADERS_FONT

CHANNEL_TITLE_FONT

public static java.awt.Font CHANNEL_TITLE_FONT

NAVIGATION_PREV_ICON

public static javax.swing.ImageIcon NAVIGATION_PREV_ICON

NAVIGATION_NEXT_ICON

public static javax.swing.ImageIcon NAVIGATION_NEXT_ICON

NAVIGATION_UP_ICON

public static javax.swing.ImageIcon NAVIGATION_UP_ICON

NAVIGATION_DOWN_ICON

public static javax.swing.ImageIcon NAVIGATION_DOWN_ICON

SORT_UP_ICON

public static javax.swing.ImageIcon SORT_UP_ICON

SORT_DOWN_ICON

public static javax.swing.ImageIcon SORT_DOWN_ICON

SOLID_VIEW_ICON

public static javax.swing.ImageIcon SOLID_VIEW_ICON

SPLITTED_VIEW_ICON

public static javax.swing.ImageIcon SPLITTED_VIEW_ICON

EDIT_LOCATION_ICON

public static javax.swing.ImageIcon EDIT_LOCATION_ICON

EDIT_STORAGE_ICON

public static javax.swing.ImageIcon EDIT_STORAGE_ICON

EDIT_REFRESH_ICON

public static javax.swing.ImageIcon EDIT_REFRESH_ICON

EDIT_FOLDER_ICON

public static javax.swing.ImageIcon EDIT_FOLDER_ICON

LOCALIZED_RESOURCE_BUNDLE_SRC

private static java.lang.String LOCALIZED_RESOURCE_BUNDLE_SRC

strings

private static java.util.ResourceBundle strings
Constructor Detail

fmUITheme

public fmUITheme()
Method Detail

initFeedManLookAndFeel

public static void initFeedManLookAndFeel()
                                   throws java.io.IOException
Initializes the FeedMan's Look&Feel


getLocalizedStrings

public static java.util.ResourceBundle getLocalizedStrings()
Get current resource bundle


setMessagesBundle

public static void setMessagesBundle(java.util.ResourceBundle b)
Set current strings bundle to specified value


getButtonInstance

public static javax.swing.JButton getButtonInstance(java.lang.String title_id,
                                                    java.lang.String tooltip_id,
                                                    int e)
Faster MF UI buttom creation


getButtonInstance

public static javax.swing.JButton getButtonInstance(javax.swing.ImageIcon icon,
                                                    java.lang.String tooltip_id,
                                                    java.awt.Color background,
                                                    float aligmentX)
Create button without text, with empty border, background,aligment and icon set to specified.


getIconInstance

static javax.swing.ImageIcon getIconInstance(java.lang.String src)

getJarBundleInstance

static java.util.PropertyResourceBundle getJarBundleInstance(java.lang.String src)

getBundleInstance

static java.util.PropertyResourceBundle getBundleInstance(java.lang.String src)

getString

public static java.lang.String getString(java.lang.String key)
Return string from the current resource bundle

It is surely not a good behaviour, but hanging application on non caught exception is also not a user's dream


fontToString

public static java.lang.String fontToString(java.awt.Font f,
                                            java.lang.String style)
Converts font settings into decodeable string

e.g.: SANS-PLAIN-18