| java.lang.Object com.sun.midp.chameleon.CLayer com.sun.midp.chameleon.layers.PopupLayer com.sun.midp.chameleon.layers.ScrollablePopupLayer
All known Subclasses: javax.microedition.lcdui.DEPopupLayer, com.sun.midp.chameleon.layers.CascadeMenuLayer, com.sun.midp.chameleon.layers.MenuLayer,
ScrollablePopupLayer | public class ScrollablePopupLayer extends PopupLayer implements ScrollListener(Code) | | A "Popup" layer is a special kind of layer which can
also have commands associated with it. When a popup
layer is added to a MIDPWindow, its commands (if it has any)
can be accessed through the soft button bar. If a popup layer
does have commands associated with it, any commands on the
current displayable/item are no longer accessible. If
the popup layer does not have its own commands, any
existing commands from the displayable/item remain.
NOTE: For now, a PopupLayer is also always visible,
that is isVisible() always returns true. To control the
visibility of a PopupLayer, you add it and remove it
from a MIDPWindow. IMPL_NOTE: determine if a relationship between
PopupLayer and MIDPWindow can allow non visible popup layers.
|
Field Summary | |
protected ScrollIndLayer | scrollInd The scroll indicator layer to notify of scroll settings
in case not all content can fit on the menu. |
scrollInd | protected ScrollIndLayer scrollInd(Code) | | The scroll indicator layer to notify of scroll settings
in case not all content can fit on the menu.
|
ScrollablePopupLayer | public ScrollablePopupLayer()(Code) | | Construct a new PopupLayer. By default, setSupportsInput()
is set to true.
|
ScrollablePopupLayer | public ScrollablePopupLayer(Image bgImage, int bgColor)(Code) | | Construct a new PopupLayer, given a background image.
By default, setSupportsInput() is set to true, and so
is setVisible().
|
ScrollablePopupLayer | public ScrollablePopupLayer(Image[] bgImage, int bgColor)(Code) | | Construct a new PopupLayer, given a 9 pc background image.
By default, setSupportsInput() is set to true, and so
is setVisible().
|
addDirtyRegion | public void addDirtyRegion()(Code) | | Add this layer's entire area to be marked for repaint. Any pending
dirty regions will be cleared and the entire layer will be painted
on the next repaint.
TODO: need to be removed as soon as removeLayer algorithm
takes into account layers interaction
|
scrollContent | public void scrollContent(int scrollType, int thumbPosition)(Code) | | Scrolling the contents according to the scrolling parameters.
Parameters: scrollType - can be SCROLL_LINEUP, SCROLL_LINEDOWN, SCROLL_PAGEUP,SCROLL_PAGEDOWN or SCROLL_THUMBTRACK Parameters: thumbPosition - only valid when scrollType is SCROLL_THUMBTRACK |
update | public void update(CLayer[] layers)(Code) | | Update bounds of layer
Parameters: layers - - current layer can be dependant on this parameter |
updateScrollIndicator | public void updateScrollIndicator()(Code) | | Updates the scroll indicator.
|
Methods inherited from com.sun.midp.chameleon.CLayer | public void addDirtyRegion()(Code)(Java Doc) public boolean addDirtyRegion(int x, int y, int w, int h)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) protected void cleanDirty()(Code)(Java Doc) protected void cleanDirtyRegions()(Code)(Java Doc) public boolean containsPoint(int x, int y)(Code)(Java Doc) public int[] getBounds()(Code)(Java Doc) public boolean handlePoint(int x, int y)(Code)(Java Doc) protected void initialize()(Code)(Java Doc) public boolean isDirty()(Code)(Java Doc) protected boolean isEmptyDirtyRegions()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) public boolean keyInput(int type, int code)(Code)(Java Doc) protected String layerID()(Code)(Java Doc) public boolean methodInput(String str)(Code)(Java Doc) public void paint(Graphics g)(Code)(Java Doc) protected void paintBackground(Graphics g)(Code)(Java Doc) protected void paintBody(Graphics g)(Code)(Java Doc) public boolean pointerInput(int type, int x, int y)(Code)(Java Doc) public void relocateNotify(int[] oldBounds)(Code)(Java Doc) public void removeNotify(CWindow owner)(Code)(Java Doc) public void requestRepaint()(Code)(Java Doc) public void requestRepaint(int x, int y, int w, int h)(Code)(Java Doc) public void setBackground(Image bgImage, boolean tileBG, int bgColor)(Code)(Java Doc) public void setBackground(Image[] bgImages, int bgColor)(Code)(Java Doc) public void setBounds(int x, int y, int w, int h)(Code)(Java Doc) protected void setDirty()(Code)(Java Doc) protected void setDirtyButNotNotifyOwner()(Code)(Java Doc) public void setOpaque(boolean opaque)(Code)(Java Doc) public void setSupportsInput(boolean support)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc) public boolean supportsInput()(Code)(Java Doc) public String toString()(Code)(Java Doc) public void update(CLayer[] mainLayers)(Code)(Java Doc)
|
|
|