|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.ui.Field
net.rim.device.api.ui.component.NullField
public class NullField
A field of no size.
Behaviour
This class provides a field of zero size, which you might find useful for
implementing non-standard focus changing. Add a focus change listener to the
field and move focus appropriately when it is triggered.
| Field Summary |
|---|
| Constructor Summary | ||
|---|---|---|
NullField()
Constructs a new NullField object. |
||
NullField(long style)
Constructs a new NullField object with the provided style. |
||
| Method Summary | ||
|---|---|---|
void |
getFocusRect(XYRect rect)
Retrieves this field's current focus region. |
|
int |
getPreferredHeight()
Retrieves this field's preferred height. |
|
int |
getPreferredWidth()
Retrieves this field's preferred width. |
|
protected void |
layout(int width,
int height)
Lays out field contents. |
|
protected void |
paint(Graphics graphics)
Invoked by the framework to redraw this field. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullField()
This constructor builds a new null field object with the default (no) style.
public NullField(long style)
style - Style for the new null field.| Method Detail |
|---|
public int getPreferredWidth()
Field.getPreferredWidth() for more information.
getPreferredWidth in class Fieldpublic int getPreferredHeight()
Field.getPreferredHeight() for more information.
getPreferredHeight in class Field
protected void layout(int width,
int height)
Invoking this method invokes Field.setExtent(int,int) with
zero for both width and height.
layout in class Fieldwidth - Ignored.height - Ignored.protected void paint(Graphics graphics)
This field's manager invokes this method when the field has been marked as invalid. However, since the field has no extent to repaint, this method does nothing.
paint in class Fieldgraphics - Ignored.public void getFocusRect(XYRect rect)
Field.getFocusRect(net.rim.device.api.ui.XYRect) for more information.
getFocusRect in class Fieldrect - The object to contain the focus region for this field in local
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