FileDocCategorySizeDatePackage
SpacerLFImpl.javaAPI DocphoneME MR2 API (J2ME)3118Wed May 02 18:00:22 BST 2007javax.microedition.lcdui

SpacerLFImpl

public class SpacerLFImpl extends ItemLFImpl implements SpacerLF
Look and feel implementation of Spacer.

Fields Summary
Spacer
sp
Spacer associated with this look & feel.
Constructors Summary
SpacerLFImpl(Spacer spacer)
Creates Look & Feel object for Spacer.

param
spacer the model object

        super(spacer);
	sp = spacer;
	
	// Initialize the cached requested size
	lSetRequestedSizes(sp.width, sp.height, sp.width, sp.height);
    
Methods Summary
voidcreateNativeResource(int ownerId)
Create native resource of this Item.

param
ownerId owner screen's native resource id

 
voidlGetRequestedSizes()
Calculate minimum and preferred width and height of this item and store the result in instance variables: minimumWidth, minimumHeight, preferredWidth and preferredHeight. Override the version in ItemLFImpl to do nothing.

	// Since the cached sizes are always kept up to date.
	// Nothing needs to be done here.

	// ASSERT (isRequestedSizesValid() == true)
    
public voidlSetMinimumSize(int minWidth, int minHeight)
Notifies look & feel of a minimum size change in the Spacer.

param
minWidth the new minimum width
param
minHeight the new minimum height

        lRequestInvalidate(true, true);
	// Set requested sizes AFTER the invalidate request above
	lSetRequestedSizes(sp.width, sp.height, sp.width, sp.height);
    
booleanuCallPeerStateChanged(int hint)
Called by event delivery to notify an ItemLF in current FormLF of a change in its peer state. Do nothing and returns false since there is no state to change.

param
hint not used
return
always false

	return false; // Unexpected call