|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.rim.device.api.ui.Field
|
+--net.rim.device.api.ui.component.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 obect. |
||
NullField(long style)
Constructs a new NullField object with the provided style. |
||
| Method Summary | ||
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 getPreferredHeight()
Field.getPreferredHeight() for more information.
getPreferredHeight in class Fieldpublic int getPreferredWidth()
Field.getPreferredWidth() for more information.
getPreferredWidth 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.
width - Ignored.height - Ignored.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.