Sky View Café - Java

org.shetline.gui.laf
Class LookAndFeelUtil

java.lang.Object
  extended by org.shetline.gui.laf.LookAndFeelUtil

public class LookAndFeelUtil
extends Object


Field Summary
static String BORDER_FOCUS
           
static String CELL_EDITOR_KEY
           
static String INVERT_SELECTION_CLIENT_KEY
           
static String MINI_STYLE
           
static String SELECT_ON_FOCUS_GAIN_CLIENT_KEY
           
static String SELECT_ON_FOCUS_GAIN_KEY
           
static String SET_CARET_TO_START_ON_FOCUS_LOST_CLIENT_KEY
           
 
Method Summary
static void fixMacKeyBindings(UIDefaults uiDefaults)
           
static boolean getBorderDrawsFocus(AbstractButton b)
           
static Color getColor(String key, boolean checkGeneric)
           
static Color getColor(String key, boolean checkGeneric, Color defaultColor)
           
static Color getColor(String key, Color defaultColor)
           
static Insets getInsets(String key, Insets defaultInsets)
           
static int getInt(String key, int defaultValue)
           
static Color getParentBackground(Component c)
           
static Boolean getSelectOnFocusGainEnabled(JTextComponent c)
           
static boolean isInEditableComboBox(Component c)
           
static boolean isLeftToRight(Component c)
           
static boolean isMiniStyle(Component c)
           
static boolean isSelectOnFocusGainActive(JTextComponent c)
           
static boolean isSelectOnFocusGainEnabled()
           
static boolean isTableCellEditor(JComponent c)
           
static boolean isToolBarButton(AbstractButton b)
           
static void setBorderDrawsFocus(AbstractButton b)
           
static void setBorderDrawsFocus(AbstractButton b, boolean drawsFocus)
           
static void setMiniStyle(JComponent c)
           
static void setMiniStyle(JComponent c, boolean makeMini)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BORDER_FOCUS

public static final String BORDER_FOCUS
See Also:
Constant Field Values

CELL_EDITOR_KEY

public static final String CELL_EDITOR_KEY
See Also:
Constant Field Values

INVERT_SELECTION_CLIENT_KEY

public static final String INVERT_SELECTION_CLIENT_KEY
See Also:
Constant Field Values

MINI_STYLE

public static final String MINI_STYLE
See Also:
Constant Field Values

SELECT_ON_FOCUS_GAIN_KEY

public static final String SELECT_ON_FOCUS_GAIN_KEY
See Also:
Constant Field Values

SELECT_ON_FOCUS_GAIN_CLIENT_KEY

public static final String SELECT_ON_FOCUS_GAIN_CLIENT_KEY
See Also:
Constant Field Values

SET_CARET_TO_START_ON_FOCUS_LOST_CLIENT_KEY

public static final String SET_CARET_TO_START_ON_FOCUS_LOST_CLIENT_KEY
See Also:
Constant Field Values
Method Detail

getColor

public static Color getColor(String key,
                             Color defaultColor)

getColor

public static Color getColor(String key,
                             boolean checkGeneric)

getColor

public static Color getColor(String key,
                             boolean checkGeneric,
                             Color defaultColor)

getInt

public static int getInt(String key,
                         int defaultValue)

getInsets

public static Insets getInsets(String key,
                               Insets defaultInsets)

fixMacKeyBindings

public static void fixMacKeyBindings(UIDefaults uiDefaults)

isToolBarButton

public static boolean isToolBarButton(AbstractButton b)

isTableCellEditor

public static boolean isTableCellEditor(JComponent c)

getParentBackground

public static Color getParentBackground(Component c)

isLeftToRight

public static boolean isLeftToRight(Component c)

isInEditableComboBox

public static boolean isInEditableComboBox(Component c)

setMiniStyle

public static void setMiniStyle(JComponent c)

setMiniStyle

public static void setMiniStyle(JComponent c,
                                boolean makeMini)

isMiniStyle

public static boolean isMiniStyle(Component c)

setBorderDrawsFocus

public static void setBorderDrawsFocus(AbstractButton b)

setBorderDrawsFocus

public static void setBorderDrawsFocus(AbstractButton b,
                                       boolean drawsFocus)

getBorderDrawsFocus

public static boolean getBorderDrawsFocus(AbstractButton b)

isSelectOnFocusGainActive

public static boolean isSelectOnFocusGainActive(JTextComponent c)

getSelectOnFocusGainEnabled

public static Boolean getSelectOnFocusGainEnabled(JTextComponent c)

isSelectOnFocusGainEnabled

public static boolean isSelectOnFocusGainEnabled()

Sky View Café - Java