bluegammon.gui.popup
Class PopupCanvas

java.lang.Object
  extended byjavax.microedition.lcdui.Displayable
      extended byjavax.microedition.lcdui.Canvas
          extended bybluegammon.gui.popup.PopupCanvas
Direct Known Subclasses:
BoardCanvas, MenuCanvas

public abstract class PopupCanvas
extends javax.microedition.lcdui.Canvas

Represents a canvas that can show popups.

Author:
Peter Andersson

Field Summary
 
Fields inherited from class javax.microedition.lcdui.Canvas
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP
 
Constructor Summary
PopupCanvas()
           
 
Method Summary
 Popup getPopup()
          Returns the popup in this canvas or null if popup.
 void setPopup(Popup p)
          Sets the popup in this canvas.
 
Methods inherited from class javax.microedition.lcdui.Canvas
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, isDoubleBuffered, repaint, repaint, serviceRepaints, setFullScreenMode
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, removeCommand, setCommandListener, setTicker, setTitle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupCanvas

public PopupCanvas()
Method Detail

getPopup

public Popup getPopup()
Returns the popup in this canvas or null if popup.

Returns:
The current popup or null.

setPopup

public void setPopup(Popup p)
Sets the popup in this canvas.

Parameters:
p - The popup.