| java.lang.Object javax.microedition.lcdui.LayoutManager
LayoutManager | class LayoutManager (Code) | | Layout management class for Form .
See DisplayableLF.java for naming convention.
|
Field Summary | |
final static int | FULL_LAYOUT Do a full layout. | final static int | HEIGHT Used as an index into the viewport[], for the height. | final static int | LAYOUT_HMASK A bit mask to capture the horizontal layout directive of an item. | final static int | LAYOUT_VMASK A bit mask to capture the vertical layout directive of an item. | final static int | UPDATE_LAYOUT Only update layout. | final static int | WIDTH Used as an index into the viewport[], for the width. | final static int | X Used as an index into the viewport[], for the x origin. | final static int | Y Used as an index into the viewport[], for the y origin. | static LayoutManager | singleInstance Single instance of the LayoutManager class. | int | viewportHeight Height of viewport, as passed to layout(). | int | viewportWidth Width of viewport, as passed to layout(). |
Method Summary | |
static LayoutManager | instance() Singleton design pattern: obtain access to the single instance of
this class using this method. | void | lLayout(int layoutMode, ItemLFImpl[] itemLFs, int numOfLFs, int inp_viewportWidth, int inp_viewportHeight, int[] viewable) Do layout. |
FULL_LAYOUT | final static int FULL_LAYOUT(Code) | | Do a full layout.
|
HEIGHT | final static int HEIGHT(Code) | | Used as an index into the viewport[], for the height.
|
LAYOUT_HMASK | final static int LAYOUT_HMASK(Code) | | A bit mask to capture the horizontal layout directive of an item.
|
LAYOUT_VMASK | final static int LAYOUT_VMASK(Code) | | A bit mask to capture the vertical layout directive of an item.
|
UPDATE_LAYOUT | final static int UPDATE_LAYOUT(Code) | | Only update layout.
|
WIDTH | final static int WIDTH(Code) | | Used as an index into the viewport[], for the width.
|
X | final static int X(Code) | | Used as an index into the viewport[], for the x origin.
|
Y | final static int Y(Code) | | Used as an index into the viewport[], for the y origin.
|
singleInstance | static LayoutManager singleInstance(Code) | | Single instance of the LayoutManager class.
|
viewportHeight | int viewportHeight(Code) | | Height of viewport, as passed to layout().
|
viewportWidth | int viewportWidth(Code) | | Width of viewport, as passed to layout().
|
LayoutManager | LayoutManager()(Code) | | Singleton design pattern. Obtain access using instance() method.
|
instance | static LayoutManager instance()(Code) | | Singleton design pattern: obtain access to the single instance of
this class using this method.
Single instance of LayoutManager |
lLayout | void lLayout(int layoutMode, ItemLFImpl[] itemLFs, int numOfLFs, int inp_viewportWidth, int inp_viewportHeight, int[] viewable)(Code) | | Do layout.
SYNC NOTE: caller must hold LCDUILock around a call to this method
Parameters: layoutMode - one of FULL_LAYOUT or UPDATE_LAYOUT Parameters: numOfLFs - number of elements in the calling form Parameters: itemLFs - reference to the items array of the calling form Parameters: inp_viewportWidth - width of the screen area available for the form Parameters: inp_viewportHeight - height of the screen area available for the form Parameters: viewable - area needed for the content of the form |
|
|