|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.input.LookupProperties
public class LookupProperties
Stores and sets a collection of lookup screen look-and-feel parameters.
Constructor Summary | ||
---|---|---|
LookupProperties()
Constructs lookup screen properties object with default look-and-feel parameters. |
Method Summary | ||
---|---|---|
Background |
getPreferredBackground()
Gets the current background object displayed for a lookup screen. |
|
Border |
getPreferredBorder()
Gets the current border object for for a lookup screen. |
|
Font |
getPreferredFont()
Gets a preferred font for a lookup screen. |
|
int |
getPreferredFontHeight()
Gets preferred height of a font for a lookup screen. |
|
String |
getPreferredFontTypeface()
Gets preferred typeface of a font for a lookup screen. |
|
int |
getPreferredForegroundColor()
Gets foreground color for a lookup screen. |
|
int |
getPreferredIndent()
Retrieves the number of indentation pixels for a lookup screen. |
|
XYEdges |
getPreferredMargin()
Gets the margin outer-coordinates of a lookup screen. |
|
XYEdges |
getPreferredPadding()
Retrieves the coordinates of a lookup screen's padding. |
|
Background |
getPreferredSelectedBackground()
Gets the current background object displayed for a lookup screen. |
|
int |
getPreferredSelectedForegroundColor()
Gets foreground color for a lookup screen. |
|
void |
setPreferredBackground(Background background)
Sets a custom background for a lookup screen. |
|
void |
setPreferredBorder(Border brd)
Sets a custom border for a lookup screen. |
|
void |
setPreferredFont(Font font)
Sets a preferred font for a lookup screen. |
|
void |
setPreferredFontAttributes(String typeface,
int height)
Sets preferred typeface, style and height of a font for a lookup screen. |
|
void |
setPreferredFontHeight(int height)
Sets preferred height of a font for a lookup screen. |
|
void |
setPreferredFontTypeface(String typeface)
Sets preferred typeface of a font for a lookup screen. |
|
void |
setPreferredForegroundColor(int color)
Sets foreground color for a lookup screen. |
|
void |
setPreferredIndent(int indentAmount)
Sets the number of indentation pixels for a lookup screen. |
|
void |
setPreferredMargin(int top,
int right,
int bottom,
int left)
Sets the margin for a lookup screen. |
|
void |
setPreferredPadding(int top,
int right,
int bottom,
int left)
Sets the padding for a lookup screen. |
|
void |
setPreferredSelectedBackground(Background background)
Sets a custom background for a lookup screen. |
|
void |
setPreferredSelectedForegroundColor(int color)
Sets foreground color for a lookup screen. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LookupProperties()
Method Detail |
---|
public void setPreferredForegroundColor(int color)
color
- Color to use in foreground.public int getPreferredForegroundColor()
public void setPreferredSelectedForegroundColor(int color)
color
- Color to use in foreground.public int getPreferredSelectedForegroundColor()
public void setPreferredFont(Font font)
font
- New font for a lookup screen.public void setPreferredFontAttributes(String typeface, int height)
typeface
- Name of the font family (for example: "BBSansSerif").height
- Desired height in pixels.public void setPreferredFontTypeface(String typeface)
typeface
- Name of the font family (for example: "BBSansSerif").public void setPreferredFontHeight(int height)
height
- Desired height in pixels.public Font getPreferredFont()
public String getPreferredFontTypeface()
typeface
- Name of the font family (for example: "BBSansSerif").public int getPreferredFontHeight()
height
- Desired height in pixels.public void setPreferredBackground(Background background)
bgd
- Background object to display, null to use default background.public Background getPreferredBackground()
public void setPreferredSelectedBackground(Background background)
bgd
- Background object to display, null to use default background.public Background getPreferredSelectedBackground()
public void setPreferredBorder(Border brd)
border
- Border object to display, null to use default border.public final Border getPreferredBorder()
public void setPreferredIndent(int indentAmount)
indentAmount
- Number of indentation pixels.public int getPreferredIndent()
public void setPreferredMargin(int top, int right, int bottom, int left)
top
- Top-most coordinate of the margin.right
- Right-most coordinate of the margin.bottom
- Bottom-most coordinate of the margin.left
- Left-most coordinate of the margin.public XYEdges getPreferredMargin()
public void setPreferredPadding(int top, int right, int bottom, int left)
top
- Top-most padding coordinate.right
- Right-most padding coordinate.bottom
- Bottom-most padding coordinate.left
- Left-most padding coordinate.public XYEdges getPreferredPadding()
Edges
- padding object to contain a lookup screen's padding coordinates.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal