All Packages Class Hierarchy This Package Previous Next Index
Class dtai.gwt.GadgetShell
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----dtai.gwt.GadgetShell
- public class GadgetShell
- extends Panel
GadgetShell
-
GadgetShell()
- GadgetShell
-
add(Gadget)
- add
-
addDamagedArea(int, int, int, int)
- addDamagedArea
-
addModal(GadgetShell)
-
-
addShellPaintListener(ShellPaintListener)
- addShellPaintListener Adds the listener through the multiCaster
-
addSubGadget(Gadget)
- addSubGadget
-
changeMouseOwner(Gadget, Event)
- changeMouseOwner
-
clearDamaged()
- clearDamaged
-
disableTips()
- disableTips
-
enableTips()
- enableTips
-
exposeGraphics()
-
-
fakeMouseUp()
- fakeMouseUp
-
findCommonAncestor(Gadget, Gadget)
- findCommonAncestor
-
flushGraphics()
- flushGraphics
-
focusBackward(boolean)
- focusBackward
-
focusBackward(boolean, Gadget)
- focusBackward
-
focusForward(boolean)
- focusForward
-
focusForward(boolean, Gadget)
- focusForward
-
forceFocus()
- forceFocus
-
getApplet()
- getApplet
-
getDefaultFocusGadget()
- getDefaultGadget
-
getDefaultGadget()
- getDefaultGadget
-
getDialog()
- getDialog
-
getFocusOwner()
- getFocusOwner
-
getFrame()
- getFrame
-
getGadget()
- getGadget
-
getGadgetTreeLock()
- getGadgetTreeLock
-
getImage(URL)
- getImag
-
getMouseOwner()
- getMouseOwner
-
getNormalDefaultGadget()
- getNormalDefaultGadget()
-
getOverlayPanel()
- getOverlayPanel
-
getPermGraphics()
- getPermGraphics
-
getSubgadgetAt(int, int)
- getSubgadgetAt
-
getTempGraphics()
- getTempGraphics
-
giveFocusTo(Gadget)
- giveFocusTo
-
giveFocusTo(Gadget, boolean, boolean)
- giveFocusTo
-
handleEvent(Event)
- handleEvent
-
hideWaitCursor()
-
-
invokeDefault(AWTEvent)
- invokeDefault
-
isFocusAllowedToEscape()
- isFocusAllowedToEscape
-
isOverridingGraphics()
-
-
minimumSize()
- minimumSize
-
notifyCursorChanged()
-
-
notifyInvalid()
- notifyInvalid
-
notifyWindowOpened()
- notifyWindowOpened
-
paint(Graphics)
- paint
-
preferredSize()
- prefferedSize
-
processEvent(EventObject)
- processEvent Processes the generic event
-
processShellPaintEvent(ShellPaintEvent)
- processShellPaintEvent Processes the specific event
-
processTimerEvent(byte)
- processTimerEvent
-
removeModal(GadgetShell)
-
-
removeShellPaintListener(ShellPaintListener)
- removeShellPaintListener Removes the listener through the multiCaster
-
removeSubGadget(Gadget)
- removeSubGadget
-
resetFocus()
- resetFocus
-
reshape(int, int, int, int)
- reshape
-
setDefaultFocusGadget(Gadget)
- setDefaultGadget
-
setDefaultGadget(Gadget)
- setDefaultGadget
-
setFocusAllowedToEscape(boolean)
- setFocusAllowedToEscape
-
setGraphicsOverride(Graphics, int, int)
- for painting (printing) to a different kind of graphics object,
with potentially different font sizes, you need to lock the gadget
tree (with synchronized(getGadgetTreeLock()) {...
-
setOverlayPanel(OverlayPanelGadget)
- overlayPanel
-
setWaitingForMouseUp(boolean)
-
-
showWaitCursor()
-
-
showWaitCursor(int)
-
-
update(Graphics)
- update
GadgetShell
public GadgetShell()
- GadgetShell
getGadget
public Gadget getGadget()
- getGadget
- Returns:
- Gadget
setWaitingForMouseUp
public void setWaitingForMouseUp(boolean waitingForMouseUp)
addModal
public static void addModal(GadgetShell modal)
removeModal
public static void removeModal(GadgetShell modal)
setDefaultGadget
public void setDefaultGadget(Gadget gadget)
- setDefaultGadget
- Parameters:
- gadget - - TBD
getDefaultGadget
public Gadget getDefaultGadget()
- getDefaultGadget
- Returns:
- Gadget
setDefaultFocusGadget
public void setDefaultFocusGadget(Gadget gadget)
- setDefaultGadget
- Parameters:
- gadget - - TBD
getDefaultFocusGadget
public Gadget getDefaultFocusGadget()
- getDefaultGadget
- Returns:
- Gadget
getNormalDefaultGadget
public Gadget getNormalDefaultGadget()
- getNormalDefaultGadget()
- Returns:
- Gadget
invokeDefault
public void invokeDefault(AWTEvent e)
- invokeDefault
- Parameters:
- e - - TBD
processTimerEvent
protected void processTimerEvent(byte type)
- processTimerEvent
- Parameters:
- type - - TBD
getGadgetTreeLock
public final Object getGadgetTreeLock()
- getGadgetTreeLock
- Returns:
- Object
fakeMouseUp
protected void fakeMouseUp()
- fakeMouseUp
handleEvent
public boolean handleEvent(Event evt)
- handleEvent
- Parameters:
- evt - - TBD
- Returns:
- boolean result
- Overrides:
- handleEvent in class Component
setOverlayPanel
public final void setOverlayPanel(OverlayPanelGadget overlayPanel)
- overlayPanel
getOverlayPanel
public final OverlayPanelGadget getOverlayPanel()
- getOverlayPanel
- Returns:
- OverlayPanelGadget
add
public Gadget add(Gadget gadget)
- add
- Parameters:
- gadget - - TBD
- Returns:
- Gadget
addSubGadget
public final void addSubGadget(Gadget gadget)
- addSubGadget
- Parameters:
- gadget - - TBD
removeSubGadget
public final void removeSubGadget(Gadget gadget)
- removeSubGadget
- Parameters:
- gadget - - TBD
minimumSize
public Dimension minimumSize()
- minimumSize
- Returns:
- Dimension
- Overrides:
- minimumSize in class Container
preferredSize
public Dimension preferredSize()
- prefferedSize
- Returns:
- Dimension
- Overrides:
- preferredSize in class Container
getSubgadgetAt
public final Gadget getSubgadgetAt(int x,
int y)
- getSubgadgetAt
- Parameters:
- x - - TBD
- y - - TBD
- Returns:
- Gadget
clearDamaged
public Rectangle clearDamaged()
- clearDamaged
- Returns:
- Rectangle
reshape
public void reshape(int x,
int y,
int width,
int height)
- reshape
- Parameters:
- x - - TBD
- y - - TBD
- width - - TBD
- height - - TBD
- Overrides:
- reshape in class Component
addShellPaintListener
public synchronized void addShellPaintListener(ShellPaintListener l)
- addShellPaintListener Adds the listener through the multiCaster
- Parameters:
- l - The ShellPaintListener
removeShellPaintListener
public synchronized void removeShellPaintListener(ShellPaintListener l)
- removeShellPaintListener Removes the listener through the multiCaster
- Parameters:
- l - The ShellPaintListener
processEvent
public void processEvent(EventObject e)
- processEvent Processes the generic event
- Parameters:
- e - The event object
processShellPaintEvent
public void processShellPaintEvent(ShellPaintEvent e)
- processShellPaintEvent Processes the specific event
- Parameters:
- e - The ShellPaintEvent
paint
public void paint(Graphics g)
- paint
- Parameters:
- g - - TBD
- Overrides:
- paint in class Container
exposeGraphics
public void exposeGraphics()
flushGraphics
public final void flushGraphics()
- flushGraphics
setGraphicsOverride
public void setGraphicsOverride(Graphics g,
int width,
int height)
- for painting (printing) to a different kind of graphics object,
with potentially different font sizes, you need to lock the gadget
tree (with synchronized(getGadgetTreeLock()) {... on this shell),
and call this function with the graphics you want to use.
Then resize the gadget you want to paint as necessary, i.e. by calling
fontChanged, then validate it, then paint it, i.e. by calling update with
the gadget's GadgetGraphics object (you can call "getGadgetGraphics"
on the object, and it will return the appropriate translated object
for the graphics you passed it). Be sure to set the paintingAll flag
to true BEFORE calling gadget.update(gg)! Finally, call this function with
"null, 0, 0", set the size back to normal, call setFontChanged on the object,
and validate the gadget and you should be done.
- Parameters:
- g - the graphics object to use in all getGadgetGraphics calls
- width - the width of the graphics "page"
- height - the height of the graphics "page"
isOverridingGraphics
public boolean isOverridingGraphics()
- Returns:
- s true if graphicsOverride != null
getPermGraphics
public final GadgetGraphics getPermGraphics()
- getPermGraphics
- Returns:
- GadgetGraphics
getTempGraphics
public final GadgetGraphics getTempGraphics()
- getTempGraphics
- Returns:
- GadgetGraphics
update
public void update(Graphics g)
- update
- Parameters:
- g - - TBD
- Overrides:
- update in class Container
notifyInvalid
protected final void notifyInvalid()
- notifyInvalid
addDamagedArea
protected final void addDamagedArea(int x,
int y,
int width,
int height)
- addDamagedArea
- Parameters:
- x - - TBD
- y - - TBD
- width - - TBD
- height - - TBD
getApplet
public Applet getApplet()
- getApplet
- Returns:
- Applet
getDialog
public Dialog getDialog()
- getDialog
- Returns:
- Dialog
getFrame
public Frame getFrame()
- getFrame
- Returns:
- Frame
getImage
public final Image getImage(URL url)
- getImag
- Parameters:
- url - - TBD
- Returns:
- Image
isFocusAllowedToEscape
public final boolean isFocusAllowedToEscape()
- isFocusAllowedToEscape
- Returns:
- boolean
setFocusAllowedToEscape
public final void setFocusAllowedToEscape(boolean focusAllowedToEscape)
- setFocusAllowedToEscape
- Parameters:
- focusAllowedToEscape - - TBD
giveFocusTo
public void giveFocusTo(Gadget g)
- giveFocusTo
- Parameters:
- g - - TBD
giveFocusTo
public void giveFocusTo(Gadget g,
boolean group,
boolean forceFocus)
- giveFocusTo
- Parameters:
- g - - TBD
- group - - TBD
- forcefocus - - TBD
forceFocus
public void forceFocus()
- forceFocus
focusForward
public boolean focusForward(boolean group)
- focusForward
- Parameters:
- group - - TBD
- Returns:
- boolean result
focusForward
public void focusForward(boolean group,
Gadget focusGroup)
- focusForward
- Parameters:
- group - - TBD
- focusGroup - - TBD
focusBackward
public boolean focusBackward(boolean group)
- focusBackward
- Parameters:
- group - - TBD
- Returns:
- boolean result
focusBackward
public void focusBackward(boolean group,
Gadget focusGroup)
- focusBackward
- Parameters:
- group - - TBD
- focusGroup - - TBD
resetFocus
public final void resetFocus()
- resetFocus
getFocusOwner
public final Gadget getFocusOwner()
- getFocusOwner
- Returns:
- Gadget
getMouseOwner
public final Gadget getMouseOwner()
- getMouseOwner
- Returns:
- Gadget
findCommonAncestor
public Gadget findCommonAncestor(Gadget a,
Gadget b)
- findCommonAncestor
- Parameters:
- a - - TBD
- b - - TBD
- Returns:
- Gadget
changeMouseOwner
public void changeMouseOwner(Gadget newMouseOwner,
Event evt)
- changeMouseOwner
- Parameters:
- newMouseOwner - - TBD
- evt - - TBD
notifyCursorChanged
public void notifyCursorChanged()
showWaitCursor
public void showWaitCursor()
showWaitCursor
public void showWaitCursor(int forSeconds)
hideWaitCursor
public void hideWaitCursor()
enableTips
public void enableTips()
- enableTips
disableTips
public void disableTips()
- disableTips
notifyWindowOpened
public void notifyWindowOpened()
- notifyWindowOpened
All Packages Class Hierarchy This Package Previous Next Index