Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Rich Ajax Platform
Release 1.2

org.eclipse.rwt.theme
Interface IControlThemeAdapter


public interface IControlThemeAdapter

Theme adapter for Controls. The theme adapter provides a control with information on characteristics of its representation which depend on the current theme.


Method Summary
  Color getBackground ( Control control)
          Returns the default background color that the specified control will use if no user-defined background color has been set using Control.setBackground(Color).
 int getBorderWidth ( Control control)
          Returns the width of the specified control's border.
  Font getFont ( Control control)
          Returns the default font that the specified control will use to paint textual information when no user-defined font has been set using Control.setFont(Font).
  Color getForeground ( Control control)
          Returns the default foreground color that the specified control will use to draw if no user defined foreground color has been set using Control.setForeground(Color).
 

Method Detail

getBorderWidth

public int getBorderWidth(
Control control)
Returns the width of the specified control's border.

Parameters:
control - the control whose border width is requested
Returns:
the border width in px

getForeground

public 
Color getForeground(
Control control)
Returns the default foreground color that the specified control will use to draw if no user defined foreground color has been set using Control.setForeground(Color).

Parameters:
control - the control whose foreground color is requested
Returns:
the foreground color

getBackground

public 
Color getBackground(
Control control)
Returns the default background color that the specified control will use if no user-defined background color has been set using Control.setBackground(Color).

Parameters:
control - the control whose background color is requested
Returns:
the background color

getFont

public 
Font getFont(
Control control)
Returns the default font that the specified control will use to paint textual information when no user-defined font has been set using Control.setFont(Font).

Parameters:
control - the control whose font is requested
Returns:
the font

Eclipse Rich Ajax Platform
Release 1.2

Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire