SpacerLFImplpublic class SpacerLFImpl extends ItemLFImpl implements SpacerLFLook and feel implementation of Spacer . |
Fields Summary |
---|
Spacer | spSpacer associated with this look & feel. |
Constructors Summary |
---|
SpacerLFImpl(Spacer spacer)Creates Look & Feel object for Spacer .
super(spacer);
sp = spacer;
// Initialize the cached requested size
lSetRequestedSizes(sp.width, sp.height, sp.width, sp.height);
|
Methods Summary |
---|
void | createNativeResource(int ownerId)Create native resource of this Item .
| void | lGetRequestedSizes()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 void | lSetMinimumSize(int minWidth, int minHeight)Notifies look & feel of a minimum size change in the
Spacer .
lRequestInvalidate(true, true);
// Set requested sizes AFTER the invalidate request above
lSetRequestedSizes(sp.width, sp.height, sp.width, sp.height);
| boolean | uCallPeerStateChanged(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.
return false; // Unexpected call
|
|