Methods Summary |
---|
public static com.sun.midp.chameleon.layers.ScrollIndLayer | getInstance(int type)
ScrollIndLayer s = null;
switch (type) {
case ScrollIndResourcesConstants.MODE_ARROWS:
if (scrollIndArrows == null) {
scrollIndArrows = new ScrollArrowLayer(null, null);
}
s = scrollIndArrows;
break;
case ScrollIndResourcesConstants.MODE_BAR:
s = new ScrollBarLayer(null, null);
break;
default:
break;
}
return s;
|
protected void | initialize()Called by MIDPWindow to initialize this layer
super.initialize();
setBounds();
|
public abstract void | setBounds()Calculate layer bounds depending on the scrollable
|
public boolean | setListener(ScrollListener newListener)Set new listener
boolean ret = listener != newListener;
if (ret) {
listener = newListener;
if (listener != null) {
listener.updateScrollIndicator();
}
}
return ret;
|
public boolean | setScrollable(CLayer layer)Set new scrollable
boolean ret = scrollable != layer;
if (ret) {
setVisible(false);
scrollable = layer;
alertMode = scrollable instanceof AlertLayer;
}
return ret;
|
public abstract void | setVerticalScroll(int scrollPosition, int scrollProportion)Set the current vertical scroll position and proportion.
|
public void | update(CLayer[] layers)Update bounds of layer
super.update(layers);
setBounds();
|