com.incrediblesoft.redjey
Class Window

java.lang.Object
  extended by com.incrediblesoft.redjey.Component
      extended by com.incrediblesoft.redjey.Container
          extended by com.incrediblesoft.redjey.Window
Direct Known Subclasses:
Frame, PopupMenu

public class Window
extends Container


Field Summary
 
Fields inherited from class com.incrediblesoft.redjey.Component
BOTTOM_LAYOUT, DISABLED, H_EXPAND, HCENTER_LAYOUT, HIGHLIGHTED, LEFT_LAYOUT, NORMAL, PRESSED, RIGHT_LAYOUT, TOP_LAYOUT, TOTAL_STATES, V_EXPAND, VCENTER_LAYOUT
 
Constructor Summary
Window()
          Constructs default window
Window(java.lang.String styleClassName)
          Constructs window with specified style class name
 
Method Summary
 void addFocusListener(FocusListener listener)
           
 java.lang.String getName()
          This method is used to retrieve the appropriate style set from a hashtable of styles
 boolean isModal()
          Returns whether whit window can go background or not.
 void paint(javax.microedition.lcdui.Graphics g)
          Paints component.
 void removeFocusListener(FocusListener listener)
           
 void setFullScreen()
          Maximizes this window
 void setModal(boolean modal)
          Sets modality flag
 void setVisible(boolean visible)
          Set this component visible or not
 
Methods inherited from class com.incrediblesoft.redjey.Container
add, dispatchEvent, getComponent, getComponentAt, getComponentCount, getLayout, indexOf, insertAt, pack, remove, remove, removeAll, setLayout, tick
 
Methods inherited from class com.incrediblesoft.redjey.Component
addActionListener, addMouseListener, fireActionEvent, getAbsoluteRect, getAbsoluteX, getAbsoluteY, getAlignment, getBounds, getClientSize, getContentAlignment, getCurrentStyle, getHeight, getParent, getPreferredSize, getState, getStyle, getStyleClass, getWidth, getX, getY, invalidate, invalidateTree, isFocused, isHighlightable, isVisible, keyPressed, keyReleased, removeActonListener, removeMouseListener, repaint, repaint, setAlignment, setBounds, setContentAlignment, setLocation, setPreferredSize, setSize, setSize, setState, setStyle, setStyle, setStyleClass, setTag, setX, setY, toString, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Window

public Window()
Constructs default window


Window

public Window(java.lang.String styleClassName)
Constructs window with specified style class name

Parameters:
styleClassName - Style class name
Method Detail

getName

public java.lang.String getName()
Description copied from class: Component
This method is used to retrieve the appropriate style set from a hashtable of styles

Overrides:
getName in class Container
Returns:
Name of component

setVisible

public void setVisible(boolean visible)
Description copied from class: Component
Set this component visible or not

Overrides:
setVisible in class Component
Parameters:
visible - true / false

setModal

public void setModal(boolean modal)
Sets modality flag

Parameters:
modal - true - window always on top, otherwise - window can go background.

isModal

public boolean isModal()
Returns whether whit window can go background or not.

Returns:

setFullScreen

public void setFullScreen()
Maximizes this window


paint

public void paint(javax.microedition.lcdui.Graphics g)
Description copied from class: Component
Paints component.

Overrides:
paint in class Component
Parameters:
g - Graphics object

addFocusListener

public void addFocusListener(FocusListener listener)

removeFocusListener

public void removeFocusListener(FocusListener listener)