Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.lookandfeel
Class SIPCommDefaultTheme

java.lang.Object
  extended by javax.swing.plaf.metal.MetalTheme
      extended by javax.swing.plaf.metal.DefaultMetalTheme
          extended by net.java.sip.communicator.impl.gui.lookandfeel.SIPCommDefaultTheme
All Implemented Interfaces:
Skinnable

public class SIPCommDefaultTheme
extends DefaultMetalTheme
implements Skinnable

SipCommunicator default theme.

Author:
Yana Stamcheva, Adam Netocny

Field Summary
(package private)  Object fieldInputMap
          Default input map for this theme.
(package private)  Object multilineInputMap
          The default multi-line text component input map.
(package private)  Object passwordInputMap
          The default password input map.
 
Constructor Summary
SIPCommDefaultTheme()
           
 
Method Summary
 void addCustomEntriesToTable(UIDefaults table)
          Adds a list of entries in the given defaults table.
protected  ColorUIResource getBlack()
          Returns the control text color resource.
 ColorUIResource getControl()
          Returns the desktop background color resource.
 FontUIResource getControlTextFont()
          Returns the control text font color resource.
 ColorUIResource getDesktopColor()
          Returns the desktop color resource.
 ColorUIResource getInactiveControlTextColor()
          Returns the inactive control text color resource.
 ColorUIResource getMenuBackground()
          Returns the window background color resource.
 ColorUIResource getMenuDisabledForeground()
          Returns the menu disabled foreground color resource.
 FontUIResource getMenuTextFont()
          Returns the menu text font color resource.
 String getName()
          Returns the name of this theme.
protected  ColorUIResource getPrimary1()
          Returns the primary control dark shadow color resource.
protected  ColorUIResource getPrimary2()
          Returns the primary control shadow color resource.
protected  ColorUIResource getPrimary3()
          Returns the primary control color resource.
protected  ColorUIResource getSecondary1()
          Returns the control dark shadow color resource.
protected  ColorUIResource getSecondary2()
          Returns the control shadow color resource.
protected  ColorUIResource getSecondary3()
          Returns the control color resource.
 FontUIResource getSubTextFont()
          Returns the window title font color resource.
 FontUIResource getSystemTextFont()
          Returns the system text font color resource.
 FontUIResource getUserTextFont()
          Returns the user text font color resource.
 ColorUIResource getWindowBackground()
          Returns the window background color resource.
 FontUIResource getWindowTitleFont()
          Returns the window title font color resource.
 void loadSkin()
          Reloads defaults.
 
Methods inherited from class javax.swing.plaf.metal.MetalTheme
getAcceleratorForeground, getAcceleratorSelectedForeground, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getFocusColor, getHighlightedTextColor, getInactiveSystemTextColor, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSystemTextColor, getTextHighlightColor, getUserTextColor, getWhite, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldInputMap

Object fieldInputMap
Default input map for this theme.


passwordInputMap

Object passwordInputMap
The default password input map.


multilineInputMap

Object multilineInputMap
The default multi-line text component input map.

Constructor Detail

SIPCommDefaultTheme

public SIPCommDefaultTheme()
Method Detail

addCustomEntriesToTable

public void addCustomEntriesToTable(UIDefaults table)
Adds a list of entries in the given defaults table.

Overrides:
addCustomEntriesToTable in class MetalTheme
Parameters:
table - the table of user interface defaults

getName

public String getName()
Returns the name of this theme.

Overrides:
getName in class DefaultMetalTheme
Returns:
the name of this theme

getPrimary1

protected ColorUIResource getPrimary1()
Returns the primary control dark shadow color resource.

Overrides:
getPrimary1 in class DefaultMetalTheme
Returns:
the primary control dark shadow color resource

getPrimary2

protected ColorUIResource getPrimary2()
Returns the primary control shadow color resource.

Overrides:
getPrimary2 in class DefaultMetalTheme
Returns:
the primary control shadow color resource

getPrimary3

protected ColorUIResource getPrimary3()
Returns the primary control color resource.

Overrides:
getPrimary3 in class DefaultMetalTheme
Returns:
the primary control color resource

getSecondary1

protected ColorUIResource getSecondary1()
Returns the control dark shadow color resource.

Overrides:
getSecondary1 in class DefaultMetalTheme
Returns:
the control dark shadow color resource

getSecondary2

protected ColorUIResource getSecondary2()
Returns the control shadow color resource.

Overrides:
getSecondary2 in class DefaultMetalTheme
Returns:
the control shadow color resource

getSecondary3

protected ColorUIResource getSecondary3()
Returns the control color resource.

Overrides:
getSecondary3 in class DefaultMetalTheme
Returns:
the control color resource

getBlack

protected ColorUIResource getBlack()
Returns the control text color resource.

Overrides:
getBlack in class MetalTheme
Returns:
the control text color resource

getDesktopColor

public ColorUIResource getDesktopColor()
Returns the desktop color resource.

Overrides:
getDesktopColor in class MetalTheme
Returns:
the desktop color resource

getWindowBackground

public ColorUIResource getWindowBackground()
Returns the window background color resource.

Overrides:
getWindowBackground in class MetalTheme
Returns:
the window background color resource

getControl

public ColorUIResource getControl()
Returns the desktop background color resource.

Overrides:
getControl in class MetalTheme
Returns:
the desktop background color resource

getMenuBackground

public ColorUIResource getMenuBackground()
Returns the window background color resource.

Overrides:
getMenuBackground in class MetalTheme
Returns:
the window background color resource

getInactiveControlTextColor

public ColorUIResource getInactiveControlTextColor()
Returns the inactive control text color resource.

Overrides:
getInactiveControlTextColor in class MetalTheme
Returns:
the inactive control text color resource

getMenuDisabledForeground

public ColorUIResource getMenuDisabledForeground()
Returns the menu disabled foreground color resource.

Overrides:
getMenuDisabledForeground in class MetalTheme
Returns:
the menu disabled foreground color resource

getControlTextFont

public FontUIResource getControlTextFont()
Returns the control text font color resource.

Overrides:
getControlTextFont in class DefaultMetalTheme
Returns:
the control text font color resource

getSystemTextFont

public FontUIResource getSystemTextFont()
Returns the system text font color resource.

Overrides:
getSystemTextFont in class DefaultMetalTheme
Returns:
the system text font color resource

getUserTextFont

public FontUIResource getUserTextFont()
Returns the user text font color resource.

Overrides:
getUserTextFont in class DefaultMetalTheme
Returns:
the user text font color resource

getMenuTextFont

public FontUIResource getMenuTextFont()
Returns the menu text font color resource.

Overrides:
getMenuTextFont in class DefaultMetalTheme
Returns:
the menu text font color resource

getWindowTitleFont

public FontUIResource getWindowTitleFont()
Returns the window title font color resource.

Overrides:
getWindowTitleFont in class DefaultMetalTheme
Returns:
the window title font color resource

getSubTextFont

public FontUIResource getSubTextFont()
Returns the window title font color resource.

Overrides:
getSubTextFont in class DefaultMetalTheme
Returns:
the window title font color resource

loadSkin

public void loadSkin()
Reloads defaults.

Specified by:
loadSkin in interface Skinnable

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.