| java.lang.Object com.sun.midp.chameleon.CLayer com.sun.midp.chameleon.layers.BodyLayer com.sun.midp.chameleon.layers.AlertLayer
Method Summary | |
protected void | initialize() Initialize the bounds of this AlertLayer. | public void | setAlert(boolean alertVisible, Alert alert, int height) Sets content to be displayed in the Alert Layer.
This AlertLayer will be made visible if alertVisible
is true and will be hidden - otherwise.
Parameters: alertVisible - - true if the AlertLayer should be shown,and false - otherwise Parameters: alert - - The Alert instance that is currentlyvisible Parameters: height - the preferred height for the Alert. | public void | setAnchor() | public void | setVisible(boolean visible) Toggle the visibility state of Alert layer within its containing
window. | public void | update(CLayer[] layers) |
AlertLayer | public AlertLayer(ChamDisplayTunnel tunnel)(Code) | | The AlertLayer constructor. Initializes background image if
there is one set in AlertSkin.
Parameters: tunnel - - The ChamDisplayTunnel to do paint calls |
initialize | protected void initialize()(Code) | | Initialize the bounds of this AlertLayer. Overrides
initialize in superclasses. The dimensions of the
specific AlertLayer are specified in AlertSkin.
The X and Y coordinates represent the upper left position
of this CLayer in the physical display's coordinate space.
|
setAlert | public void setAlert(boolean alertVisible, Alert alert, int height)(Code) | | Sets content to be displayed in the Alert Layer.
This AlertLayer will be made visible if alertVisible
is true and will be hidden - otherwise.
Parameters: alertVisible - - true if the AlertLayer should be shown,and false - otherwise Parameters: alert - - The Alert instance that is currentlyvisible Parameters: height - the preferred height for the Alert. This is acceptedas long as it is less than AlertSkin.HEIGHT |
setAnchor | public void setAnchor()(Code) | | Align alert depend on skin
|
setVisible | public void setVisible(boolean visible)(Code) | | Toggle the visibility state of Alert layer within its containing
window.
Parameters: visible - if alert should be visible, false otherwise |
update | public void update(CLayer[] layers)(Code) | | Update bounds of layer
Parameters: layers - - current layer can be dependant on this parameter |
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)
|
|
|